Hi Bruce,

On 16 Nov 2007 at 20:30, BruceLee wrote:

> I don't use JSF either. I just use JSP with WebWork2.

Sorry, I misread your earlier email.

> Rob Hills wrote:
> > 
> > AppFuse does a good job of identifying Date-type columns and injecting 
> > the appropriate code into generated JSPs so it wasn't hard to work out 
> > how to do it from the generated code.
> > 
> Can you help give the example JSP and .java names so I can follow?

I am using AppFuse 2 and Struts so you may need to some things a bit 
differently with 1.9 and WebWork, but I suspect your 
problem may arise from using raw HTML components (eg <input ..>) in your form.

On my Struts app, I'm using struts controls (eg <s:textfield ..> ) and the 
conversion to and from the dateformat in the resource 
bundle happens automagically (I gather courtesy of DateConverter).  I believe 
the WebWork equivalent would be <ww:textfield 
..>.  Have you tried that?

If you use a raw input control, you'll have to set its value using a 
<fmt:formatDate ..> tag and then parse the input from it in your 
Action, which is all doable, but sounds like too much hard work to me.  That's 
what Struts/WebWork is for!

HTH,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to