mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
User Profile Dialog command now returns to previous JSP via history.back() mechanism
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7571 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -61,7 +61,7 @@ public class UserProfileDialogCommand extends BaseUIActionCommand
|
|||||||
ServletContext sc = (ServletContext)properties.get(PROP_SERVLETCONTEXT);
|
ServletContext sc = (ServletContext)properties.get(PROP_SERVLETCONTEXT);
|
||||||
ServletRequest req = (ServletRequest)properties.get(PROP_REQUEST);
|
ServletRequest req = (ServletRequest)properties.get(PROP_REQUEST);
|
||||||
ServletResponse res = (ServletResponse)properties.get(PROP_RESPONSE);
|
ServletResponse res = (ServletResponse)properties.get(PROP_RESPONSE);
|
||||||
FacesContext fc = FacesHelper.getFacesContext(req, res, sc, "/jsp/browse/browse.jsp");
|
FacesContext fc = FacesHelper.getFacesContext(req, res, sc, "/jsp/return.jsp");
|
||||||
UsersDialog dialog = (UsersDialog)FacesHelper.getManagedBean(fc, UsersDialog.BEAN_NAME);
|
UsersDialog dialog = (UsersDialog)FacesHelper.getManagedBean(fc, UsersDialog.BEAN_NAME);
|
||||||
|
|
||||||
// setup dialog context from url args in properties map
|
// setup dialog context from url args in properties map
|
||||||
|
3
source/web/jsp/return.jsp
Normal file
3
source/web/jsp/return.jsp
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
history.go(-2);
|
||||||
|
</script>
|
Reference in New Issue
Block a user