JQuery to show the Primefaces's confirmDialog
How to 开发者_如何学JAVAuse JQuery to show the Primefaces's confirmDialog ?
The Primefaces dialogs have javascript convenience methods for showing and hiding.
// where dialog is the widgetVar of your Primefaces dialog.
dialog.show();
dialog.hide();
For many of the Primefaces components however you can access the underlying jQuery object by looking for a property jq.
component.jq.removeClass('exampleClass');
Above is an example.
精彩评论