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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
> > Can you give some example code, another way?
> >
> >
> > On 9/5/07, Mike Kienenberger < [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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!!!
> > > >
> > >
> >
> >
>