Auto-closing of dialog/wizard pop-up windows on Finish/Cancel when calling a wizard/dialog via a REST style url command

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-05-04 09:54:59 +00:00
parent 41519858df
commit dd5a638c20
2 changed files with 2 additions and 1 deletions

View File

@@ -112,7 +112,7 @@ public final class FacesHelper
InnerFacesContext.setFacesContextAsCurrent(facesContext);
// set a new viewRoot, otherwise context.getViewRoot returns null
UIViewRoot view = facesContext.getApplication().getViewHandler().createView(facesContext, "/jsp/root");
UIViewRoot view = facesContext.getApplication().getViewHandler().createView(facesContext, "/jsp/close.jsp");
facesContext.setViewRoot(view);
return facesContext;

1
source/web/jsp/close.jsp Normal file
View File

@@ -0,0 +1 @@
<script>window.close();</script>