I\'m trying to conditionally render a I cannot use Apparently you didn't test it carefully. The <h:panelGroup> won't render anything if you don't specify attributes which should end up in the client side, like Thus, this should technically perfectly work fine. However, better for the main purpose would be to use <ui:fragment>. This is by the way also possible with <f:verbatim>, but this is deprecated since JSF 2.0 as it's designed specifically for usage in JSP. therefore I cannot use
as it will render to or
<h:panelGroup>
as it will render to <span>
or <div>
layout
, id
, styleClass
, etc.<h:panelGroup rendered="#{negotiator.maySend}">
<tr> my tr stuff </tr>
</h:panelGroup>
<ui:fragment rendered="#{negotiator.maySend}">
<tr> my tr stuff </tr>
</ui:fragment>
See also: