[
http://www.stripesframework.org/jira/browse/STS-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11232#action_11232
]
Sebastian Beigel commented on STS-506:
--------------------------------------
Thank you -- great idea! This solves my problem...
I still wonder if DateFormatter's formatPattern should have a getter, though :)
I think it wouldn't harm but could make it a little bit more flexible as
(these) TypeConverters and Formatters are prominent candidates for inheritance.
> 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