Alex Rivera | Logout

What jsf component can render a div tag?

Asked 2009-06-04T16:19:27.867
140

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

Edit
Report

1 Answer

249

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"/>
answered 2009-06-05T06:06:21.573

Your Answer