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:
Kevin Roast
2007-12-06 16:25:07 +00:00
parent 73c4a03923
commit bc3bd31e86
2 changed files with 4 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ public class UserProfileDialogCommand extends BaseUIActionCommand
ServletContext sc = (ServletContext)properties.get(PROP_SERVLETCONTEXT);
ServletRequest req = (ServletRequest)properties.get(PROP_REQUEST);
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);
// setup dialog context from url args in properties map

View File

@@ -0,0 +1,3 @@
<script type="text/javascript">
history.go(-2);
</script>