From cc14e27cd6e5c53d0eb37e7bc9ca5cb30287f2e6 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 10 Jan 2007 11:25:32 +0000 Subject: [PATCH] . Output path pattern help added to Create Website wizard (Configure Form Templates and Web Form Details pages) - help cursor mouse over added to help icon - incorrect alt text removed - renamed output path pattern help jsp page to standard naming convention . Found that all "Required Field" images in our JSPs with ALT text were not I18N - find-and-replaced all occurances with an I18Ned message . Some more WCM UI improvements/fixes . Fix up of 3rd Party Eclipse project after xalan library changes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4780 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/messages/webclient.properties | 1 + .../alfresco/web/bean/wcm/AVMBrowseBean.java | 31 +++++++++-- source/web/jsp/content/add-content-dialog.jsp | 2 +- .../content/create-content-wizard/details.jsp | 2 +- source/web/jsp/forums/create-dialog.jsp | 2 +- source/web/jsp/forums/create-post-dialog.jsp | 2 +- source/web/jsp/forums/create-reply-dialog.jsp | 2 +- source/web/jsp/forums/create-topic-dialog.jsp | 4 +- source/web/jsp/spaces/create-space-dialog.jsp | 2 +- .../spaces/create-space-wizard/details.jsp | 2 +- source/web/jsp/wcm/add-content-dialog.jsp | 2 +- source/web/jsp/wcm/browse-website.jsp | 15 ++--- source/web/jsp/wcm/create-folder-dialog.jsp | 2 +- .../configure-rendering-engines.jsp | 19 +++---- .../jsp/wcm/create-form-wizard/details.jsp | 51 +++++++++-------- .../wcm/create-web-content-wizard/details.jsp | 2 +- source/web/jsp/wcm/create-webapp.jsp | 2 +- .../jsp/wcm/create-website-wizard/details.jsp | 6 +- .../create-website-wizard/form-details.jsp | 25 +++++++-- .../create-website-wizard/form-templates.jsp | 55 +++++++++++-------- .../web/jsp/wcm/output-path-pattern-help.jsp | 40 ++++++++++++++ .../web/jsp/wcm/output_path_pattern_help.jsp | 39 ------------- source/web/jsp/wcm/snapshot-sandbox.jsp | 2 +- 23 files changed, 176 insertions(+), 134 deletions(-) create mode 100644 source/web/jsp/wcm/output-path-pattern-help.jsp delete mode 100644 source/web/jsp/wcm/output_path_pattern_help.jsp diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index a2844a842e..c132394beb 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -41,6 +41,7 @@ categories_description=This view allows you to browse and modify the categories new_category_description=Enter information about the new Category then click Create Category. status_message_default=No messages. no_icons_found=No icons found +required_field=Required Field # UI Component messages yes=Yes diff --git a/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java b/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java index 16801ab242..b500ef7aa5 100644 --- a/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java +++ b/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java @@ -108,6 +108,9 @@ public class AVMBrowseBean implements IContextListener /** Current webapp context for actions and sandbox view */ private String webapp; + /** List of top-level webapp directories for the current web project */ + private List webapps; + /** Sandbox title message */ private String sandboxTitle = null; @@ -405,14 +408,26 @@ public class AVMBrowseBean implements IContextListener */ public List getWebapps() { - String path = AVMConstants.buildSandboxRootPath(getStagingStore()); - Map folders = this.avmService.getDirectoryListing(-1, path); - List webapps = new ArrayList(folders.size()); - for (AVMNodeDescriptor node : folders.values()) + if (this.webapps == null) { - webapps.add(new SelectItem(node.getName(), node.getName())); + String path = AVMConstants.buildSandboxRootPath(getStagingStore()); + Map folders = this.avmService.getDirectoryListing(-1, path); + List webapps = new ArrayList(folders.size()); + for (AVMNodeDescriptor node : folders.values()) + { + webapps.add(new SelectItem(node.getName(), node.getName())); + } + this.webapps = webapps; } - return webapps; + return this.webapps; + } + + /** + * @return count of the root webapps in the current web project + */ + public int getWebappsSize() + { + return getWebapps().size(); } /** @@ -478,6 +493,7 @@ public class AVMBrowseBean implements IContextListener // clear context when we are browsing a new website this.lastWebsiteId = this.navigator.getCurrentNodeId(); this.webapp = null; + this.webapps = null; this.webProject = null; } return this.navigator.getCurrentNode(); @@ -987,6 +1003,9 @@ public class AVMBrowseBean implements IContextListener this.files = null; this.folders = null; + + // clear webapp listing as we may have returned from the Create Webapp dialog + this.webapps = null; } /** diff --git a/source/web/jsp/content/add-content-dialog.jsp b/source/web/jsp/content/add-content-dialog.jsp index 70eaba69ce..8d4f43580c 100644 --- a/source/web/jsp/content/add-content-dialog.jsp +++ b/source/web/jsp/content/add-content-dialog.jsp @@ -193,7 +193,7 @@ if (dialog != null && dialog.getFileName() != null) - + diff --git a/source/web/jsp/content/create-content-wizard/details.jsp b/source/web/jsp/content/create-content-wizard/details.jsp index fdb516d9c1..6254c47438 100644 --- a/source/web/jsp/content/create-content-wizard/details.jsp +++ b/source/web/jsp/content/create-content-wizard/details.jsp @@ -72,7 +72,7 @@ - + - + diff --git a/source/web/jsp/forums/create-post-dialog.jsp b/source/web/jsp/forums/create-post-dialog.jsp index 2bac31c29a..4f1c16494a 100644 --- a/source/web/jsp/forums/create-post-dialog.jsp +++ b/source/web/jsp/forums/create-post-dialog.jsp @@ -24,7 +24,7 @@ - + diff --git a/source/web/jsp/forums/create-reply-dialog.jsp b/source/web/jsp/forums/create-reply-dialog.jsp index df9af3573f..11f128cef4 100644 --- a/source/web/jsp/forums/create-reply-dialog.jsp +++ b/source/web/jsp/forums/create-reply-dialog.jsp @@ -24,7 +24,7 @@ - + diff --git a/source/web/jsp/forums/create-topic-dialog.jsp b/source/web/jsp/forums/create-topic-dialog.jsp index 54ed057922..2de5e6a90d 100644 --- a/source/web/jsp/forums/create-topic-dialog.jsp +++ b/source/web/jsp/forums/create-topic-dialog.jsp @@ -76,7 +76,7 @@ - + @@ -121,7 +121,7 @@ - + diff --git a/source/web/jsp/spaces/create-space-dialog.jsp b/source/web/jsp/spaces/create-space-dialog.jsp index f43cc76e3e..56de5d60bd 100644 --- a/source/web/jsp/spaces/create-space-dialog.jsp +++ b/source/web/jsp/spaces/create-space-dialog.jsp @@ -75,7 +75,7 @@ - + diff --git a/source/web/jsp/spaces/create-space-wizard/details.jsp b/source/web/jsp/spaces/create-space-wizard/details.jsp index ff77fabf70..540e634a2c 100644 --- a/source/web/jsp/spaces/create-space-wizard/details.jsp +++ b/source/web/jsp/spaces/create-space-wizard/details.jsp @@ -97,7 +97,7 @@ - + diff --git a/source/web/jsp/wcm/add-content-dialog.jsp b/source/web/jsp/wcm/add-content-dialog.jsp index 7de39f4395..7e013a542c 100644 --- a/source/web/jsp/wcm/add-content-dialog.jsp +++ b/source/web/jsp/wcm/add-content-dialog.jsp @@ -193,7 +193,7 @@ if (dialog != null && dialog.getFileName() != null) - + diff --git a/source/web/jsp/wcm/browse-website.jsp b/source/web/jsp/wcm/browse-website.jsp index f0fc2cafb9..271e4ebe95 100644 --- a/source/web/jsp/wcm/browse-website.jsp +++ b/source/web/jsp/wcm/browse-website.jsp @@ -100,13 +100,14 @@ - <%-- Current Webapp selection --%> - :  - - - - -
+ <%-- Current Webapp selection - only displayed if >1 webapps are present --%> + + + + + +
+
diff --git a/source/web/jsp/wcm/create-folder-dialog.jsp b/source/web/jsp/wcm/create-folder-dialog.jsp index c4d736aee4..204c056943 100644 --- a/source/web/jsp/wcm/create-folder-dialog.jsp +++ b/source/web/jsp/wcm/create-folder-dialog.jsp @@ -74,7 +74,7 @@
- + diff --git a/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp b/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp index 894f50689e..e6f0cc45cd 100644 --- a/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp +++ b/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp @@ -51,7 +51,7 @@ columnClasses="panelGridRequiredImageColumn,panelGridLabelColumn,panelGridValueColumn"> width="100%"> + value="/images/icons/required_field.gif" alt="#{msg.required_field}" /> @@ -98,7 +98,7 @@ width="100%"> + value="/images/icons/required_field.gif" alt="#{msg.required_field}" /> + value="/images/icons/required_field.gif" alt="#{msg.required_field}" /> + value="/images/icons/required_field.gif" alt="#{msg.required_field}" /> + value="/images/icons/required_field.gif" alt="#{msg.required_field}" /> - + - +
diff --git a/source/web/jsp/wcm/create-form-wizard/details.jsp b/source/web/jsp/wcm/create-form-wizard/details.jsp index 771b13e43f..07d91c4ae8 100644 --- a/source/web/jsp/wcm/create-form-wizard/details.jsp +++ b/source/web/jsp/wcm/create-form-wizard/details.jsp @@ -83,7 +83,7 @@ columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;" width="100%" rowClasses="wizardSectionHeading"> - @@ -100,9 +100,9 @@ border="0" width="100%" columnClasses="panelGridRequiredImageColumn,panelGridLabelColumn,panelGridValueColumn"> - - + @@ -116,9 +116,9 @@ - - - - + + width="100%"> - - + alt="#{msg.required_field}" /> + - + - - + + - + - - + + - + - - + - + - + diff --git a/source/web/jsp/wcm/create-web-content-wizard/details.jsp b/source/web/jsp/wcm/create-web-content-wizard/details.jsp index 1fc517dd1a..2af8307fa3 100644 --- a/source/web/jsp/wcm/create-web-content-wizard/details.jsp +++ b/source/web/jsp/wcm/create-web-content-wizard/details.jsp @@ -72,7 +72,7 @@ - + - + diff --git a/source/web/jsp/wcm/create-website-wizard/details.jsp b/source/web/jsp/wcm/create-website-wizard/details.jsp index 8a7ed4b36f..cddcc8501f 100644 --- a/source/web/jsp/wcm/create-website-wizard/details.jsp +++ b/source/web/jsp/wcm/create-website-wizard/details.jsp @@ -84,7 +84,7 @@ - + @@ -102,7 +102,7 @@ - + @@ -126,7 +126,7 @@ - + diff --git a/source/web/jsp/wcm/create-website-wizard/form-details.jsp b/source/web/jsp/wcm/create-website-wizard/form-details.jsp index 37d6a585f2..34a81514e8 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-details.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-details.jsp @@ -53,16 +53,18 @@ - +
+
+ -
+ - + @@ -98,31 +100,42 @@ - - +
+
+
+ + + + +
+ + - + +
+ +
diff --git a/source/web/jsp/wcm/create-website-wizard/form-templates.jsp b/source/web/jsp/wcm/create-website-wizard/form-templates.jsp index 497d6a5535..cc559c2e47 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-templates.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-templates.jsp @@ -34,29 +34,37 @@
- - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -64,4 +72,5 @@ + diff --git a/source/web/jsp/wcm/output-path-pattern-help.jsp b/source/web/jsp/wcm/output-path-pattern-help.jsp new file mode 100644 index 0000000000..07de5758c2 --- /dev/null +++ b/source/web/jsp/wcm/output-path-pattern-help.jsp @@ -0,0 +1,40 @@ + + + diff --git a/source/web/jsp/wcm/output_path_pattern_help.jsp b/source/web/jsp/wcm/output_path_pattern_help.jsp deleted file mode 100644 index bdaa8dcab5..0000000000 --- a/source/web/jsp/wcm/output_path_pattern_help.jsp +++ /dev/null @@ -1,39 +0,0 @@ - - diff --git a/source/web/jsp/wcm/snapshot-sandbox.jsp b/source/web/jsp/wcm/snapshot-sandbox.jsp index 22b2183635..21afadde20 100644 --- a/source/web/jsp/wcm/snapshot-sandbox.jsp +++ b/source/web/jsp/wcm/snapshot-sandbox.jsp @@ -50,7 +50,7 @@ - +