Greetings, ...

This is a part of my JSP page:

...
<h:selectManyListbox id="countryDepartments" size="3"
value="#{project.selectedCountryDepartments}"                                   
                
valueChangeListener="#{project.handleCountryDepartments}"
onchange="submit()" immediate="true">
   <f:selectItems value="#{project.countryDepartmentItems}"/>
</h:selectManyListbox>
...

And in my Backing Bean:

...
public void handleCountryDepartments(ValueChangeEvent event) {
   Object listbox = event.getNewValue();
}

the listbox Object has a the values [30, 13], but I can't accede to
its positions; I explain myself, I can't do:

  ...
  List<UIComponent> countryDepartmentsId = event.getComponent().getChildren();
  HtmlSelectManyListbox listbox = (HtmlSelectManyListbox)event.getNewValue();
  ...

I don't know how acceding to those values. How I can do it ? Thanks
for your help ...
-- 
fabio quimbay

Reply via email to