Hi,

Could you instead use this:

See
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/form/AbstractSingleSelectChoice.html#setNullValid%28boolean%29

"If set to false, then "Choose One" will be displayed when the value is
null. After a value is selected, and that change is propagated to the
underlying model, the user will no longer see the "Choose One" option"

With that, after you post the form the "Choose One" is removed. Or you could
save the value to the model of the dropdown inside the onchange behavior,
and the add the dropdown to the AjaxRequestTarget causing the dropdown to
refresh and the "Choose One" to be removed.


- Sauli




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxEventBehavior-called-twice-because-of-javascript-onchange-tp4656329p4656350.html
Sent from the Users forum 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

Reply via email to