This content has been marked as final.
Show 4 replies
-
1. Re: #{index} of datatable
ilya_shaikovsky Apr 24, 2009 1:24 AM (in response to nimo22)yes this code should works.
-
2. Re: #{index} of datatable
nimo22 Apr 24, 2009 1:36 AM (in response to nimo22)it does not work and I do not know why (RF 3.3.0).
However {index} is not a defined property in my managed bean, but I guess, this is not the problem?!<rich:dataTable value="#{viewDatas}" var="_a" rowKeyVar="#{index}" > <rich:column label="index"> <f:facet name="header"> <h:outputText value="Index"/> </f:facet> <h:outputText value ="#{index}"/> </rich:column> </rich:dataTable>
-
3. Re: #{index} of datatable
nimo22 Apr 24, 2009 1:45 AM (in response to nimo22)I tried it also with that:
<a4j:repeat value="#{myDatas}" var="d" rowKeyVar="#{index}"> <h:outputText value="#{d.prop} #{index}"/> </a4j:repeat>
it does not work, strange. -
4. Re: #{index} of datatable
nimo22 Apr 26, 2009 11:00 PM (in response to nimo22)oh was my fault. this works:
<a4j:repeat value="#{myDatas}" var="d" rowKeyVar="i">
#{i}
</a4j:repeat>