[ 
http://www.stripesframework.org/jira/browse/STS-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-506.
----------------------------

       Resolution: Fixed
    Fix Version/s: Release 1.5
         Assignee: Ben Gunter

On the other hand, I see no reason why we can't just add it to DateFormatter 
without modifying the Formatter interface. I've added getters for formatType, 
formatPattern, and locale to make life easier for those who wish to subclass 
DateFormatter.

> 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
>            Assignee: Ben Gunter
>             Fix For: Release 1.5
>
>
> 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