Class IvyDynamicDialog

java.lang.Object
ch.ivyteam.ivy.jsf.primefaces.dialog.IvyDynamicDialog

public class IvyDynamicDialog extends Object
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 Summary

    Modifier and Type
    Method
    Description
    void
    close(String viewName)
    Close a dialog.
    void
    open(String viewName)
    Open a view in dialog.
    void
    open(String viewName, org.primefaces.model.DialogFrameworkOptions options, Map<String,List<String>> params)
    Open a view in dialog with parameter and configuration options.
  • Method Details

    • open

      public void open(String viewName)
      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.
      Example

      public void view() {
      DialogFrameworkOptions options = DialogFrameworkOptions
      .builder()
      .resizable(false)
      .draggable(false)
      .build();
      Mapinvalid input: '<'String, List> parameters = new HashMapinvalid input: '<'String, List>();
      List keys = 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-framework
      params - Parameters to send to the view displayed in a dialog.
      API:
      This public API is available in Java.
    • close

      public void close(String viewName)
      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.