mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -112,7 +112,7 @@ public final class FacesHelper
|
|||||||
InnerFacesContext.setFacesContextAsCurrent(facesContext);
|
InnerFacesContext.setFacesContextAsCurrent(facesContext);
|
||||||
|
|
||||||
// set a new viewRoot, otherwise context.getViewRoot returns null
|
// 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);
|
facesContext.setViewRoot(view);
|
||||||
|
|
||||||
return facesContext;
|
return facesContext;
|
||||||
|
1
source/web/jsp/close.jsp
Normal file
1
source/web/jsp/close.jsp
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<script>window.close();</script>
|
Reference in New Issue
Block a user