1 Reply Latest reply: Sep 26, 2013 9:30 AM by Frank Nimphius-Oracle RSS

    valueChangeListener method is never triggered

    Sravanthi Gelley

      Hi,

       

      Part of jsff:

      <?xml version='1.0' encoding='UTF-8'?>

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"

                xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

        <af:panelGroupLayout id="pgl1">

          <af:selectOneChoice label="select data" id="soc1" autoSubmit="true"

                              immediate="true"

                              valueChangeListener="#{pageFlowScope.dvtBean.requiredFieldChangeListener}">

            <af:selectItem label="Top5 " value="top5" id="si2"/>

            <af:selectItem label="Bottom 5" value="bottom5" id="si1"/>

          </af:selectOneChoice>

        </af:panelGroupLayout>

      </jsp:root>

       

      Manged bean method:

          public void requiredFieldChangeListener(ValueChangeEvent valueChangeEvent) {

              System.out.println("entered requiredFieldChangeListener");

              valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());

              System.out.println("exited requiredFieldChangeListener");

          }

       

      when I change the value of choice, requiredFieldChangeListener is not getting invoked. i have set autoSubmit also as true. Anybody please help.