[
http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317311
]
Boris Kovalenko commented on MYFACES-378:
-----------------------------------------
The problem is found. In JavaScript code
}else if ((aFormat[i]=="m") ||
(aFormat[i]=="mm") || (aFormat[i]=="M") || (aFormat[i]=="MM")){
jscalendarMonthSelected =
parseInt(aData[i]) - 1;
parseInt(aData[i]) for aData[i] == "08" || "09" will return 0, so
jscalendarMonthSelected = -1. Hmm it looks like parseInt in JavaScript parses
zero padded values as octal values??? Will take a look on JavaScript standard.
> PopUp calendar working incorrectly if August or September is preset in input
> field and locale is ru_RU
> ------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-378
> URL: http://issues.apache.org/jira/browse/MYFACES-378
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: Nightly Build
> Environment: Windows XP, Resin 3.0.14, Mozilla FireFox 1.0.6
> Reporter: Boris Kovalenko
>
> <x:inputCalendar id="rdate" value="#{currencyrate.rdate}" maxlength="10"
> size="10" renderAsPopup="true" styleClass="input"
> popupDateFormat="#{bundle['formats.date.ddmmyyyy']}" required="true"/>
> If locale is ru_RU, and currencyrate.rdate is set to any day of august or
> september popup calendar show "undefined" in month's name filed and days'
> field is empty. When I choose August by hand all is ok.
--
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