Re: dropdownchoice onchange event called before propertymodel updates

2010-07-02 Thread vov

Can you post more code from your example?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dropdownchoice-onchange-event-called-before-propertymodel-updates-tp2275897p2276047.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



dropdownchoice onchange event called before propertymodel updates

2010-07-01 Thread goody44

Hi, 
I have a dropdownchoice which determines what details that a form holds. The
problem that I am having is that the ajax event is being called before the
property model updates the field. So the addVehicleFormPanel is being
rendered with the old value and now the new selected one. 
Hopefully that makes sense. 
I am a bit of a newbie to wicket so dumb it down if you can. 
Any help is very much appreciated. Thanks 

DropDownChoiceVehicle vehiclesDropDown = new DropDownChoiceVehicle( 
vehicleSelect, new PropertyModelVehicle(this,
selectedVehicle), 
new PropertyModelListVehicle(user, vehicles), 
new WebOptionStringChoiceRenderVehicle()) 

vehiclesDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { 
private static final long serialVersionUID = 1L; 
@Override 
protected void onUpdate(AjaxRequestTarget target) { 
target.addComponent(addVehicleFormPanel); 
} 

});
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dropdownchoice-onchange-event-called-before-propertymodel-updates-tp2275897p2275897.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org