I don't know if I undersantd you correctly. How do you create the List
of SelectItems called 'countryDepartmentItems'? When you do
event.getNewValue() in the valueChangeListener method you obtain the
selected values as an array of the values of the SelectItem objects.
Then, you should do whatever logic you need with this values...

Regards,

Bruno

2005/7/23, fabio quimbay <[EMAIL PROTECTED]>:
> 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