Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF Value Change Event

843842Feb 6 2006 — edited Sep 14 2007
I am having a problem using value change event properly:

I have a drop down. I initialize its value to the first item of drop down with managed property in xml configuration file.

When I change drop down from first value to second value, event is activated.
When I change drop down value back from second to first value event is not activate. This is probably because first value is being always initialized when bean is created and JSF compares this value to the new selected value and sees no change.

Of course, this behavior is wrong, since I was changing the value of the drop down from second item to first item.

Is there a way of dealing with this problem with JSF ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2007
Added on Feb 6 2006
14 comments
314 views