Hi All,

I am most of the way through implementing some time-only data fields (which 
store only the time of day, no 
date component).  I am using the jQuery Time Entry component 
(http://jquery.com/plugins/project/timeEntry).  
I've got timeEntry basically working, but have a couple of issues and wanted to 
do a bit of a reality check.

Firstly, I've drawn heavily on the discussion about the jQuery Date Picker 
component here:

http://www.nabble.com/jQuery-+-scriptaculous-+-datePicker-%3D-frustration-t4234825s2369.html

I've put my timeEntry component on top of a struts:textfield component which 
mostly seems to work.

My main problem is posting data back to the application.  My POJO stores the 
time data in a Date field and 
that was causing problems initially so I created getters and setters on my 
action class to update the data in 
the pojo and modified the s:textfield's "key" values accordingly (ie they 
changed from "pojo.startTime" to 
"startTime".  I've verified that my action's setStartTime(String) method is 
being called when I post data back 
to the form.

However, I'm getting "required field" data validation errors from somewhere.  
The fields have been set as 
required (in the pojo and also in the <s:textfield ../> components on the jsp, 
but the data is definitely getting 
into the pojo so I don't understand what is triggering this.

Am I going about this the right way, or is there a better way?  I'd thought 
about doing the string->date 
conversion back at the pojo level, but this doesn't feel right to me.

I'd value any suggestions.

TIA,
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