Good Day, I have been trying to use the datetimepicker in 2.0.6 and 2.0.8 to display a field that should display the date and the time. I have tried to do this with the datetimepicker as one field and as two fields (i.e. date field and time field) with no luck. In 2.0.8 I cannot even get the picker to show.
I have tried with a textfield but I cannot find a way to format the date value in the text field. Tried localization, tried converters with no luck. My question is if the datetimepicker is only going to be ready in 2.1 then how should I implement this in my application? Regards, Mark P Ashworth http://www.connext.co.za Musachy Barroso wrote: > > Well, the datetimepicker is the only one in such a lame condition, the > other > ones are working fine. > > musachy > > On 6/13/07, אלחנן מעין <[EMAIL PROTECTED]> wrote: >> >> shame i was hoping to go back to s2 becouse of all the ajax dojo mess i >> found in 2.0.6, guesss i'll have to wait a few more months :( >> >> >> >From: "Musachy Barroso" <[EMAIL PROTECTED]> >> >Reply-To: "Struts Users Mailing List" <user@struts.apache.org> >> >To: "Struts Users Mailing List" <user@struts.apache.org> >> >Subject: Re: [S2.0.8] datetimepicker.... is it a train wreck? >> >Date: Wed, 13 Jun 2007 09:07:34 -0400 >> > >> >Al just to answer your question straight, yes, it is a train wreck and I >> >would advise not to use it until 2.1 comes out. >> > >> >regards >> >musachy >> > >> >On 6/13/07, Al Sutton <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >>That page seems offer no help for me at all. As a side note, the bug I >> >>mentioned in my original email means that the example in the page >> doesn't >> >>work under certain conditions. >> >> >> >>What bit of that page did you think might help me? >> >> >> >>Btw, please don't post more links to your site, I'm not really >> interested >> >>in >> >>boosting your google ad counts, I'd prefer a solution to getting >> >>formatLength="medium" working. >> >> >> >> >> >>-----Original Message----- >> >>From: Deepak Kumar [mailto:[EMAIL PROTECTED] >> >>Sent: 13 June 2007 11:52 >> >>To: Struts Users Mailing List >> >>Subject: RE: [S2.0.8] datetimepicker.... is it a train wreck? >> >> >> >>Hi, >> >> >> >>Just read Datetime picker example at >> >> >> http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml >> >>. >> >> >> >> >> >> >> >>Thanks >> >> >> >> >> >>-----Original Message----- >> >>From: Al Sutton [mailto:[EMAIL PROTECTED] >> >>Sent: Wednesday, June 13, 2007 4:11 PM >> >>To: 'Struts Users Mailing List' >> >>Subject: [S2.0.8] datetimepicker.... is it a train wreck? >> >> >> >> >> >>I've been trying to do some work with datetime picker in 2.0.8 and it >> >>seems >> >>to me it's a real mess. >> >> >> >>In my action I have; >> >> >> >>public Date getReportStartDate() { >> >> return reportStartDate; >> >>} >> >> >> >>public void setReportStartDate(Date reportStartDate) { >> >> this.reportStartDate = reportStartDate; } >> >> >> >>Now, here comes the fun part, If I put the following in the JSP things >> >>kind >> >>of work; >> >> >> >> <s:datetimepicker label="Start date" name="reportStartDate"/> >> >> >> >>The reason I say kind of is because the date is shown in US format >> >>(mm/dd/yyyy), which is confusing for european users, so I switched to; >> >> >> >> <s:datetimepicker label="Start date" name="reportStartDate" >> >>formatLength="medium"/> >> >> >> >>Which then generates the error "Invalid field value for field >> >>"reportStartDate".", and yes, this is the ONLY change made. >> >> >> >>I though about trying a custom date format and saw >> >>https://issues.apache.org/struts/browse/WW-1917 which basically makes >> it >> >>not >> >>an option. >> >> >> >> >> >>So, my question is, am I doing something dumb, or does it really break >> so >> >>easily?, and if so is it of any real use to non-US users to whom the >> >>mm/dd/yyyy date format is just wrong? >> >> >> >> >> >>--------------------------------------------------------------------- >> >>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] >> >> >> >> >> >> >> >>--------------------------------------------------------------------- >> >>To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >-- >> >"Hey you! Would you help me to carry the stone?" Pink Floyd >> >> _________________________________________________________________ >> Express yourself instantly with MSN Messenger! Download today it's FREE! >> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > -- View this message in context: http://www.nabble.com/-S2.0.8--datetimepicker....-is-it-a-train-wreck--tf3913835.html#a11117561 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]