0

Like div/span in HTML, I'd like to know if there has similar tags in JSF. It should be meaningless in HTML display, but only for organizing document composition.

For example:

<h:abstractGroup id="a" rendered="false">
    ...
</h:abstractGroup>
Lenik
  • 13,946
  • 17
  • 75
  • 103

2 Answers2

1

The rendering of a group of child components can be controlled with the facelet tag <ui:fragment>.

See also Alternative to ui:fragment in JSF

Community
  • 1
  • 1
meriton
  • 68,356
  • 14
  • 108
  • 175
  • Oddly, `ui:fragment`, `h:panelGroup` did not work for me. I'm using PrimeFaces (3.0-M3), at last I've found `p:outputPanel` which worked for me, though. I'm curious what's the difference between `ui:fragment` and `p:outputPanel`? Do you know? – Lenik Sep 03 '11 at 09:46
1

h:panelGroup does exactly this, and it renders as div or span too, automatically detecting which is required.

user207421
  • 305,947
  • 44
  • 307
  • 483