Question

Is it possible to trick JSF to generate a title attribute for the <div>, when a <h:panelGroup> component with layout="block" is used?

The <h:panelGroup> is used in a composite component and I can't use the <div> tag directly as I need the rendered attribute.

Was it helpful?

Solution

If you are using JSF 2.2 you can make use of the Pass-through attributes feature, like this

<h:panelGroup p:title="My title"

Another solution could be using the div with title and wrapping it with

<panelGroup rendered=""
    <div title="My title"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top