4 Replies Latest reply: Feb 13, 2013 4:50 AM by 945257 RSS

    Client Listner is not working in jsff

    945257
      Hi All Experts,

      I have one requirement , for that i need to generate runtime table (getting coloumns and rows count at runtime). It is working and for that i am using arrayList to implement.
      I need to capture the changed values of textboxes which are that table , so i am using ClientListner And ServerListner

      my code is

      jsff code is

      <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" >
      <af:clientAttribute value="#{partyCount.index}" name="partyindex"/>
      <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
      <af:clientListener method="testFunc" type="valueChange"/>
      <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
      </af:inputText>

      and javascript code is

      function testFunc(event) {

      pindex= event.getSource().getProperty("partyindex");
      billindex=event.getSource().getProperty("billcodeindex");
      AdfCustomEvent.queue(event.getSource(),"testBBFunc",{newval:event.getNewValue(),billcodeindex:(billindex-1),partyindex:pindex},false);
      }

      but i dont know why it is not calling the listners ,

      Please help

      Edited by: $achin on Feb 12, 2013 7:25 AM