Is it possible from within a decorate file get the current UI component id, like this:
page.xhtml
<s:decorate template="validate.xhtml" id="decorate1"> <h:inputText value="#{bean.myValue1}" id="myValue1Id"/> </s:decorate> <s:decorate template="validate.xhtml" id="decorate1"> <h:inputText value="#{bean.myValue2}" id="myValue2Id"/> </s:decorate>
validate.xhtml
<f:facet name="beforeInvalidField"> <rich:message for=""/> </f:facet>
What can I put in the for attribute for rich:message to attached the message to the correct input field?
Best regards
P