Luka, if you are using JSF 1.2, you need to be on the Trinidad 1.2.x branch. Also, I would use as late a JSF as you can. Perhaps 1.2_09.

Scott

Luka Surija wrote:
Hi,
last 2 days I'm going crazy because something changed in JSF constellation and now I have a problem that I can't locate. The following scenario:

Environment:
Glassfish (JSF RI 1.2_04-b18-p03)
Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
Facelets (1.1.12 -> 1.1.14)


<tr:commandButton text="Display" >
   <tr:setActionListener from="#{true}" to="#{MyBean.display}" />
</tr:commandButton>


<tr:panelHorizontalLayout rendered="{MyBean.display}">

   <tr:outputText value="Test : #{MyBean.npeValue}" />
</tr:panelHorizontalLayout>

MyBean is session scope,
MyBean.display property default value is false;
MyBean.npeValue returns some value, it shouldn't be called if display!=true

So, what's happening here? Components inside PanelHorizontalLayout are always evaluated (I thing is only decode called) regardless rendered value, but they are actually displayed only if rendered is true. This is started to happening lately.

Any ideas?


Reply via email to