From a07c125fd32800a45e2152e795261c48a83ec452 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 11 Mar 2009 14:25:06 +0000 Subject: [PATCH] Merged V3.1 to HEAD 13023: ISO date fix for ETHREEOH-1215 13153: Merged V2.1-A to V3.1 9026: - Added "My Content" link to error page - Manual merge of Safari fixes - Fixed exploded build target after recent removals 13155: Restored line removed in merge 13156: Merged V2.1-A to V3.1 9027: *RECORD-ONLY* Further Safari rendering fix 9028: Removed use of generics from JSP so it compiles in JBoss 13161: Merged V2.1-A to V3.1 9051: *RECORD-ONLY* Fix for ACT 2806 (linked content was returning 404 error) 13162: Merged V2.1-A to V3.1 8680: *RECORD-ONLY* Added back "too_many_users" message as it got removed 13164: Merged V2.1-A to V3.1 8699: Added DOCTYPE line 8994: Added Copyright for Sun due to Rhino debugger use. 9388: *RECORD-ONLY* ACT-3263 - Localization of "username" and "password" in login.jsp 13166: Merged V2.1-A to V3.1 9748: *RECORD-ONLY* Fix for ACT 3455 (ADB-90) - Editor role can not check out documents 10199: Fix for ADB-86: Clicking 'Cancel' while adding a composite condition for a Rule on a space in CS ES has no effect 13167: Merged V2.1-A to V3.1 10673: Fix for ADB-110/ACT-4247: Review/Change Records Management URLs and make it compatible to Adobe's build 10674: Fix for ADB-109: setting log4j.rootLogger to WARN thows unexpected warn when accessing My Home 13168: Merged V2.1-A to V3.1 10883: *RECORD-ONLY* Fix for ADB-124: Change Search field length to 1 10905: Fix for ADB-114 ACT 4425. Also will fix ALFCOM-1895 when merged to HEAD. 10961: Fix for ADB-44: Create menu link should not be visible if the menu is empty 10962: Fix for ADB-61: Alfresco breadcrumbs + Navigator become inconsistent.... git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13567 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/messages/webclient.properties | 1 + .../org/alfresco/web/bean/NavigationBean.java | 10 ++++++++- .../bean/rules/CreateCompositeRuleWizard.java | 22 +++++++++++++++---- .../web/ui/common/component/UIActionLink.java | 4 +++- .../common/renderer/ActionLinkRenderer.java | 18 ++++++++++++++- .../repo/component/template/UITemplate.java | 21 ++++++++++++++++++ .../web/ui/repo/tag/SystemErrorTag.java | 7 ++++++ source/web/index.jsp | 14 ++++++++++-- source/web/jsp/actions/mail.jsp | 2 +- source/web/jsp/browse/browse.jsp | 10 ++++++--- source/web/jsp/login.jsp | 1 + 11 files changed, 97 insertions(+), 13 deletions(-) diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index 56c930502e..e3b0b03182 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -1935,6 +1935,7 @@ error_domain_mismatch=Domain mismatch: expected = {0}, actual = {1} # Confirmations return_to_application=Return to application +return_home=My Content delete_space_info=To remove this space and all of its contents, click OK. delete_space_assoc_info=This space appears in multiple locations, to remove the space from the current location, click OK. delete_space_confirm=Are you sure you want to delete \"{0}\" and all its contents? diff --git a/source/java/org/alfresco/web/bean/NavigationBean.java b/source/java/org/alfresco/web/bean/NavigationBean.java index 7852f0a33b..d5fea94a6c 100644 --- a/source/java/org/alfresco/web/bean/NavigationBean.java +++ b/source/java/org/alfresco/web/bean/NavigationBean.java @@ -734,7 +734,15 @@ public class NavigationBean implements Serializable return this.currentNode; } - + + /** + * @return Boolean value according to CREATE_CHILDREN permission on the current node. + */ + public boolean isCreateChildrenPermissionEnabled() + { + return getCurrentNode().hasPermission(PermissionService.CREATE_CHILDREN); + } + /** * @return Returns the breadcrumb handler elements representing the location path of the UI. */ diff --git a/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java b/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java index 7b600259c6..e6a138d742 100644 --- a/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java +++ b/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java @@ -196,14 +196,28 @@ public class CreateCompositeRuleWizard extends CreateRuleWizard { if (isAddingCompositeCondition()) { - //don't clear when editing, since we are looking at a REFERENCE to an existing condition - if (this.editingCondition == false) { + // don't clear when editing, since we are looking at a REFERENCE to an existing condition + if (this.editingCondition == false) + { this.currentConditionProperties.clear(); } + // reset the action drop down - this.selectedCondition = null; + this.selectedCondition = null; + + // determine what page to go back to + FacesContext context = FacesContext.getCurrentInstance(); + String currentViewId = context.getViewRoot().getViewId(); + IHandler handler = this.conditionHandlers.get(CompositeConditionHandler.NAME); - goToPage(FacesContext.getCurrentInstance(), handler.getJSPPath()); + String compositePage = handler.getJSPPath(); + + if (currentViewId.equals(compositePage)) + { + this.returnViewId = getWizardContainerViewId(context); + } + + goToPage(FacesContext.getCurrentInstance(), this.returnViewId); } else { diff --git a/source/java/org/alfresco/web/ui/common/component/UIActionLink.java b/source/java/org/alfresco/web/ui/common/component/UIActionLink.java index 1cf431b64d..fa5713669e 100644 --- a/source/java/org/alfresco/web/ui/common/component/UIActionLink.java +++ b/source/java/org/alfresco/web/ui/common/component/UIActionLink.java @@ -74,6 +74,7 @@ public class UIActionLink extends UICommand this.tooltip = (String)values[5]; this.target = (String)values[6]; this.verticalAlign = (String)values[7]; + this.onclick = (String)values[8]; } /** @@ -91,7 +92,8 @@ public class UIActionLink extends UICommand this.href, this.tooltip, this.target, - this.verticalAlign + this.verticalAlign, + this.onclick }; } diff --git a/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java b/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java index d34f5ee8c5..cc0be349f3 100644 --- a/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java +++ b/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java @@ -349,7 +349,23 @@ public class ActionLinkRenderer extends BaseRenderer if (link.getHref() == null) { out.write(""); + out.write(bundle.getString(MSG_RETURN_HOME)); + out.write(""); + out.write("\n