This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: s:selectDate ajaxRendervenkateshbr Mar 22, 2007 6:25 AM (in response to venkateshbr)when i changed the dateformat in calendar.js 
 var CAL_DATE_FORMAT = "dd/mm/yyyy"; then the date format seems to be working fine.
 But no java scripting events like onchange and onblur are generated on the inputtext component after selecting the date.
- 
        2. Re: s:selectDate ajaxRenderbeligum Apr 9, 2007 9:23 AM (in response to venkateshbr)Same problem here... 
- 
        3. Re: s:selectDate ajaxRenderbeligum Apr 9, 2007 9:36 AM (in response to venkateshbr)Posted on jira: 
 http://jira.jboss.com/jira/browse/JBSEAM-1156
- 
        4. Re: s:selectDate ajaxRenderdamianharvey May 28, 2007 8:07 AM (in response to venkateshbr)I had the same issue today. Using the magic of FireBug you can see that when the date is rendered normally (ie. not via AJAX) it includes a portion of javascript as per below that sets your defaults from the selectDate: <script type="text/javascript"> var CAL_DAYS_SHORT = 'Su,Mo,Tu,We,Th,Fr,Sa'; var CAL_DAYS_MEDIUM = 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'; var CAL_DAYS_LONG = 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'; var CAL_MONTHS_MEDIUM = 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'; var CAL_MONTHS_LONG = 'January,February,March,April,May,June,July,August,September,October,November,December'; var CAL_FIRST_DAY_OF_WEEK = 0; var CAL_DATE_FORMAT = 'dd/MM/yyyy'; </script> 
 When the date is rendered via AJAX it isn't a new page load so that portion isn't called, so CAL_DATE_FORMAT is undefined and the date is defaulted to MM/dd/yyyy as per line 12 of calendar.js.
 The workaround is to add this block into your page (anywhere really) so CAL_DATE_FORMAT is set before the date is rendered via AJAX. Works for me anyway.
 Cheers,
 Damian
 
     
    