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>
Xiè Jìléi
  • 12,877
  • 15
  • 73
  • 101

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
  • 65,263
  • 14
  • 100
  • 169
  • 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? – Xiè Jìléi 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
  • 298,294
  • 41
  • 291
  • 462