myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <simon.kitch...@chello.at>
Subject Re: If in myFaces/Tomahwak
Date Wed, 05 Sep 2007 19:09:08 GMT
No, there is no separate tag like logic:equal. You need to use the
rendered attribute as Mike described.

Note that the rendered attribute is a normal EL expression, which can be
quite complex. An EL expression can test things for equality etc. See a
JSF manual or the specification for what is possible in an EL
expression.

On Wed, 2007-09-05 at 11:23 -0600, daniel ccss wrote:
> Thanks!!... But, there are no if components like the logic:equal o
> logic:notPresent?? in struts
> 
> On 9/5/07, Mike Kienenberger <mkienenb@gmail.com> wrote:
>         <panelGroup rendered="#{bean.shouldRenderThese }">
>             <componentToRenderWhenTrue/>
>             <componentToRenderWhenTrue/>
>             <componentToRenderWhenTrue/>
>             <componentToRenderWhenTrue/>
>             <componentToRenderWhenTrue/> 
>         </panelGroup>
>         
>         <panelGroup rendered="#{not bean.shouldRenderThese}">
>             <componentToRenderWhenFalse/>
>             <componentToRenderWhenFalse/>
>             <componentToRenderWhenFalse/> 
>         </panelGroup>
>         
>         On 9/5/07, daniel ccss <danielccss2@gmail.com> wrote:
>         > Can you give some example code, another way?
>         >
>         >
>         > On 9/5/07, Mike Kienenberger < mkienenb@gmail.com> wrote:
>         > > Generally, you do this with the rendered attribute of the
>         component.
>         > >
>         > > If you want to group a bunch of components, use a
>         <panelGroup rendered. 
>         > >
>         > >
>         > > On 9/5/07, daniel ccss <danielccss2@gmail.com> wrote:
>         > > > Hi all,
>         > > >
>         > > > I have one question, how can I do an IF in a JSP wit
>         myFaces/Tomahawk? 
>         > In
>         > > > struts I used logic:equal or logic:notEqual, which is
>         the tag in
>         > > > myFaces/Tomahawk to do that, I donĀ“t want to use this: <
>         % if(...)... {%>
>         > <%
>         > > > else(...)... {%> 
>         > > >
>         > > > thanks!!!
>         > > >
>         > >
>         >
>         >
> 


Mime
View raw message