com.sun.webui.jsf.component.DropDown::The current value ...

Hello,

I have 2 DropDowns on my page and the contents of Nr 2 depends on Selection of number 1. All works fine until I have to delte the contents of number 2 which is currently selected. I handle this in processValueChange() of DropDown1. I call DataProvier2.refresh() and check if the previous selected contents is still therre. If not, I get the first row and set this as selected Row. Ouput of all Properties (selected, value) after the change and in prerender() of my page shows the correct values. But I get the following message:

com.sun.webui.jsf.component.DropDown::The current value of component form1:rundenDD does not match any of the selections.

Did you forget to reset the value after changing the options?

(rundenDD is the DropDown2)

How can I get rid of this message?

Regards,

Willi

[848 byte] By [Willi2793a] at [2007-11-26 22:48:12]
# 1

You have some problem with your logic.

What it is saying that the selected value is set to a value that is not in the set of drop down list values (probably because you deleted it?)

For example, you set selected to 1 and then you deleted all the drop down values so there is no 1 there anymore.

Maybe before you delete all the values out of your dropdown, you set selected to null or something like that.

See http://blogs.sun.com/divas/entry/coordinated_drop_down_lists for some instrux on doing coordinated drop down lists.

jetsonsa at 2007-7-10 12:07:43 > top of Java-index,Development Tools,Java Tools...