0 Replies Latest reply on Mar 24, 2010 11:08 AM by pichmeister

    Get UI component id from a decorate file

    pichmeister

      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