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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo