How can I set colspan
and rowspan
in JSF <h:panelGrid>
?
None of both is possible with the standard JSF implementation. There are 3 ways to fix this:
<h:panelGrid>
basically renders a HTML <table>
. Do the same.<t:panelGroup>
component which supports colspan
in <h:panelGrid>
.<rich:column>
component which supports both colspan
and rowspan
in <rich:dataTable>
.<p:row>
next to <p:column>
which is supported in both <p:panelGrid>
and <p:dataTable>
(also with <p:columnGroup>
).