Hi,

Check what additional markup if generated by Chosen. It transforms
<select> to more complex HTML structure.
Then you'll have more information what should be done to replace the
whole thing, not just to provide new <select> as what Wicket would do
by default.

I can also recommend you to take a look at
http://ivaynberg.github.com/select2 . Soon-ish this will have Wicket
wrapper component created by the Master (Igor Vaynberg).

On Fri, Mar 30, 2012 at 5:03 AM, Andrew Geery <[email protected]> wrote:
> I have a ListMultipleChoice component (Wicket 1.5.4) with a Behavior added
> to it to enable the use of the Chosen ( http://harvesthq.github.com/chosen/ )
> JS library.  Everything works fine until I attempt to add() the component
> to a page in an AjaxRequestTarget.  Rather than replacing the component in
> the DOM, the add call creates a duplicate component.  Looking in the DOM, I
> end up with multiple divs with the same id.
>
> I'm guessing there is some weird interaction between the Chosen JS library
> and the Wicket AJAX library.  Has anyone seen anything like this before?
>
> Thanks
> Andrew



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to