Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a title attribute to a jsf panelGroup?

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.

like image 537
fabian Avatar asked Mar 26 '26 18:03

fabian


1 Answers

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"
like image 182
Daniel Avatar answered Mar 28 '26 09:03

Daniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!