i was near pulling my hair out when i couldn't get a simple table row toggle (DataTable row expansion) working. nothing was happening when i clicked on the toggle icon image. my colleague took a look at it and finally discovered the problem:
the p:rowToggler was inside an embedded p:column:
<p:dataTable...>
<p:column...>
<h:panelGrid...>
<p:column...>
<p:rowToggler />
...
</p:column>
</h:panelGrid>
</p:column>
...
<p:rowExpansion>
<p:dataTable...>
<p:column...>
...
<p:column>
...
<p:rowExpansion>
</p:dataTable>
the solution was easy--just remove the embedded p:column:
<p:dataTable...>
<p:column...>
<h:panelGrid...>
<p:rowToggler />
...
</h:panelGrid>
</p:column>
...
<p:rowExpansion>
<p:dataTable...>
<p:column...>
...
<p:column>
...
<p:rowExpansion>
</p:dataTable>
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment