Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p><em>I cannot use <code>&lt;h:panelGroup&gt;</code> as it will render to <code>&lt;span&gt;</code> or <code>&lt;div&gt;</code></em></p> </blockquote> <p>Apparently you didn't test it carefully. The <a href="https://docs.oracle.com/javaee/7/javaserver-faces-2-2/vdldocs-facelets/h/panelGroup.html" rel="nofollow noreferrer"><code>&lt;h:panelGroup&gt;</code></a> won't render anything if you don't specify attributes which should end up in the client side, like <code>layout</code>, <code>id</code>, <code>styleClass</code>, etc.</p> <p>Thus, this should technically perfectly work fine.</p> <pre><code>&lt;h:panelGroup rendered="#{negotiator.maySend}"&gt; &lt;tr&gt; my tr stuff &lt;/tr&gt; &lt;/h:panelGroup&gt; </code></pre> <p>However, better for the main purpose would be to use <a href="https://docs.oracle.com/javaee/7/javaserver-faces-2-2/vdldocs-facelets/ui/fragment.html" rel="nofollow noreferrer"><code>&lt;ui:fragment&gt;</code></a>.</p> <pre><code>&lt;ui:fragment rendered="#{negotiator.maySend}"&gt; &lt;tr&gt; my tr stuff &lt;/tr&gt; &lt;/ui:fragment&gt; </code></pre> <p>This is by the way also possible with <a href="https://docs.oracle.com/javaee/7/javaserver-faces-2-2/vdldocs-facelets/f/verbatim.html" rel="nofollow noreferrer"><code>&lt;f:verbatim&gt;</code></a>, but this is deprecated since JSF 2.0 as it's designed specifically for usage in JSP.</p> <h3>See also:</h3> <ul> <li><a href="https://stackoverflow.com/questions/3713468/alternative-to-uifragment-in-jsf/">Alternative to ui:fragment in JSF</a></li> <li><a href="https://stackoverflow.com/questions/4870462/conditionally-displaying-jsf-components">Conditionally displaying JSF components</a></li> <li><a href="https://stackoverflow.com/questions/8634156/how-to-find-out-client-id-of-component-for-ajax-update-render-cannot-find-compo/">How to find out client ID of component for ajax update/render? Cannot find component with expression &quot;foo&quot; referenced from &quot;bar&quot;</a></li> <li><a href="https://stackoverflow.com/questions/14790014/ajax-update-render-does-not-work-on-a-component-which-has-rendered-attribute">Ajax update/render does not work on a component which has rendered attribute</a></li> </ul>
    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. 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.
    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