Re: datetimepicker (type=time) problem - SOLVED!

2008-02-14 Thread Belinda Lawson
Ah-ha! The theme=ajax attribute has to be on the head tag, not on the picker. That is the ticket. It works like a charm now! Thank you Jeromy! On Wed, Feb 13, 2008 at 5:17 PM, Jeromy Evans [EMAIL PROTECTED] wrote: StrutsTimePicker is an extension of the dropdowndatepicker included with

datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
Hello, We are trying to use the datetimepicker tag to enter both a date and a time independently. The date portion works fine. However, I find that when I use the attribute type=time, my picker does not appear on the page. My tag looks like this: s:datetimepicker label=Start Time type=time

datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
Hello, I'm trying to use the datetimepicker tag to enter both a date and a time independently. The date portion works fine. However, I find that when I use the attribute type=time, my picker does not appear on the page. My tag looks like this: s:datetimepicker label=Start Time type=time

Re: datetimepicker (type=time) problem

2008-02-13 Thread Jeromy Evans
Your JSP below looks correct. If the date picker is on the same page and is working, all I can think of is an ID conflict or the time picker is using the wrong theme. Have a look at the generated HTML to ensure the dojo tag is included and looks right. Ensure there's no ID conflict with the

Re: datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
It appears that planetstruts.org's demo pages suffer the same problem. See anything wrong there with their examples? http://www.planetstruts.org/struts2-showcase/tags/ui/timepicker/ I'll take a look in firebug too. Thanks -- I hadn't used that before. View Source shows something sort of

Re: datetimepicker (type=time) problem

2008-02-13 Thread Jeromy Evans
StrutsTimePicker is an extension of the dropdowndatepicker included with Struts2. I found my test program that uses the Timepicker in Struts 2.0.8 and it still works. The JSP is below: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title s:head theme=ajax

DateTimePicker (type time) problem

2007-06-28 Thread Kishen Simbhoedatpanday
Hello, We have a problem using the s:datepicker tag when it comes to modifying a date and time. It seems there is no solution in struts2 to edit a date + time with the datepicker tag, so we use them separately. In our Action class we have a attribute called currentTimePart: private Date

Re: DateTimePicker (type time) problem

2007-06-28 Thread Musachy Barroso
You need to set the initial value with the value attribute (or I'm missing something obvious here :) ) regards musachy On 6/28/07, Kishen Simbhoedatpanday [EMAIL PROTECTED] wrote: Hello, We have a problem using the s:datepicker tag when it comes to modifying a date and time. It seems there

Re: DateTimePicker (type time) problem

2007-06-28 Thread eskape
This problem does not concern initial values. It is about being able to edit the time part of the given Date object into the DateTimePicker component. When we want to edit the given Date ONLY, the DateTimePicker works fine. When using the DateTimePicker as a TimePicker (s:datetimepicker

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
We use: s:datetimepicker name=incomingAnswer displayFormat=h:mm a type=time value=%{defaultAnswerTime} required=true/ where incomingAnswer and defaultAnswerTime are Strings in the hh:mm format. The string's components can then be applied to

Re: DateTimePicker (type time) problem

2007-06-28 Thread Kishen Simbhoedatpanday
Thank you Jeromy! When using the 'displayFormat=h:mm a' in the datetimepicker tag and changing currentTimePart to String, it will result the given Hours and Seconds on the page. So we set the following in our Action method: this.setCurrentTimePart(16:15); But we get the following

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
Kishen Simbhoedatpanday wrote: Thank you Jeromy! When using the 'displayFormat=h:mm a' in the datetimepicker tag... So we set the following in our Action method: this.setCurrentTimePart(16:15); The exception is in the DateFormat.parse() method called by the DateTimePicker. 16:15 is an

Re: DateTimePicker (type time) problem

2007-06-28 Thread Kishen Simbhoedatpanday
We are using Strings for now. Hopefully we will get a working component like dateTimePicker that will automatically change a String to Dates (or Calendars) and back soon. I thought the displayFormat was for display purposes only. But HH:mm does not work when giving the currentTimePart 16:15. It

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
Kishen Simbhoedatpanday wrote: I thought the displayFormat was for display purposes only. But HH:mm does not work when giving the currentTimePart 16:15. It still gives the 00:00 My only remaining suggestion is that you create a page full of time pickers and try all the possible