Hey,
Seems like this should be possible but ...?
Using richfaces and JSF I'm iterating over a List using rich:dataList ... all is fine except I'd like the ability to selectively 'render' each iteration, is that possible?
For example:
<rich:dataList value="#{list}" var="item">
<h:outputText value="#{item.something}" />
</rich:dataList>
I'd like to be able to render the output selectively, for example if some property of 'item' is true or whatever.
I've tried wrapping the outputText
in an outputPanel
and similar but if the output panel is not rendered the '<li>
' of the iteration is still rendered so you get a bullet point with nothing beside it rather than it just skipping the item entirely :(
Any way of solving this or am I SOL? I realize normally I'd want to get the List of items to display ready before hand but for many reasons I won't bother to repeat here it isn't possible.