myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Ramírez (JIRA) <...@myfaces.apache.org>
Subject [jira] Created: (TOMAHAWK-986) The SharedRenderer fails to get the Default Locale when a headerDateFormat is specified
Date Sun, 13 May 2007 21:25:15 GMT
The SharedRenderer fails to get the Default Locale when a headerDateFormat is specified
---------------------------------------------------------------------------------------

                 Key: TOMAHAWK-986
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-986
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Schedule
    Affects Versions: 1.1.5
            Reporter: Ricardo Ramírez
            Priority: Minor


When the t:schedule specifies the "headerDateFormat" attribute, the Shared Renderer doesn't
use the default locale, instead, it only creates a new SimpleDateFormat. Patch provided:

AbstractScheduleRenderer.java

Change
======================================================================

	format = new SimpleDateFormat(pattern);

To
======================================================================

	if (context.getApplication().getDefaultLocale() != null)
	{
		format = new SimpleDateFormat(pattern, context
			.getApplication().getDefaultLocale());
	}
	else
	{
		format = new SimpleDateFormat(pattern);
	}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message