How to set colspan and rowspan in JSF panelGrid?

Hari kanna picture Hari kanna · Jun 24, 2010 · Viewed 89.6k times · Source

How can I set colspan and rowspan in JSF <h:panelGrid>?

Answer

BalusC picture BalusC · Jun 24, 2010

None of both is possible with the standard JSF implementation. There are 3 ways to fix this:

  1. Write plain HTML yourself. A <h:panelGrid> basically renders a HTML <table>. Do the same.
  2. Create a custom HTML renderer which supports this. It'll however be a lot of sweat and pain.
  3. Use a 3rd party component library which supports this.