1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| public void openPilInNewWindow() {
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context, "/gestionApplicative/codesProjets/pil/pilotProjet.jspx");
HashMap properties = new HashMap();
properties.put("width", new Integer(800));
properties.put("height", new Integer(600));
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
} |
Partager