You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org> on 2005/08/01 11:44:35 UTC

[jira] Created: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317321 ] 

Boris Kovalenko commented on MYFACES-378:
-----------------------------------------

Sorry, guys, but first I need compiled tomahawk.jar. May somebody provide it to me? (I have troubles with svn access and self building of project). The only thing I know for the time present - my popcalendar.js works for me well.

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js
>
> <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


[jira] Updated: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-378?page=all ]

Boris Kovalenko updated MYFACES-378:
------------------------------------

    Attachment: popcalendar.js

Ough, forgot to attach new popcalendar.js if somebody is interesting in it

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js, popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317326 ] 

Boris Kovalenko commented on MYFACES-378:
-----------------------------------------

Ok, have downloaded tomahawk-20050731. The problem still present. Extracted popcalendar.js, replaced all parseInt with radix argument and packed back. Problem has gone.

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Bruno Aranda (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317320 ] 

Bruno Aranda commented on MYFACES-378:
--------------------------------------

Martin, Martin... ;-)

I was already testing the changes to see if everything was ok. It did not work after my merge of the Boris file with the svn current file (Boris, your file is a bit outdated). I've tried now with your latest commit without success... Boris, does it work for you?

Bruno

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js
>
> <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


[jira] Updated: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-378?page=all ]

Boris Kovalenko updated MYFACES-378:
------------------------------------

    Attachment: popcalendar.js

Yes, according to JavaScript documentation parseInt (if radix is omited) treats zero padded values as octal. So (IMHO) all calls to parseInt should be replaced with parseInt(value, 10). The new popcalendar.js attached. It fixes my problem. IMHO it also will fix MYFACES-73.

> 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
>  Attachments: popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317310 ] 

Boris Kovalenko commented on MYFACES-378:
-----------------------------------------

Unfortunatelly, I'm newbie in Java and JSF. I'm just learning. But IMHO the problems is not with Java code but JavaScript code. I'll take a look, but don't hope on me.

> 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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317318 ] 

Martin Marinschek commented on MYFACES-378:
-------------------------------------------

Sorry Bruno, I had it committed already!

Of course, I should have changed the assignment first, my fault...

Thanks Boris for your patch - test it and tell me if it works as expected.

regards,

Martin

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317308 ] 

Martin Marinschek commented on MYFACES-378:
-------------------------------------------

can you provide a patch? would be great! thanks, Martin

> 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


[jira] Closed: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Bruno Aranda (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-378?page=all ]
     
Bruno Aranda closed MYFACES-378:
--------------------------------

    Fix Version: Nightly Build
     Resolution: Fixed

I've tested this again after a cup of coffee, and everything works as expected :-) ... Many thanks Boris!

Bruno

> 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
>     Assignee: Martin Marinschek
>      Fix For: Nightly Build
>  Attachments: popcalendar.js, popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Bruno Aranda (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-378?page=comments#action_12317323 ] 

Bruno Aranda commented on MYFACES-378:
--------------------------------------

Boris, you can download the last tomahawk nighlty from the myfaces site (http://cvs.apache.org/builds/myfaces/nightly/). Well, maybe it's me who has the problem. Martin, can you check that too?

Bruno

> 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
>     Assignee: Martin Marinschek
>  Attachments: popcalendar.js
>
> <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


[jira] Commented: (MYFACES-378) PopUp calendar working incorrectly if August or September is preset in input field and locale is ru_RU

Posted by "Boris Kovalenko (JIRA)" <my...@incubator.apache.org>.
    [ 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