As Martin said, each component has a rendered attribute. If you want to conditionally render several elements, you'd set it on an enclosing PanelGroup or PanelGrid component.
Iteration is a separate issue. You could do this with a DataTable or DataList, I suppose. On 9/6/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > But is there a standard "if" tag for JSF? In other words what if I > just want to iterate over a collection and do my own display of html > (divs/spans/etc) based on certain conditions that I need to check for. > I'm a bit confused on how this is handled with MyFaces. > > On 9/6/05, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > usually you use the rendered="#{backingBean.someMethodReturnsBoolean}" > > to determine if a certain area of the UI should be shown or not. > > > > regards, > > > > Martin > > > > On 9/6/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > > If I'm using a DataTable or any of the other JSF/MyFaces components > > > that iterate over a collection, how do I do custom logic based on info > > > in some other backing bean (for example a backinBean in session > > > scope)? I'm looking for what gives me the nice c:if c:choose/when > > > logic from within JSF components? > > > > > > Thanks, > > > > > > -- > > > Rick > > > > > > > > > -- > > > > http://www.irian.at > > Your JSF powerhouse - > > JSF Trainings in English and German > > > > > -- > Rick >