webtier@glassfish.java.net

Re: [webtier] rendered doesn't render when it should render

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 23 Nov 2009 21:35:23 -0800

On 11/23/09 9:15 PM, webtier_at_javadesktop.org wrote:
> I recently upgraded to mojarra-2.0.1-FCS andI haven't updated my jsps. During testing I noticed several pages were not rendering some elements which are enclosed in outputText tags:
>
> <h:outputText rendered="#{true}">
> <h:commandButton action="#{bean.save}" value="#{bundle.BTN_save}">
> </h:commandButton>
> ...
> ...
> ...
> <h:outputText value="#{bean.status}" escape="false"/>
> </h:outputText>
>
> I have hardcoded rendered="#{true}" but was only able to get it to render by deleting the enclosing<h:outputText rendered="#{true}">
>
> Please advise on solution.
>
I'd recommend using a panelGrid as a container vs outputText.

You can revert to the 1.2 behavior by adding a context init parameter
called com.sun.faces.allowTextChildren
with a value of true, however, doing so may cause issues if you start
using JSF 2.0 Ajax.
> Thanks
> [Message sent by forum member 'nonome' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=373078
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>