Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This behavior is as <a href="http://docs.oracle.com/javaee/6/javaserverfaces/2.1/docs/vdldocs/facelets/h/selectManyCheckbox.html" rel="nofollow">documented</a>. Your attempt to fix this makes absolutely no sense. The <code>&lt;c:forEach&gt;&lt;f:selectItem&gt;</code> should just be a <code>&lt;f:selectItems&gt;</code> and you should be using a custom renderer for the job. Tomahawk has already done it before for you, its <a href="http://myfaces.apache.org/tomahawk-project/tomahawk20/tagdoc/t_selectManyCheckbox.html" rel="nofollow"><code>&lt;t:selectManyCheckbox&gt;</code></a> with <code>layout="spread"</code> attribute set, along with <code>&lt;t:checkbox&gt;</code> components declared at the desired places, allows you to control the markup fully:</p> <pre><code>&lt;!-- This piece renders _nothing_. --&gt; &lt;t:selectManyCheckbox id="foo" value="#{bean.selectedItems}" layout="spread"&gt; &lt;f:selectItems value="#{bean.availableItems}" /&gt; &lt;/t:selectManyCheckbox&gt; &lt;!-- You can markup those the way you want. They solely render &lt;input&gt;. --&gt; &lt;t:checkbox for="foo" index="0" /&gt; &lt;t:checkbox for="foo" index="1" /&gt; &lt;t:checkbox for="foo" index="2" /&gt; &lt;t:checkbox for="foo" index="3" /&gt; ... </code></pre> <p>An alternative is to just fix your CSS styles. It look too much like that you overgeneralized <code>table</code>, <code>tr</code>, <code>td</code>, etc styles to be applied on <em>all</em> of those elements instead of only those by a specific style class such as <code>table.datatable</code> for <code>&lt;h:dataTable styleClass="datatable"&gt;</code>.</p>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    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