Hi, I have this weird problem which I need some help figuring where to fix.

I have a java.util.Date object property bound as a text input:

<form:input path="timeTo" id="timeTo" cssClass="text medium"
cssErrorClass="text medium error" maxlength="50"/>

I initialize it to new Date() in the command class, and it shows properly in
handleRequest() :

Date To : 06/15/2010

But when I do a submit (no other logic added yet) and simply return the
command object back, it displays it back in a different format (with
timestamp):

Date To : Tue Jun 15 17:31:58 SGT 2010

My onSubmit is only doing this:

return new ModelAndView(getSuccessView(),"CMD_FILTER",command);

Can someone tell me where this conversion is happening? My initial
assumption was that the date format is set in initBinder in
BaseFormController and it uses the "date.format" in the resource bundle. I
have not changed any of these after generating them using maven.

Oh, I am using using appfuse 2.0.2 with Spring MVC 2.5.4.

-- 
View this message in context: 
http://appfuse.547863.n4.nabble.com/Date-format-changes-after-submit-tp2255631p2255631.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to