I have a component created
<cc:interface>
......
</cc:interface>
<cc:implementation>
<cc:implementation>
<div id="#{cc.clientId}" style="margin: 0; padding: 0; width: 100%;">
...
<p:inputText id="texto" value="#{cc.attrs.value}"
readonly="#{cc.attrs.readonly}"
required="#{cc.attrs.required}"
maxlength="#{cc.attrs.maxlength}">
</p:inputText>
...
</div>
</cc:implementation> </cc:implementation>
This component is used in a template, like this
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.org/ui"
xmlns:util="http://java.sun.com/jsf/composite/util"
......
<p:outputLabel val="name" for="foo">
<util:texto id="foo" val="#{bean.text}" required="true" />
......
</html>
But, on submit form, the component foo doesn't have red borders and p:outputLabel
doesn't show the required icon, [if for="foo:texto"
in p:outputlabel
paint red but not icon required]
Please, show me, what is the solution, thanks
PD:excuse my very bad english.