1 Reply Latest reply on Jan 21, 2009 8:10 AM by Ilya Shaikovsky

    rich:calendar fails using arabic locale.

    Christian Yttesen Newbie

      Hi,

      Just implemented support for Arabic language and locale. Clicking on the calendar icon using Arabic (ar) locale results in javascript error and popup not opening:

      Using RichFaces 3.3.0 GA.

      From FireBug:

      match[a] is undefined
      {aa=match[a].toLowerCase();if((aa!='am'&...')||hh<1||hh>12)return null;if(aa=='pm')
      
      calendar.js.jsf line 57
      


      Declaration (JSF)
      <rich:calendar id="startDate"
       value="#{accountHistoryBean.startDate}"
       popup="true"
       required="true"
       label="#{msgs['acccount_history.start_date']}"
       boundaryDatesMode="select"
       datePattern="#{i18nBean.dateTimePattern}" />
      


      The result of "#{i18nBean.dateTimePattern}" is:
      SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, locale).toPattern();
      


      Where locale instance is "new Locale("ar");"

      Any help is highly appreciated.

      Thanks,
      Christian