public void openDynamic(String outcome, Map<String, Object> options, Map<String, List<String>> params) {
            FacesContext facesContext = getFacesContext();
            facesContext.getAttributes().put(Constants.DialogFramework.OUTCOME, outcome);

            if (options != null) {
                facesContext.getAttributes().put(Constants.DialogFramework.OPTIONS, options);
            }

            if (params != null) {
                facesContext.getAttributes().put(Constants.DialogFramework.PARAMS, params);
            }
        }
Opens a view in a dynamic dialog.

@param outcome the logical outcome used to resolve the navigation case.
@param options configuration options for the dialog.
@param params parameters to send to the view displayed in the dynamic dialog.
primefaces/src/main/java/org/primefaces/PrimeFaces.java