Hi Sabitha,

The problem is that you remove the SelectItems from the list box, but you do
not remove them from the value of the list box.

For example: You have a list box with items A, B and C. The user selects B
and submits. So the managed bean property referenced by value will be set to
B. Now you remove B from the list of possible items, but there is still the
B in the managed bean. So when the list box tries to render the currently
selected value B, it does not find the related option element and so it logs
a warning message.

If you remove SelectItems from the list box you have to make sure that they
are also removed from the managed bean property referenced by the value
attribute of the list box, otherwise you will get the warning.

Regards

Jakob Korherr

2009/11/27 Sabitha Gopal Pandit <[email protected]>

>  Hi All,
>
>
>
> we are using the <tr:selectOneListbox> compoenent and the application
> provides a facility to all or remove elements from the list box
>
> so when i edit the list box i get the following warning in my console
>
>
>
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectManyRenderer
> getSelectedIndices
>
> WARNING: Some entries in value of
> CoreSelectManyListbox[UIXEditableFacesBeanImpl,
> id=p_756_finduserspropspopupformId8] not found in SelectItems: [1084]
>
>
>
> warning clearly mentions that the item was removed
>
>
>
> so does this mean that this component doesnot expect the items to be
> removed from the listbox?
>
> <tr:selectOneListbox> components provides the facility to add or delete
> items from it. then why is the warning appearing for it ?
>
>
>
> Thanks,
>
> Sabitha
>
>
>

Reply via email to