Class IvyDynamicDialog
java.lang.Object
ch.ivyteam.ivy.jsf.primefaces.dialog.IvyDynamicDialog
Dialog bean for opening and closing Dynamic Dialogs.
https://primefaces.github.io/primefaces/13_0_0/#/core/dialogframework?id=dialog-framework
- Since:
- ("11.4")
- API:
- This is a public API.
-
Method Details
-
open
Open a view in dialog.
Example <p:commandButton actionListener="#{ivyDynamicDialog.open('Dialog')}" value="Open" />- Parameters:
viewName- of the dialog view to open; without the xhtml file extension. The view should be in the same package as the HTML Dialog.- API:
- This public API is available in Java.
-
open
public void open(String viewName, org.primefaces.model.DialogFrameworkOptions options, Map<String, List<String>> params) Open a view in dialog with parameter and configuration options.
Examplepublic void view() {
DialogFrameworkOptions options = DialogFrameworkOptions
.builder()
.resizable(false)
.draggable(false)
.build();
Mapinvalid input: '<'String, List> parameters = new HashMapinvalid input: '<'String, List >();
Listkeys = new ArrayList ();
keys.add("terry");
keys.add("cool");
parameters.put("books", keys);
IvyDynamicDialog.open("Dialog", options, parameters);}
- Parameters:
viewName- of the dialog view to open; without the xhtml file extension. The view should be in the same package as the HTML Dialog.options- Configuration options for the dialog. See all the options under https://primefaces.github.io/primefaces/13_0_0/#/core/dialogframework?id=dialog-frameworkparams- Parameters to send to the view displayed in a dialog.- API:
- This public API is available in Java.
-
close
Close a dialog. Example <p:commandButton actionListener="#{ivyDynamicDialog.close('Dialog')}" value="Close" />- Parameters:
viewName- of the dialog view to open; without the xhtml file extension. The view should be in the same package as the HTML Dialog.- API:
- This public API is available in Java.
-