myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: If in myFaces/Tomahwak
Date Wed, 05 Sep 2007 16:50:55 GMT
<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