My problem is similar to this issue: http://issues.apache.org/jira/browse/MYFACES-102

On 3/22/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:
Well, i have 3 selectOneMenu, each one contains a list of country states code, when i select one state code i submit this selection and then i fill a cities selectOneMenu below the selectOneMenu that has fired the submission.

When the ValueChangeEvent method is fired the event.getOldValue() is null and event.getNewValue() has my current selection value in country states code selectOneMenu component.


On 3/16/06, Rogerio Pereira < [EMAIL PROTECTED]> wrote:
No, i never change the model values.


On 3/16/06, Mario Ivankovits < [EMAIL PROTECTED]> wrote:
Rogerio Pereira schrieb:
> I have three selectOneMenu in my page, each selectOneMenu has your own
> valuechangelistener, my problem is, when i change the value of one
> selectOneMenu all valuechangemethod in my backing bean are being fired.
In your valueChangeListener method, do you change the model values for
the other selectOneMenus?

If this is the case then the problem is that the valueChangeListener
happens BEFORE the model update, and due to the changed values in your
model for the other menus, they will fire too.

Use the valueChangeNotifier you'll find in tomahawk sandbox to get rid
of this behaviour. It fires AFTER the model update and so you can work
with your model as you might expect it.

Ciao,
Mario




--
Yours truly (Atenciosamente),

Rogério



--
Yours truly (Atenciosamente),

Rogério



--
Yours truly (Atenciosamente),

Rogério

Reply via email to