-
1. Re: s:selectDate problem
shane.bryzak Mar 12, 2007 7:40 PM (in response to jquery)The arrow style is dependent on your CSS. Check that it is correct and the image file exists where it says it is.
If you want to control the range of years, create a feature request in JIRA. -
2. Re: s:selectDate problem
jalupa Mar 13, 2007 7:01 AM (in response to jquery)I added a feature request + patch (for year range) some time ago:
http://jira.jboss.org/jira/browse/JBSEAM-928 -
3. Re: s:selectDate problem
shane.bryzak Mar 13, 2007 9:14 AM (in response to jquery)This has been implemented in CVS now.
-
4. Re: s:selectDate problem
venkateshbr Mar 13, 2007 9:39 AM (in response to jquery)hi there,
I have specified the dateFormat for s:selectDate as dd/MM/yyyy but when the s:selectDate is rendered on an ajax request it defaults to MM/dd/yyyy format. help would be appreciated.
regards
Venkatesh -
5. Re: s:selectDate problem
cavani Mar 13, 2007 2:31 PM (in response to jquery)Sorry reuse this topic, but is a simple improvement that I need.
http://jira.jboss.org/jira/browse/JBSEAM-1044
Thanks, -
6. Re: s:selectDate problem
shane.bryzak Mar 13, 2007 9:12 PM (in response to jquery)"cavani" wrote:
Sorry reuse this topic, but is a simple improvement that I need.
http://jira.jboss.org/jira/browse/JBSEAM-1044
Added in CVS. -
7. Re: s:selectDate problem
cavani Mar 14, 2007 8:45 AM (in response to jquery)Works fine.... thanks!
Plus one little annoying thing.... using dateFormat "dd/MM/yyyy", this two format should be right (right?):
09/12/2005
9/12/2005
but, just the second is understood.
this don't occurs with months.... 9/5/2005 and 9/05/2005 are equally interpreted....
Should I "JIRA" this? -
8. Re: s:selectDate problem
shane.bryzak Mar 14, 2007 9:26 AM (in response to jquery)It works for me. Make sure you specify both the dateFormat on the selectDate, and the convertDateTime pattern. Here's an example:
<h:inputText id="checkinDate" value="#{booking.checkinDate}" required="true"> <s:convertDateTime pattern="dd/MM/yyyy"/> </h:inputText> <s:selectDate for="checkinDate" dateFormat="dd/mm/yyyy"> <h:graphicImage url="img/dtpick.gif" style="margin-left:5px;cursor:pointer"/> </s:selectDate>
The dateFormat needs to be specified on ALL selectDate controls on the page, if you're not using the default. -
9. Re: s:selectDate problem
cavani Mar 14, 2007 9:53 AM (in response to jquery)I am using exactly this code (inside a h:panelGroup).
I try with converter and get the same behavior I describe before... but only with 09 and 08 all others work (01-07). the
day is highlighted when 9 and not with 09 (same for 8 and 08).
Crazy :P -
10. Re: s:selectDate problem
cavani Mar 14, 2007 10:00 AM (in response to jquery)exactly same estrange behavior for months....
-
11. Re: s:selectDate problem
cavani Mar 14, 2007 8:36 PM (in response to jquery)this error occurs on booking example too... I tested cvs version on 4.0.5.GA.
-
12. Re: s:selectDate problem
shane.bryzak Mar 14, 2007 10:25 PM (in response to jquery)I tracked down the source of this weirdness... parseInt() in firefox actually treats the int as an octal if you pass in "08" or "09". I've updated CVS with a workaround for this strange behaviour, and tested it in both FF and IE. If someone could try it out with Safari/Opera & others it would be a big help.
-
13. Re: s:selectDate problem
cavani Mar 15, 2007 12:22 PM (in response to jquery)wow... of course... everything make sense again...
Thanks,