1 2 Previous Next 16 Replies Latest reply: May 22, 2012 3:30 PM by 905266 RSS

    Get the selected ID value of a Index select list in Java

    905266
      Hi,

      I´m tried get the real selected ID value directly of your value.

      Follows my code SupplierProdRegion.jspx

      <af:selectOneChoice label="ID Cat Product:"
      value="#{processScope.idCatProd}"
      binding="#{backingBeanScope.backing_pages_reports_SupplierProdRegion.soc2}"
      id="soc2"
      valueChangeListener="#{backingBeanScope.backing_pages_reports_SupplierProdRegion.setCatProd}"
      autoSubmit="true">
      <f:selectItems value="#{bindings.CatProdId.items}"
      binding="#{backingBeanScope.backing_pages_reports_SupplierProdRegion.si2}"
      id="si2"/>
      </af:selectOneChoice>

      In the JAVA

      EL.set("#{processScope.idCatProd}", valueChangeEvent.getNewValue());
      System.out.println("Prod Cat = "+EL.get("#{processScope.idCatProd}"));

      With the code I have now shown the index of the ID that it gets the HTML.


      What I need is it to get the value of its real value according to the related field of the database


      How I can to make it work this?


      Studio Edition Version 11.1.1.2.0


      Thiago V Palmeir

      Edited by: Thiago V Palmeir on 21/05/2012 10:04

      Edited by: Thiago V Palmeir on 21/05/2012 10:05
        1 2 Previous Next