You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jack Cheng (JIRA)" <ji...@apache.org> on 2006/06/18 06:59:19 UTC

[jira] Created: (SHALE-194) javascript validation function errors in Shale 1.0.3

javascript validation function errors in Shale 1.0.3
----------------------------------------------------

         Key: SHALE-194
         URL: http://issues.apache.org/struts/browse/SHALE-194
     Project: Shale
        Type: Bug

  Components: Core  
    Versions: 1.0.3    
 Environment: All operating systems and browsers
    Reporter: Jack Cheng


the callback functions generated by ValidatorScript component will cause the following javascript error on FireFox and IE:
Error: missing ( before formal parameters
Source File: http://localhost:8080/ebusiness/modules/account/create.jsf
Line: 279, Column: 13
Source Code:
function page:_id0:_id1:_id7:_id13:create_account_form_email() {

this is due to the presence of colons in the callback function name and
only happens if you have a form in an html page that is processed by a
clay tag on a JSP page. Shale 1.0.2 works fine.

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


[jira] Updated: (SHALE-194) javascript validation function errors in Shale 1.0.3

Posted by "Wendy Smoak (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SHALE-194?page=all ]

Wendy Smoak updated SHALE-194:
------------------------------

    Fix Version: 1.0.3
        Version: Nightly
                     (was: 1.0.3)

Fixed versions.

> javascript validation function errors in Shale 1.0.3
> ----------------------------------------------------
>
>          Key: SHALE-194
>          URL: http://issues.apache.org/struts/browse/SHALE-194
>      Project: Shale
>         Type: Bug

>   Components: Core
>     Versions: Nightly
>  Environment: All operating systems and browsers
>     Reporter: Jack Cheng
>      Fix For: 1.0.3

>
> the callback functions generated by ValidatorScript component will cause the following javascript error on FireFox and IE:
> Error: missing ( before formal parameters
> Source File: http://localhost:8080/ebusiness/modules/account/create.jsf
> Line: 279, Column: 13
> Source Code:
> function page:_id0:_id1:_id7:_id13:create_account_form_email() {
> this is due to the presence of colons in the callback function name and
> only happens if you have a form in an html page that is processed by a
> clay tag on a JSP page. Shale 1.0.2 works fine.

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


[jira] Resolved: (SHALE-194) javascript validation function errors in Shale 1.0.3

Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SHALE-194?page=all ]
     
Gary VanMatre resolved SHALE-194:
---------------------------------

    Resolution: Fixed
     Assign To: Gary VanMatre

Added logic to strip out the UINamingContainer.SEPARATOR_CHAR and created our own version of the javascript that strips out the same colon character when resolving the form name.  Added the email commonsValidator to the shale clay usecases rolodex example.  I also added a subview to the shale usecases validator example.

I appreciate the help Jack.

> javascript validation function errors in Shale 1.0.3
> ----------------------------------------------------
>
>          Key: SHALE-194
>          URL: http://issues.apache.org/struts/browse/SHALE-194
>      Project: Shale
>         Type: Bug

>   Components: Core
>     Versions: Nightly
>  Environment: All operating systems and browsers
>     Reporter: Jack Cheng
>     Assignee: Gary VanMatre
>      Fix For: 1.0.3

>
> the callback functions generated by ValidatorScript component will cause the following javascript error on FireFox and IE:
> Error: missing ( before formal parameters
> Source File: http://localhost:8080/ebusiness/modules/account/create.jsf
> Line: 279, Column: 13
> Source Code:
> function page:_id0:_id1:_id7:_id13:create_account_form_email() {
> this is due to the presence of colons in the callback function name and
> only happens if you have a form in an html page that is processed by a
> clay tag on a JSP page. Shale 1.0.2 works fine.

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