[ 
http://www.stripesframework.org/jira/browse/STS-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11233#action_11233
 ] 

Frederic Daoud commented on STS-506:
------------------------------------

I agree, but ideally the getter would be on the Formatter interface, for the 
formatPattern as well as other properties.
Ben pointed out that the problem with doing that is that it would break all 
existing Formatters that people have written for their applications.
This non-backwards compatible change shouldn't be done at the time that the 
beta has just been released.
Something to think about for a later version, perhaps.


> Access to DateFormatter's formatPattern
> ---------------------------------------
>
>                 Key: STS-506
>                 URL: http://www.stripesframework.org/jira/browse/STS-506
>             Project: Stripes
>          Issue Type: Improvement
>    Affects Versions: Release 1.5
>            Reporter: Sebastian Beigel
>
> DateFormatter's formatPattern should be protected (or maybe a 
> getter-method?). I want to extend DateFormatter to set the default format to 
> "medium" (right now, init() defaults formatPattern to "short"), so I would 
> like to do something like this:
> public class GermanDateFormatter extends DateFormatter {
>     @Override
>     public void init() {
>         if (formatPattern == null) {
>             formatPattern = "medium";
>         }
>         super.init();
>     }
> }
> Or is there any better way to provide a formatPattern to the 
> UrlBuilder#format() method?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to