Hi, what wicket version are you using and how do you re-invoke the javascript on ajax update? if you are using wicket 1.3 the best way to do invoke the javascript is using IHeaderResponse.renderOnDomReadyJavascript (works on regular page refresh and also on ajax update).
-Matej On 10/18/07, Doug Leeper <[EMAIL PROTECTED]> wrote: > > I have a question that I hopefully someone will be able to answer. > > I have created a Wicket based framework on top of YUI Context menu in > wicketstuff (menu2). Everything works as expected. It can be used on > Tree/Table for those that are interested. > > However, the issue that I have come across is that the menu stops working > when I send back the component that the contextmenu is "listening" on. I > understand that the DOM has changed and the menu needs to be recreated to > reestablish its association. What I don't know is what is the best way to > reestablish the contextmenu. I resend the Javascript to recreate the menu > but that doesn't work. Is there something that I am missing? How do I have > the YUI ContextMenu (in Javascript) re-listen on the recently sent > component? > > Thanks in advance, > - Doug > > P.S. If you are interested in having a ContextMenu for your Wicket > Application, please check out package > org.wicketstuff.yui.markup.html.menu2.contextMenu. Please be aware that > this is a work in progress but does work. There is also a working example > in the wicketstuff-yui-examples. I hope to have an example for Tree up very > soon. > -- > View this message in context: > http://www.nabble.com/Ajax-question-tf4644668.html#a13267305 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
