David? Answers inlined
> > Is it possible with WiQuery to add jQuery code which is to be run before the > dialog opens, and to use the return value from this code to determine > whether or not the dialog opens at all? I have such code working already > with plain javascript, it runs when an AjaxLink is clicked. I would like to > get this working with WiQuery so as to use the look and feel of the dialog. > The alternative presumably is to extend one of the jQuery dialog plugins. > Why not keep this state on the page or panel at server side? and then use AJAX round trip to check that condition. You could still use your decorator (I guess) with Dialog (ask you link is still an AJAX link after all). > Running the javascript first enables me to bring up a confirmation dialog if > a link is clicked when a wizard is in progress. The wizard creates a hidden > field in a panel, and the javascript can check for the existence and style > of this field to determine if the user is in the middle of a wizard. This is > better than storing a flag in the session, as the back-button could cause > the Wicket session and the page dispalyed to get out of synch. > Not quite following you here. If wizard is in progress why not have a flag on server side and again use AJAX to get back to the server and do logic you need whatever you need there. You don't need to store things in the directly session to have state . Ernesto --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
