myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Havelka (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Created: (MYFACES-589) inputCalendar localized month names problem
Date Tue, 20 Sep 2005 08:56:27 GMT
inputCalendar localized month names problem
-------------------------------------------

         Key: MYFACES-589
         URL: http://issues.apache.org/jira/browse/MYFACES-589
     Project: MyFaces
        Type: Bug
  Components: Tomahawk, Implementation  
    Reporter: Tomas Havelka


When popup calendar renders text like "Today is <date>", if date comes from localized
month names array 'jscalendarMonthName', so javascript goes render something like ... + jscalendarMonthName[jscalendarMonthNow].substring(0,3)
+ ... as the month name, but it works just in non diacritic languages such as english, but
when some other non-english character apperas in month name it goes wrong output because of
character replacing by its appropriate entity (for example &#225; for character รก from
czech language) and js substring function. 

The easiest solution is to remove substring function from javascript.
Another one is to add parameter such as popupTodayFormat similar to popupDateFormat to format
this text manually and let javascript just to write this formatted string with prefix text
given by popupTodayString parameter.

With regards 
Tom 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message