I've created a composite component using Primefaces like this:
<composite:interface>
<composite:attribute name="testText" />
</composite:interface>
<composite:implementation>
<p:button id="testid#{cc.attrs.testText}" value="#{cc.attrs.testText}"
widgetVar="testWidgetVar#{cc.attrs.testText}" />
</composite:implementation>
When I use the custom component with attribute testText="test"
I get the following behaviour:
"test" is displayed on the button (as expected)
the id of the button component is "testidtest" (as expected),
but the widgetVar is not "testWidgetVartest" as expected!
The debug output of the menu component is as follows:
<Button disableClientWindow="false" disabled="false" escape="true" iconPos="left" id="testidtest" inView="true" includeViewParams="false" inline="false" rendered="true" target="_self" transient="false" widgetVar="testWidgetVar"/>
Can someone explain that behaviour?