Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-17 Thread Musachy Barroso

I started working today on a plugin that will have a datepicker based on
YUI, the javascript files will weight 97K which is still big, for acceptable
for me :). I'm keeping the tag attribute names similar to the datetimepicker
tags, so it will be easy to use as a replacement. I will probably make a
first  release next weekend.

//will be hosted on googlecode as this is not part of struts itself

regards
musachy

On 6/17/07, Torsten Römer <[EMAIL PROTECTED]> wrote:


Well, now I gave also jscalendar a try, and I think it is the best DHTML
calendar I have seen until now. It has all the features I wanted, like
date and time selection, internationalisation, styles & even themes, it
is higly configurable and very easy to integrate.

So I have chosen jscalendar now, and finally I am done with my
registration form... :-)

Torsten

Mark P Ashworth schrieb:
> Good Day,
>
> Thanks once again.
>
> Regards,
> Mark P Ashworth
> http://www.connext.co.za
>
>
>
> Jeromy Evans - Blue Sky Minds wrote:
>> Mark P Ashworth wrote:
>>> Good Day,
>>>
>>> Thank you for your help. I created properties that return string
>>> representations of the date & time values and I use the jscalendar
>>> component
>>> to select the date & times. Seems to work just grand. I have only one
>>> issue
>>> that if the date string could parsed then it does not report the
>>> exception
>>> even though I throw ParseException in those properties. Should I be
using
>>> validation to parse the submitted values?
>>>
>>> Regards,
>>> Mark P Ashworth
>>> http://www.connext.co.za
>>>
>> Great!  Yes, don't throw an exception in your property setter as it
will
>> just be lost.  Convert it to a Date if you can.
>> Then use the date validator to check the actual Date property.  It will
>> call any getter you name in the xml file, so point it at a Date getter,
>> not the String.
>> Alternately implement Validatable in your action and implement your own
>> logic in the validate method.
>>
>> Also, if you keep a reference to the String value and provide a getter
>> for it, you can return the original (invalid) value back to the form if
>> it fails validation (although I'm not sure that jscalendar will accept
>> it).
>>
>> This is a link how to use the Validatable interface:
>> http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html
>>
>> Hope that makes sense.
>>
>> -
>> 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


Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-17 Thread Torsten Römer
Well, now I gave also jscalendar a try, and I think it is the best DHTML
calendar I have seen until now. It has all the features I wanted, like
date and time selection, internationalisation, styles & even themes, it
is higly configurable and very easy to integrate.

So I have chosen jscalendar now, and finally I am done with my
registration form... :-)

Torsten

Mark P Ashworth schrieb:
> Good Day,
> 
> Thanks once again.
> 
> Regards,
> Mark P Ashworth
> http://www.connext.co.za
> 
> 
> 
> Jeromy Evans - Blue Sky Minds wrote:
>> Mark P Ashworth wrote:
>>> Good Day,
>>>
>>> Thank you for your help. I created properties that return string
>>> representations of the date & time values and I use the jscalendar
>>> component
>>> to select the date & times. Seems to work just grand. I have only one
>>> issue
>>> that if the date string could parsed then it does not report the
>>> exception
>>> even though I throw ParseException in those properties. Should I be using
>>> validation to parse the submitted values?
>>>
>>> Regards,
>>> Mark P Ashworth
>>> http://www.connext.co.za
>>>   
>> Great!  Yes, don't throw an exception in your property setter as it will 
>> just be lost.  Convert it to a Date if you can.
>> Then use the date validator to check the actual Date property.  It will 
>> call any getter you name in the xml file, so point it at a Date getter, 
>> not the String.
>> Alternately implement Validatable in your action and implement your own 
>> logic in the validate method.
>>
>> Also, if you keep a reference to the String value and provide a getter 
>> for it, you can return the original (invalid) value back to the form if 
>> it fails validation (although I'm not sure that jscalendar will accept
>> it).
>>
>> This is a link how to use the Validatable interface:
>> http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html
>>
>> Hope that makes sense.
>>
>> -
>> 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]



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-15 Thread Mark P Ashworth

Good Day,

Thanks once again.

Regards,
Mark P Ashworth
http://www.connext.co.za



Jeromy Evans - Blue Sky Minds wrote:
> 
> Mark P Ashworth wrote:
>> Good Day,
>>
>> Thank you for your help. I created properties that return string
>> representations of the date & time values and I use the jscalendar
>> component
>> to select the date & times. Seems to work just grand. I have only one
>> issue
>> that if the date string could parsed then it does not report the
>> exception
>> even though I throw ParseException in those properties. Should I be using
>> validation to parse the submitted values?
>>
>> Regards,
>> Mark P Ashworth
>> http://www.connext.co.za
>>   
> Great!  Yes, don't throw an exception in your property setter as it will 
> just be lost.  Convert it to a Date if you can.
> Then use the date validator to check the actual Date property.  It will 
> call any getter you name in the xml file, so point it at a Date getter, 
> not the String.
> Alternately implement Validatable in your action and implement your own 
> logic in the validate method.
> 
> Also, if you keep a reference to the String value and provide a getter 
> for it, you can return the original (invalid) value back to the form if 
> it fails validation (although I'm not sure that jscalendar will accept
> it).
> 
> This is a link how to use the Validatable interface:
> http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html
> 
> Hope that makes sense.
> 
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2.0.8--datetimepicker-is-it-a-train-wreck--tf3913835.html#a11139901
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-15 Thread Antonio Petrelli

2007/6/13, Musachy Barroso <[EMAIL PROTECTED]>:

Well, the datetimepicker is the only one in such a lame condition, the other
ones are working fine.


Musachy
Can you drop a line about this in the release notes? Probably in the
"Known Bugs and Problems" section.
http://cwiki.apache.org/confluence/display/WW/Release+Notes+2.0.8

Antonio

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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-15 Thread Jeromy Evans

Mark P Ashworth wrote:

Good Day,

Thank you for your help. I created properties that return string
representations of the date & time values and I use the jscalendar component
to select the date & times. Seems to work just grand. I have only one issue
that if the date string could parsed then it does not report the exception
even though I throw ParseException in those properties. Should I be using
validation to parse the submitted values?

Regards,
Mark P Ashworth
http://www.connext.co.za
  
Great!  Yes, don't throw an exception in your property setter as it will 
just be lost.  Convert it to a Date if you can.
Then use the date validator to check the actual Date property.  It will 
call any getter you name in the xml file, so point it at a Date getter, 
not the String.
Alternately implement Validatable in your action and implement your own 
logic in the validate method.


Also, if you keep a reference to the String value and provide a getter 
for it, you can return the original (invalid) value back to the form if 
it fails validation (although I'm not sure that jscalendar will accept it).


This is a link how to use the Validatable interface:
http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html

Hope that makes sense.

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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-15 Thread Mark P Ashworth

Good Day,

Thank you for your help. I created properties that return string
representations of the date & time values and I use the jscalendar component
to select the date & times. Seems to work just grand. I have only one issue
that if the date string could parsed then it does not report the exception
even though I throw ParseException in those properties. Should I be using
validation to parse the submitted values?

Regards,
Mark P Ashworth
http://www.connext.co.za




Jeromy Evans - Blue Sky Minds wrote:
> 
> 
>> My question is if the datetimepicker is only going to be ready in 2.1
>> then
>> how should I implement this in my application? 
>>   
> As mentioned previously in this thread, a work-around for the current 
> datetimepicker issues is to convert the date value to and from an 
> RFC3339 string within your action.  The conversion is a simple 
> DateFormat operation.  This is the JSP that works:
> 
>type="date"
>   value="%{defaultAnswerDate}"
>   startDate="%{todayAsRFC3339}"
>   required="true"/>
> 
> where answerString, defaultAnswerDate and todayAsRFC3339 are all string 
> properties and all values are in RFC3339 format (not Date!)
> 
> That will give you a popup calendar that works in at least in IE6 and 
> Firefox.  I burnt about 10 hours trying to get that stupid thing to work.
> 
> The timepicker mode (type="time") is simply terrible and I can't 
> recommend it whatsoever.  It works, but it's awful to use.  I've already 
> removed it from all my projects and replaced it with some selects and 
> basic javascript.  In fact, my client also hates the datetimepicker 
> calendar implementation (type="date") - sure it looks nice, but for 
> reasons I don't understand the popup's design seems to confuse 
> non-technical people.  I'll be replacing that with the one Torsten 
> emailed about earlier at the first opportunity I get:
> 
> http://www.mattkruse.com/javascript/calendarpopup/
> 
> - Jeromy Evans
> 
> 
> ---------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2.0.8--datetimepicker-is-it-a-train-wreck--tf3913835.html#a11138693
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Jeromy Evans

Torsten Römer wrote:

I'll be replacing that with the one Torsten
emailed about earlier at the first opportunity I get:

http://www.mattkruse.com/javascript/calendarpopup/



I just gave that a try myself and I ran into a few issues:
  

Thanks for this. You've saved me a lot of time!

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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Torsten Römer
> I'll be replacing that with the one Torsten
> emailed about earlier at the first opportunity I get:
> 
> http://www.mattkruse.com/javascript/calendarpopup/
> 

I just gave that a try myself and I ran into a few issues:

- The placement of the  popup is not as smart as with
datetimepicker, in my case it was partially outside the browser window.
Could be fixed with CalendarPopup.offsetX/offsetY.

- The tabs of an  obscured the calendar. Fixed by adding
z-index:2 to the style of the popup 

- The month/year navigation would just close the popup. Seems to be an
issue with S2 tags and onmouseup event handlers (described under note 4
in CalendarPopup.js). Worked around by commenting c.autoHide() in
CalendarPopup.js, which means the popup is only closed when picking a
date. Because this is not very userfriendly, I added a small function to
toggle the visibility of the popup when clicking on the anchor,
something like

function toggle() {
  if(document.getElementById("popup").style.visibility == 'visible') {
cal1.hideCalendar();
  }
  else {
cal1.select(document.forms[0].dateAsString,'anchor1','-MM-dd');
  }
}

Now I just have to apply some custom style to the calendarpopup and I
finally got pretty much what I wanted...

Torsten

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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Torsten Römer
What concerns me is the loading time of a page that contains one or more
datetimepickers. Especially in the company network here (very fast but
behind a proxy), it sometimes takes a minute or more to load such a page
while my little Linux box here almost freezes. More or less the same
happens on the Windoze XP notebook.

I wonder if it's worth to challenge the user's patience just to have
some fancy looking date picker.

Torsten

Musachy Barroso wrote:
> 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;
>>
>> 
>>
>> The reason I say kind of is because the date is shown in US format
>> (mm/dd/), which is confusing for european users, so I switched to;
>>
>> > 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/ 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]
>>
>>
> 
> 

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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Mark P Ashworth


Good Day,

Thank you for the help.

I found a javascript calendar that has date and time functionality. Is there
a way I can use this with a normal s:textfield?

http://sourceforge.net/projects/jscalendar/

I want to use the following format in the text field.
2007-06-14 20:41

Must I create a converter or should I use localization?

Regards,
Mark P Ashworth

Jeromy Evans - Blue Sky Minds wrote:
> 
> 
>> My question is if the datetimepicker is only going to be ready in 2.1
>> then
>> how should I implement this in my application? 
>>   
> As mentioned previously in this thread, a work-around for the current 
> datetimepicker issues is to convert the date value to and from an 
> RFC3339 string within your action.  The conversion is a simple 
> DateFormat operation.  This is the JSP that works:
> 
>type="date"
>   value="%{defaultAnswerDate}"
>   startDate="%{todayAsRFC3339}"
>   required="true"/>
> 
> where answerString, defaultAnswerDate and todayAsRFC3339 are all string 
> properties and all values are in RFC3339 format (not Date!)
> 
> That will give you a popup calendar that works in at least in IE6 and 
> Firefox.  I burnt about 10 hours trying to get that stupid thing to work.
> 
> The timepicker mode (type="time") is simply terrible and I can't 
> recommend it whatsoever.  It works, but it's awful to use.  I've already 
> removed it from all my projects and replaced it with some selects and 
> basic javascript.  In fact, my client also hates the datetimepicker 
> calendar implementation (type="date") - sure it looks nice, but for 
> reasons I don't understand the popup's design seems to confuse 
> non-technical people.  I'll be replacing that with the one Torsten 
> emailed about earlier at the first opportunity I get:
> 
> http://www.mattkruse.com/javascript/calendarpopup/
> 
> - Jeromy Evans
> 
> 
> ---------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2.0.8--datetimepicker-is-it-a-train-wreck--tf3913835.html#a9814
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Jeromy Evans



My question is if the datetimepicker is only going to be ready in 2.1 then
how should I implement this in my application? 
  
As mentioned previously in this thread, a work-around for the current 
datetimepicker issues is to convert the date value to and from an 
RFC3339 string within your action.  The conversion is a simple 
DateFormat operation.  This is the JSP that works:




where answerString, defaultAnswerDate and todayAsRFC3339 are all string 
properties and all values are in RFC3339 format (not Date!)


That will give you a popup calendar that works in at least in IE6 and 
Firefox.  I burnt about 10 hours trying to get that stupid thing to work.


The timepicker mode (type="time") is simply terrible and I can't 
recommend it whatsoever.  It works, but it's awful to use.  I've already 
removed it from all my projects and replaced it with some selects and 
basic javascript.  In fact, my client also hates the datetimepicker 
calendar implementation (type="date") - sure it looks nice, but for 
reasons I don't understand the popup's design seems to confuse 
non-technical people.  I'll be replacing that with the one Torsten 
emailed about earlier at the first opportunity I get:


http://www.mattkruse.com/javascript/calendarpopup/

- Jeromy Evans


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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Mark P Ashworth

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" 
>> >To: "Struts Users Mailing List" 
>> >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;
>> >>
>> >> 
>> >>
>> >>The reason I say kind of is because the date is shown in US format
>> >>(mm/dd/), which is confusing for european users, so I switched to;
>> >>
>> >> > >>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/d

RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
Jeromy,

2.0.8 is the first version I've tried it in. I wanted to include the version
in full to avoid people suggesting an upgrade to 2.0.8 as a first step :).

Thanks for the RFC3339 tip, but I'm going to hold off using datetimepicker
until 2.1.

Al. 

-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2007 13:23
To: Struts Users Mailing List
Subject: Re: [S2.0.8] datetimepicker.... is it a train wreck?

Hi Al,

Are you saying the problem is new to 2.0.8?
I can confirm that formatLength and dayWidth have never worked for me in
2.0.6 but displayFormat was fine provided the date values are RFC3339
strings.
ie. I convert the Date to and from RFC3339 strings in the action, and use
displayFormat="dd MMM ".

Al Sutton wrote:
>
> 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.
>   
I couldn't agree more.
> -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;
>
>   
>
> The reason I say kind of is because the date is shown in US format 
> (mm/dd/), which is confusing for european users, so I switched to;
>
>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/ 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]



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Jeromy Evans

Hi Al,

Are you saying the problem is new to 2.0.8?
I can confirm that formatLength and dayWidth have never worked for me in 
2.0.6 but displayFormat was fine provided the date values are RFC3339 
strings.
ie. I convert the Date to and from RFC3339 strings in the action, and 
use displayFormat="dd MMM ".


Al Sutton wrote:


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.
  

I couldn't agree more.

-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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ date format is just wrong?

  



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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso

Nobody really knows :), the dojo plugin is ready and the first patch for the
url building/portlet refactoring just came through (2 main issues for 2.1)

musachy

On 6/13/07, Al Sutton <[EMAIL PROTECTED]> wrote:


Thanks for the straight answer, next question, whens 2.1 due ? :)

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 13 June 2007 14:08
To: Struts Users Mailing List
Subject: Re: [S2.0.8] datetimepicker.... is it a train wreck?

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.s
> html
> .
>
>
>
> 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;
>
> 
>
> The reason I say kind of is because the date is shown in US format
> (mm/dd/), which is confusing for european users, so I switched to;
>
>  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/ 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


-
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


RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
Thanks for the straight answer, next question, whens 2.1 due ? :) 

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2007 14:08
To: Struts Users Mailing List
Subject: Re: [S2.0.8] datetimepicker is it a train wreck?

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.s
> html
> .
>
>
>
> 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;
>
> 
>
> The reason I say kind of is because the date is shown in US format 
> (mm/dd/), which is confusing for european users, so I switched to;
>
>  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/ 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


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



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso

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" 
>To: "Struts Users Mailing List" 
>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;
>>
>> 
>>
>>The reason I say kind of is because the date is shown in US format
>>(mm/dd/), which is confusing for european users, so I switched to;
>>
>> >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/ 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


Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread אלחנן מעין
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" 
To: "Struts Users Mailing List" 
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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ 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]



Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso

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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ 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


RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
 
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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ 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]



RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Deepak Kumar
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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ 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]



[S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
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;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



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/ date format is just wrong?


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