You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Csaba Sebastian (JIRA)" <my...@incubator.apache.org> on 2005/07/12 11:24:09 UTC

[jira] Created: (MYFACES-323) inputCalendar fails after changing value on server

inputCalendar fails after changing value on server
--------------------------------------------------

         Key: MYFACES-323
         URL: http://issues.apache.org/jira/browse/MYFACES-323
     Project: MyFaces
        Type: Bug
    Versions: 1.0.9 beta    
 Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
    Reporter: Csaba Sebastian
 Attachments: calendarTest.jsp

After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Csaba Sebastian updated MYFACES-323:
------------------------------------

    Attachment: CalendarTest.java

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Bruno Aranda updated MYFACES-323:
---------------------------------

    Component: Tomahawk

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

    Fix Version: Nightly Build
     Resolution: Fixed

Thanks to Ethan Teh for providing this patch.

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>      Fix For: Nightly Build
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml, popcalendar.js
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

Posted by "Csaba Sebastian (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-323?page=comments#action_12315545 ] 

Csaba Sebastian commented on MYFACES-323:
-----------------------------------------

And in MsIE, the icon for "previous month" and "next month" links are not shown until the mouse gets over them.

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Martin Marinschek commented on MYFACES-323:
-------------------------------------------

It would be great if you could supply a patch for this, my time not permitting working on this right now.

thanks a lot,

regards,

Martin

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Csaba Sebastian updated MYFACES-323:
------------------------------------

    Attachment: faces-config.xml

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

Posted by "Ethan Teh (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-323?page=comments#action_12319535 ] 

Ethan Teh commented on MYFACES-323:
-----------------------------------

I have download the nightly build 20 August 2005.
Although it resolve the parseInt bug for Mozilla, but it seem it still a bug in Internet Explorer.
Please refer this hyperlink http://www.irt.org/script/1438.htm

Internet Explorer treats both queries as if they were base 10 uses of the parseInt() function. This conflicts with page 186 of the book "Javascript The Definitive Guide" by David Flanagan (3rd Edition). 

I have added a new function to truncate the "0" for 01-09.
This will work for both browser.

I also attached the working js that I have tested.

Regards,
Ethan
 

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

Posted by "Csaba Sebastian (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-323?page=comments#action_12315553 ] 

Csaba Sebastian commented on MYFACES-323:
-----------------------------------------

Upgrading: Mozilla throw a JavaScript error:

Error: event is not defined
Source file: http://localhost:8080/WebModule1/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/1113412660000/popcalendar.js
Line: 597

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

Posted by "Csaba Sebastian (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-323?page=comments#action_12315543 ] 

Csaba Sebastian commented on MYFACES-323:
-----------------------------------------

Browsers:
- Mozilla/5.0 (Windows; U; Windows NT 5.1; hu-HU; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
- Microsoft Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
No JavaScript errors detected.


> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Csaba Sebastian updated MYFACES-323:
------------------------------------

    Attachment: calendarTest.jsp

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>  Attachments: calendarTest.jsp
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Martin Marinschek commented on MYFACES-323:
-------------------------------------------

This issue should have been fixed by now - can you try it out again?

regards,

Martin

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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-323) inputCalendar fails after changing value on server

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

Ethan Teh updated MYFACES-323:
------------------------------

    Attachment: popcalendar.js

Here is the attached popcalendar.js that I have modified.

New function added:

function formatInt(str){

    if(typeof str != "undefined"){ 

	  //truncate 0 for number less than 10
      if (str.charAt(0)=="0"){
         return str.charAt(1);
      }

    }
	  return str;

}

> inputCalendar fails after changing value on server
> --------------------------------------------------
>
>          Key: MYFACES-323
>          URL: http://issues.apache.org/jira/browse/MYFACES-323
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.0.27 in JBuilder2005, WinXP, locale=hu_HU
>     Reporter: Csaba Sebastian
>     Assignee: Martin Marinschek
>  Attachments: CalendarTest.java, calendarTest.jsp, faces-config.xml, popcalendar.js
>
> After a server function changes the value of the date binded to the inputCalendar component, the popup window fails: the month is set to the "undefined" string, and an "empty month" is show in the middle pane.

-- 
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