for my problem with dojo this works: public void refreshMenu(AjaxRequestTarget pTarget) { String js = "dojo.addOnLoad(function(){\n + menu.generateJS() + "\n});" ; pTarget.appendJavascript(sss); }
and i know the same stuff works for jquery and yui. the problem is that the header javascript brokes after rerendering the component (i think its a problem with object references because most browsers replace the object by creating a new one and the javascript stuff bind on the dom-bject). What seems to work is to put the javascript stuff into the <body> tag using the onComponentRendered() to "reactivate" the behavior. the ugly is you have to reload the menu in every ajax-event reredering the component with menu. hth alex --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org