Re: Custom DropDownChoice using HeaderItem

2013-03-22 Thread prasopes
That works perfectly, thank you!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-DropDownChoice-using-HeaderItem-tp4657418p4657442.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



Custom DropDownChoice using HeaderItem

2013-03-21 Thread prasopes
Hi,
I'd like to have a DropDownChoice that gets transformed with Javascript on
each rendering. The Javascript manipulates the option tags. Is it possible
to achieve this using override of renderHead method?
I tried:

But when the Javascript gets called, the select has no options yet. Am I
headed in a completely wrong direction?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-DropDownChoice-using-HeaderItem-tp4657418.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



DropDownChoice - single choice, preselect automatically

2013-02-15 Thread prasopes
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