[EMAIL PROTECTED] wrote on 10/20/2005 01:50:37 PM:

>
> "Jeffrey Porter" <[EMAIL PROTECTED]> wrote on
> 10/20/2005 01:45:04 PM:
>
> >  
> >  
> > Does MyFaces contain an IF statement?
> >  
> > Something like…
> >  
> > <x:if user.admin == true >
> > <h:outputLabel value="ADMIN" />
> > <x:else >
> > <h:outputLabel value="NOT ADMIN" />
> > </x>
> >  
> >  
> > I would put my IF statement in JSP.
> > But this doesn’t seem to work.
> >  
> > For example
> >  
> > <%=user.admin%>
> >  
>
> You should I think be able to use the "rendered" attribute within
> <h:outputLabel..? As in:
> <h:outputLabel value="ADMIN" rendered="user.admin" />
>


umm,.. sorry.. I meant: rendered="#{user.admin}"

> Geeta

Reply via email to