I know I can preselect the value of DropDownChoice by setting the
corresponding value in the model.

My use case is this: I have several DropDownChoice with
OnChangeAjaxBehaviors. Selection of value in one DDChoice enables second
DDChoice. The values in second DDChoice depend on the value selected in the
first DDChoice. In case the second DDChoice has only one possible value, I
would like to have it preselected automatically.

However, I'm unsure in which lifecycle phase I should look at the number of
options of second DDChoice and manipulate its model to achieve preselection.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-single-choice-preselect-automatically-tp4656417.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