[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX | |-Pages Added or Edited in This Space |-- Apache Felix OSGi FAQ was last edited by [EMAIL PROTECTED] (07:31 AM). | http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+OSGi+FAQ Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL | |-Pages Added or Edited in This Space |-- CXF was last edited by mazzag (03:08 PM). | http://cwiki.apache.org/confluence/display/CAMEL/CXF |-- JMS was last edited by jstrachan (09:10 AM). | http://cwiki.apache.org/confluence/display/CAMEL/JMS Apache Qpid (qpid) http://cwiki.apache.org/confluence/display/qpid | |-Pages Added or Edited in This Space |-- GSoC was last edited by cctrieloff (06:46 AM). | http://cwiki.apache.org/confluence/display/qpid/GSoC Apache Sling Website (SLINGxSITE) http://cwiki.apache.org/confluence/display/SLINGxSITE | |-Pages Added or Edited in This Space |-- Manipulating Content - The SlingPostServlet was last edited by fmeschbe (01:33 AM). | http://cwiki.apache.org/confluence/display/SLINGxSITE/Manipulating+Content+-+The+SlingPostServlet |-- Sling was last edited by fmeschbe (01:00 AM). | http://cwiki.apache.org/confluence/display/SLINGxSITE/Sling Apache Roller (ROLLER) http://cwiki.apache.org/confluence/display/ROLLER | |-Pages Added or Edited in This Space |-- May 2008 Board Report was last edited by snoopdave (09:36 AM). | http://cwiki.apache.org/confluence/display/ROLLER/May+2008+Board+Report Apache ActiveMQ (ACTIVEMQ) http://cwiki.apache.org/confluence/display/ACTIVEMQ | |-Pages Added or Edited in This Space |-- ActiveMQ Command Line Tools Reference was last edited by ammulder (03:08 PM). | http://cwiki.apache.org/confluence/display/ACTIVEMQ/ActiveMQ+Command+Line+Tools+Reference |-- Mailing Lists was last edited by chirino (08:58 AM). | http://cwiki.apache.org/confluence/display/ACTIVEMQ/Mailing+Lists |-- All Forums was created by chirino (08:56 AM). | http://cwiki.apache.org/confluence/display/ACTIVEMQ/All+Forums |-- Developer Forum was created by chirino (08:56 AM). | http://cwiki.apache.org/confluence/display/ACTIVEMQ/Developer+Forum |-- User Forum was created by chirino (08:52 AM). | http://cwiki.apache.org/confluence/display/ACTIVEMQ/User+Forum Apache Jackrabbit (JCR) http://cwiki.apache.org/confluence/display/JCR | |-Pages Added or Edited in This Space |-- Jackrabbit Team was last edited by jukka (04:10 AM). | http://cwiki.apache.org/confluence/display/JCR/Jackrabbit+Team Apache ServiceMix (SM) http://cwiki.apache.org/confluence/display/SM | |-Pages Added or Edited in This Space |-- servicemix-bean was last edited by tmielke (06:14 AM). | http://cwiki.apache.org/confluence/display/SM/servicemix-bean |-- Building was last edited by gnodet (04:37 AM). | http://cwiki.apache.org/confluence/display/SM/Building Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW | |-Pages Added or Edited in This Space |-- Documentation Style Guide was last edited by [EMAIL PROTECTED] (11:50 PM). | http://cwiki.apache.org/confluence/display/WW/Documentation+Style+Guide UIMA (UIMA) http://cwiki.apache.org/confluence/display/UIMA | |-Pages Added or Edited in This Space |-- TestPlanCpp2.2 was last edited by eaepstein (12:37 PM). | http://cwiki.apache.org/confluence/display/UIMA/TestPlanCpp2.2 Apache Geronimo v2.1 (GMOxDOC21) http://cwiki.apache.org/confluence/display/GMOxDOC21 | |-Pages Added or Edited in This Space |-- Configuring JavaEE App Client Security was created by djencks (10:05 PM). | http://cwiki.apache.org/confluence/display/GMOxDOC21/Configuring+JavaEE+App+Client+Security |-- Configuring login modules was created by djencks (09:42 PM). | http://cwiki.apache.org/confluence/display/GMOxDOC21/Configuring+login+modules |-- Basic Hints on Security Configuration was created by djencks (09:13 PM). | http://cwiki.apache.org/confluence/display/GMOxDOC21/Basic+Hints+on+Security+Configuration |-- Stateful Session Bean was created by [EMAIL PROTECTED] (04:22 AM). | http://cwiki.apache.org/confluence/display/GMOxDOC21/Stateful+Session+Bean Apache Wicket (WICKET) http://cwiki.apache.org/confluence/display/WICKET | |-Pages Added or Edited in This Space |-- Sites using Wicket was last edited by [EMAIL PROTECTED] (06:04 AM). | http://cwiki.apache.org/confluence/display/WICKET/Sites+using+Wicket |-- SEO - Search Engine Optimization was created by [EMAIL PROTECTED] (05:55 AM). | http://cwiki.apache.org/confluence/display/WICKET/SEO+-+Search+Engine+Optimization - Updated User Profiles:
svn commit: r658363 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java
Author: jmitchell Date: Tue May 20 10:59:18 2008 New Revision: 658363 URL: http://svn.apache.org/viewvc?rev=658363&view=rev Log: WW-2567 Backported DateTimePicker thread safety issues. Modified: struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java Modified: struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java?rev=658363&r1=658362&r2=658363&view=diff == --- struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java (original) +++ struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/DateTimePicker.java Tue May 20 10:59:18 2008 @@ -21,7 +21,9 @@ package org.apache.struts2.components; import java.text.ParseException; +import java.text.MessageFormat; import java.text.SimpleDateFormat; +import java.util.Calendar; import java.util.Date; import javax.servlet.http.HttpServletRequest; @@ -129,8 +131,10 @@ public class DateTimePicker extends UIBean { final public static String TEMPLATE = "datetimepicker"; -final private static SimpleDateFormat RFC3339_FORMAT = new SimpleDateFormat( -"-MM-dd'T'HH:mm:ss"); +// Backported changes from s2 trunk (r657936) +//final private static SimpleDateFormat RFC3339_FORMAT = new SimpleDateFormat("-MM-dd'T'HH:mm:ss"); + final private static String RFC3339_FORMAT = "-MM-dd'T'HH:mm:ss"; +final private static String RFC3339_PATTERN = "{0,date," + RFC3339_FORMAT + "}"; final protected static Log LOG = LogFactory.getLog(DateTimePicker.class); protected String iconPath; @@ -294,12 +298,14 @@ return null; if(obj instanceof Date) { -return RFC3339_FORMAT.format((Date) obj); +return MessageFormat.format(RFC3339_PATTERN, (Date) obj); +} else if(obj instanceof Calendar) { +return MessageFormat.format(RFC3339_PATTERN, ((Calendar) obj).getTime()); } else { // try to parse a date String dateStr = obj.toString(); if(dateStr.equalsIgnoreCase("today")) -return RFC3339_FORMAT.format(new Date()); +return MessageFormat.format(RFC3339_PATTERN, new Date()); try { Date date = null; @@ -307,7 +313,7 @@ SimpleDateFormat format = new SimpleDateFormat( (String) getParameters().get("displayFormat")); date = format.parse(dateStr); -return RFC3339_FORMAT.format(date); +return MessageFormat.format(RFC3339_PATTERN, date); } else { // last resource to assume already in correct/default format return dateStr;