Tim, Thank you very much. It helped tremendously to confirm I wasn't misunderstanding the intended use of DateFormatter.
My problem was that I had registered my own FormatterFactory (very helpful in formatting primary keys and many other custom uses). I was extending DefaultFormatterFactory and was correctly invoking super.getFormatter in my overriding getFormatter method, but unfortunately I was not in all cases returning the default Formatter when a custom Formatter was not required (such as for Date). This explains why the init() method of DateFormatter was getting called, but format() was not. Sorry for not catching this earlier... Thanks again, Shawn Quoting "Tim Fennell" <[EMAIL PROTECTED]>: > Shawn: > > I'm not sure what's going wrong. You're expectations about what > should happen are correct. Can you do one of two things please? > > 1) Package up a war file (with source) of the smallest possible test > case you can build that demonstrates the error? > > 2) Deploy the stripes examples application, log into Bugzooky and > then click on the link to Edit an existing bug. Do the dates get > formatted as you'd expect? > > -t > > On Jul 2, 2008, at 1:00 PM, Shawn Church wrote: > >> If you mean did I try specifying a pattern, yes, and yes I have >> LocalePicker configured. Specifying a pattern of "short" correctly >> yields the default date pattern for my locale (M/d/yy). >> >> Shawn >> >> >> Quoting "Gérald Quintana" <[EMAIL PROTECTED]>: >> >>> 2008/7/2 Shawn Church <[EMAIL PROTECTED]>: >>>> because my work-around has been to do all >>>> of the formatting brute-force in each of my pages (using String >>>> rather >>>> than Date objects). >>>> >>> Did you try something in between: >>> <s:text name="startShipDate" formatPattern="M/d/yy" /> >>> >>> Did you configure the LocalePicker? >>> http://www.stripesframework.org/display/stripes/Localization >>> >>> Gérald >>> >>> --------------------------------------------------------------------- >>> ---- >>> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >>> Studies have shown that voting for your favorite open source project, >>> along with a healthy diet, reduces your potential for chronic >>> lameness >>> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >>> _______________________________________________ >>> Stripes-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >>> >> >> >> >> ---------------------------------------------------------------------- >> --- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
