I have the same problem with mojarra. The problem is in the implementation of
UIDebug and setting the default value for the attribute rendered.
public UIDebug() {
super();
this.setTransient(true);
this.setRendered(true);
this.setRendererType(null);
}
The value is set by value and thats why the expression will no longer
resolved.
Timm Linder wrote:
>
> Hi,
>
> I have embedded the <ui:debug> component into my master template and want
> it to be rendered only if the web app is running in development mode. So I
> tried this:
>
> <ui:debug rendered="#{facesContext.application.projectStage ==
> 'Development'}" hotkey="v"/>
> <h:outputText rendered="#{facesContext.application.projectStage ==
> 'Development'}">We are in development stage</h:outputText>
>
> The output text component correctly disappears when in production mode.
> However, the CTRL+SHIFT+V hotkey still opens up the debug dialog, although
> it should not. The funny thing is that if I manually set the 'rendered'
> property of the 'debug' element to 'false', then the hotkey and the dialog
> are disabled as intended.
>
> How is this possible? I am using exactly the same EL value in both cases,
> and still, the first one always appears to evaluate to 'true'...
>
> (I am using MyFaces 2.0.2 in combination with PrimeFaces 2.2-RC2 and
> Spring 3.0.5 and its SpringBeanFacesELResolver).
>
> Thanks!
>
--
View this message in context:
http://old.nabble.com/ui%3Adebug-rendered-attribute---display-dependent-upon-project-stage-tp30536641p33544815.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.