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



Re: Custom DropDownChoice using HeaderItem

2013-03-21 Thread Igor Vaynberg
use OnDomReadyHeaderItem

-igor

On Thu, Mar 21, 2013 at 10:16 AM, prasopes vladimirkro...@gmail.com wrote:
 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


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