Lucas, I think you will have to do something similar to what AjaxSlider does.
1- Attach a div to your page and an AbstractDefaultAjaxBehavior to that div. 2- Use that behavior to construct callback URL for buttons and on Buttons protected void execute(JsScopeContext scopeContext) { scopeContext.append(new StringBuffer().append("wicketAjaxGet(url+"?button=Ok)")) .toString()); } So that you can "see" which button was clicked at server side Regards, Ernesto On Tue, Nov 29, 2011 at 2:52 PM, lucast <lucastol...@hotmail.com> wrote: > Dear Forum, > I want to implement a modal window for confirming the deletion of objects. I > want to use Jquery confirmation dialog, just like on > http://jqueryui.com/demos/dialog/modal-confirmation.html this example . > > Is there a way to add this Jquery script to my code and to know if the > delete button has been clicked? > When I use jQuery widgets, I render them on load from renderHead function > but I never had to use dialogs. > > I thought of using wiQuery's functionality by creating a Dialog object and > adding DialogButton objects to it. > But I don't know how to how about adding the necessary code to record that > the delete button has been clicked. > I know I need to add the following code to the Dialog object: > DialogButton deleteButton = new DialogButton("delete", jsScope); > but I don't know what I should put on jsScope. > > I don't want to depend on wiQuery, if learning how to read a value from > javascript/jquery code gives me more freedom. > > Thanks in advance, > Lucas > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Jquery-Confirmation-Dialog-or-WiQuery-Dialog-tp4119238p4119238.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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