Yes, that's what I wrote. The ID does not change but the response of the Ajax call replaces the original Wicket Component in THE DOM with a new Component WITH THE SAME ID but fresh on... events. So the original event behavior (e.g. menu display) gets lost. It needs tob e re-established in the Ajax resonse. For wicket events (bound to onclick e.g.) this is done when the comonent is written as a stream tot je Ajax response. Such an Ajax resonse looks like
<component id="id1" encoding="wicket1" ><![CDATA[<a class="draggableComponent" href="wicket:interface=:0:draggable1:draggableLink::ILinkListener::" style="display:block; height:80px; width:200px;" id="id1" onclick="var wcall=wicketAjaxGet('?wicket:interface=:0:draggable1:draggableLink::IBehaviorListener:0:-1',null,null, function() {return Wicket.$('id1') != null;}.bind(this));return !wcall;"> I am draggable.<br/> <span style="font-size:110%; font-weight:bold;" id="id8">Drag me!</span> <br/> <span style="font-size:80%">(Or click me and see what happens...)</span> </a><script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/ -----Ursprüngliche Nachricht----- Von: news [mailto:n...@ger.gmane.org] Im Auftrag von Alexander Elsholz Gesendet: Sonntag, 14. Juni 2009 17:51 An: users@wicket.apache.org Betreff: Re: DOJO Menu Items and AJAX-Target-Components hi, i don't remove/add the components. the hierarchy is constant. its a very simple app: -> add an ajaxlink and change the attributemodifier of a panel -> add a menu item to the same panel after rerendering the panel (after link clicked) the menu will no more be displayed. i've the same problem in my table when using ajax and dojo menues i tried to set the markup-id manually, but no effect. the associated javascript uses the static markupid i set in code, but after rerendering the panel asynchron it does'nt work. alex --------------------------------------------------------------------- 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