No but you can use the rendered attribute.

<h:outputLabel value="ADMIN" rendered="#{user.admin}"/>
<h:outputLabel value="NOT ADMIN" rendered="#{!user.admin}"/>

only the one where rendered evaluates to true is rendered.

Jeffrey Porter wrote:
>  
> 
>  
> 
> 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*%>*
> 
>  
> 
>  
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to