2 Replies Latest reply on Mar 30, 2007 1:39 PM by Pete Muir

    duplicated in the faces tree

    Tony Herstell Master

       

       <!-- Firstname -->
       <h:outputLabel for="firstname" value="#{messages.label_firstname}" style="align:right"/>
       <s:decorate>
       <s:fragment rendered="#{!usedForFilter}">
       <h:inputText id="firstname" value="#{user.firstname}"
       required="true" title="#{messages.hint_firstname}"/>
       </s:fragment>
       <s:fragment rendered="#{usedForFilter}">
       <h:inputText id="firstname" value="#{userSearchCriteria.firstname}" title="#{messages.hint_firstname}" />
       </s:fragment>
       </s:decorate>
       <s:fragment rendered="#{!usedForFilter}">
       <h:outputText value="#{messages.tag_mandatory}" styleClass="mandatory"/>
       </s:fragment>
       <s:fragment rendered="#{usedForFilter}">
       <h:outputText value=""/>
       </s:fragment>
       <h:outputText value="" />
       <s:message errorClass="error" for="firstname" style="align:left"/>
       <h:outputText value="" />
      


      gives

      Client-id : firstname is duplicated in the faces tree. Component : firstname, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/user/userRegistration.xhtml][Class: org.jboss.seam.ui.UIValidateAll,Id: _id20][Class: org.jboss.seam.ui.UIDecorate,Id: _id24][Class: org.jboss.seam.ui.UIFragment,Id: _id26][Class: javax.faces.component.html.HtmlInputText,Id: firstname]}


      the error should be ralted to whichever "firstname" component is rendered (they are mutually exclusive)...

      Any ideas?