01-27-2010 02:08 PM
<jsp:forward page="/main.jsp" />
.01-29-2010 06:42 AM
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();
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.