You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by prasopes <vl...@gmail.com> on 2013/03/21 18:16:24 UTC

Custom DropDownChoice using HeaderItem

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Custom DropDownChoice using HeaderItem

Posted by prasopes <vl...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Custom DropDownChoice using HeaderItem

Posted by Igor Vaynberg <ig...@gmail.com>.
use OnDomReadyHeaderItem

-igor

On Thu, Mar 21, 2013 at 10:16 AM, prasopes <vl...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

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