Re: [wiquery] How to open a modal dialog from a Link?

2010-10-14 Thread Peter Munro
That works beautifully. Thanks Ernesto. I also made a small mod to remove the 'href' on the client side so that it just opens the dialog and doesn't follow the link: JsQuery linkQuery = new JsQuery(link); linkQuery.$().chain(attr, 'href', '#'); link.add(new

[wiquery] How to open a modal dialog from a Link?

2010-10-12 Thread Peter Munro
Hi, I'm using wiQuery and have a demo application with a Button that opens a modal dialog successfully, but I'd like to use Links instead of Buttons, so I'm replacing this: button wicket:id=open-dialogOpen dialog/button with an anchor/Link: a href=# wicket:id=open-dialogOpen dialog/a and in my

Re: [wiquery] How to open a modal dialog from a Link?

2010-10-12 Thread Ernesto Reinaldo Barreiro
Use JavaScript to do that on the client side? See method /**Method to open the dialog * @return the associated JsStatement */ public JsStatement open() { return new JsQuery(this).$().chain(dialog, 'open'); } on Dialog class which generates the