2 Replies Latest reply on May 16, 2008 9:59 AM by damianharvey

    a4j:commandlink + ui:repeat, rerender not working

    jhs2zz

      Hi, I am using richfaces 3.2.0 with facelet 1.1.14. I have a ui:repeat field which iterates through a collection and renders some links. Onclick each link an action is called and page should be re-rendered. I have the foloowing code, the action is called properly but the page is never rerendered. (the other aj4:commandlink component in red color outside the ui:repeat loop is for testing this, and it works) Is this a bug with using facet + richfaces? Or have I done anything wrong?

       <rich:panelMenuGroup label="Search history" id="searchHistoryPanel">
       <rich:panelMenuItem>
       <h:outputText value="Click on a keyword below to remove that search criteria. Or click "/>
       <h:outputLink value="#">
       <h:outputText value="here"/>
       <a4j:support event="onclick" action="#{uiSearchProxy.processResetSearchCriteria}"
       reRender="motherPanel,resultList,dataScroller,numCount,searchHistoryPanel"/>
       </h:outputLink> to reset your search.
       <a4j:commandLink
       reRender="motherPanel,resultList,dataScroller,numCount,searchHistoryPanel">
       <h:outputText value="theretorerender"/>
       </a4j:commandLink>
       <ui:repeat var="trail" value="#{uiSearchProxy.trails}"><br/>-
       <h:outputText value="#{trail.field}" style="font-weight:bold;"/>:
       <ui:repeat var="astep" value="#{trail.steps}">
       <h:outputText value=" >"/>
       <a4j:commandLink action="#{uiSearchProxy.processRemoveConstraint}"
       reRender="motherPanel,resultList,dataScroller,numCount,searchHistoryPanel">
       <h:outputText value="#{astep.value}"/>
       <f:param name="trailField" value="#{trail.field}"/>
       <f:param name="trailStepId" value="#{astep.id}"/>
       </a4j:commandLink>
       </ui:repeat>
       </ui:repeat>
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
      


      Any suggestions wouldbe very much appreciated! many thanks!