0 Replies Latest reply on Apr 27, 2007 7:56 PM by jmiguel77

    Dinamic a4j:commandLink not working

    jmiguel77

      Hi

      Hi created some a4j:commandLinks inside an a4j:repeater; theese commandLinks have an action and actionListener method declared

      But the thing is that the code asociated to the actionListener or action is never triggered

      This is my jsf relevant code:

      <a4j:form id="headForm">
      <a4j:commandLink id="companyCommandLink" value="#{userDataManager.compania.nombre}" action="#{headManager.commandAction}" actionListener="#{headManager.commandActionListener}" reRender="selectPanel" />
      <a4j:commandLink id="agencyCommandLink" value="#{userDataManager.usuarioCentro.agencia.nombre}" action="#{headManager.commandAction}" actionListener="#{headManager.commandActionListener}" reRender="selectPanel" />
      <a4j:outputPanel id="selectPanel" layout="block" style="float:left;margin-top:5px;margin-left:5px;width:200px;">
      <a4j:repeat id="selectDataList" binding="#{headManager.selectDataList}" value="#{headManager.valueList}" var="item" ajaxKeys="#{headManager.keys}">
      <a4j:commandLink id="selectCommandLink" binding="#{headManager.selectCommandLink}" value="#{item.value}" action="#{headManager.selectAction}" actionListener="#{headManager.selectActionListener}" styleClass="headerSelectLink" reRender="companyCommandLink,agencyCommandLink" />
      </a4j:repeat>
      </a4j:outputPanel>
      </a4j:form>

      I am not sure if the source code of selectActionListener or selectAction methods are relevant here; they only get some data from a list and place it in the session

      thanks