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

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

Same for NumberFormatter.


> 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