2 Replies Latest reply on Dec 5, 2008 9:01 AM by dietice

    a4j:support doesn't get to the actionListener

      Hi all,
      I created a simple view with two dataTables and on each a a4j:support tag...

      <f:view>
      <a4j:form id="form1">
      <rich:panel id="panel1" header="first">
      <rich:dataTable id="table1" rowKeyVar="index"
      value="#{testBean.testList}">
      <a4j:support event="onRowClick" reRender="panel2"
      actionListener="#{testBean.testAction}" />
      <h:column>
      <h:outputText value="#{index+1}" />
      </h:column>
      </rich:dataTable>
      </rich:panel>
      </a4j:form>
      <a4j:form id="form2">
      <rich:panel id="panel2" header="second">
      <rich:dataTable id="table2" rowKeyVar="index"
      value="#{testBean.testList2}">
      <a4j:support event="onRowClick"
      actionListener="#{testBean.testAction2}" />
      <h:column>
      <h:outputText value="#{index+1}" />
      </h:column>
      </rich:dataTable>
      </rich:panel>
      </a4j:form>
      </f:view>

      If i click on the a row and let the second table (table1) render the content, everything works. But if i now klick on the new table (table2) a event starts, but the action in the actionListener does not get executed :(

      what is wrong with my code?

      Greetings and THX!