What jsf component can render a div tag?

user101442 picture user101442 · Jun 4, 2009 · Viewed 131.2k times · Source

Eg: h:inputText will render a "input type='text'". What jsf tag can render a "div" tag?

Answer

Romain Linsolas picture Romain Linsolas · Jun 5, 2009

You can create a DIV component using the <h:panelGroup/>. By default, the <h:panelGroup/> will generate a SPAN in the HTML code.

However, if you specify layout="block", then the component will be a DIV in the generated HTML code.

<h:panelGroup layout="block"/>