As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<jsp:forward page="/main.jsp" />
public boolean initializeDialog(FacesContext context, String name, String view_id, Map<String, String> parameters) { DialogConfig config = getDialogConfig(context, name, getDispatchContextNode(context)); if (config != null) { if (logger.isDebugEnabled()) { logger.debug("Found config for dialog '" + name + "': " + config); } try { // set the dialog manager up with the retrieved config DialogManager dialogManager = Application.getDialogManager(); if (parameters != null && parameters.size() > 0) { // FIX mixing of dialog and command frameworks cause problem of initialization priority dialogManager.setupParameters(parameters); } dialogManager.setCurrentDialog(config); Stack viewStack = (Stack) context.getExternalContext().getSessionMap().get("_alfViewStack"); if (viewStack == null) { viewStack = new Stack(); context.getExternalContext().getSessionMap().put("_alfViewStack", viewStack); } viewStack.clear(); viewStack.push("/jsp/dialog/container.jsp"); } catch (RuntimeException ex) { ex.printStackTrace(); return false; } // inform any listeners that the current layout may has changed UIContextService.getInstance(context).areaChanged(); return true; } else { logger.warn("Could not find dialog " + name); } return false; }
ViewHandler viewHandler = context.getApplication().getViewHandler(); UIViewRoot viewRoot = viewHandler.createView(context, "/jsp/dialog/container.jsp"); viewRoot.setViewId("/jsp/dialog/container.jsp"); context.setViewRoot(viewRoot); context.renderResponse();