-
1. Re: c:forEach in rich:column
nbelaevski Mar 2, 2009 3:13 PM (in response to glammy)Hello,
It is not allowed to base compile-time iteration tags (c:forEach) on variables defined by render-time iteration components (rich:dataTable). Use a4j:repeat instead of c:forEach. -
2. Re: c:forEach in rich:column
glammy Mar 3, 2009 2:36 AM (in response to glammy)Unfortunately no tag (neighter a4j:repeat, nor ui:repeat) work with Sets.
There is a work-around using custom EL resolver, but this is pretty ugly IMO -
3. Re: c:forEach in rich:column
andrei_exadel Mar 3, 2009 4:36 AM (in response to glammy)Move the set of columns you want to use to bean that u use for table's value attribute.
Columns count should be defined for all table. You have no reason to get columns set from the table's var variable.
Correct code should be like as:<rich:dataTable value="#{bean.rows}" var="row"> <c:forEach items="#{bean.columns}" var="col"> ......
-
4. Re: c:forEach in rich:column
glammy Mar 3, 2009 11:59 AM (in response to glammy)Each row object has a Set as a property. That is - the table displays a collection of hibernate pojos, each of which has some items in a set to be displayed.
Here is a neat workaround I deviced - http://bozhobg.wordpress.com/2009/03/03/how-to-iterate-over-javautilset-in-jsf/