Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>None of both is possible with the standard JSF implementation. There are 3 ways to fix this:</p> <ol> <li>Write plain HTML yourself. A <code>&lt;h:panelGrid&gt;</code> basically renders a HTML <code>&lt;table&gt;</code>. Do the same.</li> <li>Create a custom HTML renderer which supports this. It'll however be a lot of sweat and pain.</li> <li>Use a 3rd party component library which supports this. <ul> <li><a href="http://myfaces.apache.org/tomahawk/" rel="noreferrer">Tomahawk</a> has a <a href="http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_panelGroup.html" rel="noreferrer"><code>&lt;t:panelGroup&gt;</code></a> component which supports <code>colspan</code> in <code>&lt;h:panelGrid&gt;</code>.</li> <li><a href="http://richfaces.jboss.org/" rel="noreferrer">RichFaces</a> (3.x only) has a <a href="http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_column.html" rel="noreferrer"><code>&lt;rich:column&gt;</code></a> component which supports both <code>colspan</code> and <code>rowspan</code> in <a href="http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_dataTable.html" rel="noreferrer"><code>&lt;rich:dataTable&gt;</code></a>.</li> <li><a href="http://primefaces.org" rel="noreferrer">PrimeFaces</a> has a <code>&lt;p:row&gt;</code> next to <code>&lt;p:column&gt;</code> which is supported in both <a href="http://www.primefaces.org/showcase/ui/panel/panelGrid.xhtml" rel="noreferrer"><code>&lt;p:panelGrid&gt;</code></a> and <a href="http://www.primefaces.org/showcase/ui/data/datatable/group.xhtml" rel="noreferrer"><code>&lt;p:dataTable&gt;</code></a> (also with <code>&lt;p:columnGroup&gt;</code>).</li> </ul></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload