문제

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.

도움이 되었습니까?

해결책

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"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top