7 Replies Latest reply on Dec 20, 2007 11:37 AM by Pete Muir

    Same element ID in many forms on the page

    Ivan B Novice


      When I use the following form alone on the page everything is fine, but if put it into some iteration element, like rich:dataTable then #{tagHome.instance.name} varibale isn't initialised.

      Can anyone suggest what could be the matter?

      Any help is much appreciated,

      <a4j:form ajaxSubmit="true">
       <h:panelGrid columns="2">
       <h:inputText value="#{tagHome.instance.name}" id="suggestion" />
       <rich:suggestionbox for="suggestion"
       suggestionAction="#{tagHome.autocomplete}" var="tag"
       tokens="," width="200" height="100"
       <h:outputText value="#{tag.name}" />
       <h:outputText value="#{tag.id}" />
       <a4j:commandLink value="Add Tag" reRender="tagsPanel" action="#{tagHome.persist}">
       <a4j:actionparam name="cardID" value="#{card.id}"
       assignTo="#{tagHome.cardID}" />