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