I just looked at it. The head node of the docs says "struts 2" so my
impression is that datepicker only works for S2?
Martin Gainty wrote:
Hi Rick
Have you looked in DatePicker?
http://www.twdata.org/backups/WW/datepicker.html
Thx,
Martin --
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
---------------------------------------------------------------------------
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message -----
From: "Rick Schumeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, December 21, 2006 1:23 PM
Subject: S1.3.5: ActionForm with Date
I hope someone can show me a better way of doing this.
I have an input page in which the user enters a date. Of course, the
user really enters strings for month, day, and year.
My ActionForm has string fields dateOfBirthYear, dateOfBirthMonth, and
DateOfBirthDay.
It is my understanding that everything in a S1.3.5 ActionForm must be a
string...correct?
My "business bean" has a corresponding Date field called dateOfBirth.
I'm wondering if there is a better way to convert this data. I added a
field to the ActionForm called dateOfBirth (to match the field in the
business bean).
In the action, I call a method on the ActionForm called
"convertFromStrings" that combines the three strings into a Java Date
object and stores in into dateOfBirth.
I then use BeanUtils.copyProperties(businessBean, actionForm)
Of course, I need to do all this in reverse if I want to present an edit
form.
I think this rules out using a DynaActionForm ?
This must be a common issue, is there a better technique?
Finally, how many of these problems go away if I migrate to S2?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]