Note that there are some explanatory texts on larger screens.

plurals
  1. POh:outputText to conditionally render groups of JSF elements no longer working in JSF 2?
    primarykey
    data
    text
    <p>I have some code that uses <code>&lt;h:outputText&gt;</code> to conditionally render groups of JSF elements. Examples:</p> <pre><code>&lt;h:outputText rendered="#{authorization.admin}"&gt; &lt;h:outputText value="#{msgs.someinfo}" /&gt; &lt;h:inputSecret value="#{usermanager.password}" /&gt; &lt;/h:outputText&gt; </code></pre> <p> <pre><code>&lt;h:outputText rendered="#{contactmanager.editAction}"&gt; &lt;li&gt; &lt;label for="name"&gt;&lt;h:outputText value="#{msgs.nameinfo}" /&gt;&lt;/label&gt; &lt;h:inputText id="name" value="#{contactmanager.name}" /&gt; &lt;h:messages for="name" /&gt; &lt;/li&gt; &lt;/h:outputText&gt; </code></pre> <p>The code is on glassfish 2.1.1 which has the MANIFEST.MF in jsf-impl.jar looking like this (I'm not sure whether it actually uses this jar or some other one for JSF):</p> <pre><code>Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.5.0_19-b02 (Sun Microsystems Inc.) Specification-Title: JavaServer Faces Specification-Version: 1.2MR2 Implementation-Title: Mojarra Implementation-Version: 1.2_13-b01-FCS Implementation-Vendor: Sun Microsystems, Inc. Implementation-Vendor-Id: com.sun Extension-Name: com.sun.faces </code></pre> <p>I'm trying to move to glassfish 4 which has some version of JSF 2 or higher.</p> <p>All the hundreds of instances of this construct worked on the old glassfish, but they no longer work on the new one - they are replaced with nothing, regardless of what the <code>rendered</code> attribute evaluates to. Why?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload