5 Replies Latest reply on Jul 22, 2010 7:12 AM by Ilya Shaikovsky

    Get selected value of dynamic combobox.

    deeps p Newbie

      Hi all,


      In my application I am generating UI components dynamically based on the value that user selects from a combo box.The dynamically generated components are mainly InputNumberSpinner and HtmlComboBox.My requirement is ,based on the values selected in the dynamically generated combobox I want to rerender my UI with some more components.For this I have one method which will be called onlistclose of the dynamic  comboboxes.

      This I have done as shown:



      FacesContext facesContext = FacesContext.getCurrentInstance();

      ELContext elContext = facesContext.getELContext();

      Application application = facesContext.getApplication();

      ExpressionFactory expFactory = application.getExpressionFactory();

      MethodExpression methodExp = expFactory.createMethodExpression



      new Class[] { ActionEvent.class });

      ActionListener aListener =new MethodExpressionActionListener(methodExp);

      HtmlAjaxSupport ajaxSupport =new HtmlAjaxSupport();









      The function someFn() in the bean calss is getting called on list close of dynamic combo boxes.But how can I get the selected values of the dynamic comboboxes in the function so that I can decide on what should be done next?


      If anyone have any idea please help.


      Thanks in advance,