This content has been marked as final.
Show 3 replies
-
1. Re: Question on rendering a @Datamodel
straubp May 21, 2007 4:37 AM (in response to hasc)Maybe like this:
<h:dataTable value="#{...}" var="row" rowClasses="#{row.special ? 'special' : ''}"> ... </h:dataTable>
-
2. Re: Question on rendering a @Datamodel
hasc May 21, 2007 5:05 AM (in response to hasc)thanks, but this did not work.
i tried#{item.special ? 'parent' : 'child'}
which renderes all rows with class="child" -
3. Re: Question on rendering a @Datamodel
hasc May 21, 2007 5:47 AM (in response to hasc)i found a possible solution but this seems a little ugly to me.
i wrote a method
public String getRowClasses {
}
which loops over the Set and generates a comma seperated list with the class names depending on the special property of each object.
so:
rowClasses="#{budgetOverview.rowClasses}
if theres a better solution tell me please.
regards,
hasc