[jboss-user] [JBoss Seam] - duplicated in the faces tree

tony.herstell@gmail.com do-not-reply at jboss.com
Fri Mar 30 08:58:43 EDT 2007


  |         <!-- 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
anonymous wrote : 
  | 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?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033150#4033150

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033150



More information about the jboss-user mailing list