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
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