Author: thomas.heute(a)jboss.com
Date: 2008-10-23 05:04:13 -0400 (Thu, 23 Oct 2008)
New Revision: 12145
Modified:
tags/JBoss_Portal_2_6_7/cms/src/main/org/jboss/portal/cms/CMSException.java
tags/JBoss_Portal_2_6_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
Log:
minor bug fix.
Modified: tags/JBoss_Portal_2_6_7/cms/src/main/org/jboss/portal/cms/CMSException.java
===================================================================
--- tags/JBoss_Portal_2_6_7/cms/src/main/org/jboss/portal/cms/CMSException.java 2008-10-23
06:19:00 UTC (rev 12144)
+++ tags/JBoss_Portal_2_6_7/cms/src/main/org/jboss/portal/cms/CMSException.java 2008-10-23
09:04:13 UTC (rev 12145)
@@ -54,7 +54,7 @@
{
boolean pathFormatFailure = false;
- if(this.getMessage().indexOf("is not a legal path element")!=-1)
+ if(this.getMessage().indexOf("is not a legal path element")!=-1 ||
this.getMessage().indexOf("is not a valid path")!=-1)
{
pathFormatFailure = true;
}
Modified:
tags/JBoss_Portal_2_6_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
===================================================================
---
tags/JBoss_Portal_2_6_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2008-10-23
06:19:00 UTC (rev 12144)
+++
tags/JBoss_Portal_2_6_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2008-10-23
09:04:13 UTC (rev 12145)
@@ -157,14 +157,9 @@
throws PortletException, IOException, UnavailableException
{
//SetUp the properly localized Date Formatter to be used by the View JSPs
- Format dateFormat =
(Format)rReq.getPortletSession().getAttribute(CMSAdminConstants.DATE_FORMAT);
- if(dateFormat == null)
- {
- ResourceBundle bundle =
this.getPortletConfig().getResourceBundle(rReq.getLocale());
- String datePattern = bundle.getString(CMSAdminConstants.CMS_DATE_PATTERN);
- dateFormat = new SimpleDateFormat(datePattern, rReq.getLocale());
- rReq.getPortletSession().setAttribute(CMSAdminConstants.DATE_FORMAT,
dateFormat);
- }
+ ResourceBundle bundle =
this.getPortletConfig().getResourceBundle(rReq.getLocale());
+ String datePattern = bundle.getString(CMSAdminConstants.CMS_DATE_PATTERN);
+ Format dateFormat = new SimpleDateFormat(datePattern, rReq.getLocale());
rReq.setAttribute(CMSAdminConstants.DATE_FORMAT, dateFormat);