Thanks for all the work you do on PrimeFaces. It's a really top shelf widget library!
I am trying to work around a problem to do with dynamic component creation inside p:rowExpansion. Basically, dyanmic component creation relies upon PreRenderViewEvent, but p:dataTable 'var' is not available during PreRenderViewEvent (for some reason).
Anyway I thought I'd try p:dataTable rowIndexVar instead. But it doesn't seem to work inside p:rowExpansion? For example:
Code: Select all
<p:dataTable value="#{penguin.all}" var="myVar" rowIndexVar="myRowIndexVar">
<p:column>
<p:rowToggler />
</p:column>
<p:column>
<h:outputText value="This works: #{myVar.name}" />
<br/>
<h:outputText value="This works: #{myRowIndexVar}" />
</p:column>
<p:rowExpansion >
<h:outputText value="This works: #{myVar.name}"/>
<br/>
<h:outputText value="This does not: #{myRowIndexVar}" />
</p:rowExpansion>
</p:dataTable>