myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Cooke (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-1397) getValidJavascriptNameAsInRI throws java.lang.IllegalArgumentException: Illegal group reference
Date Fri, 01 Sep 2006 17:33:27 GMT
getValidJavascriptNameAsInRI throws java.lang.IllegalArgumentException: Illegal group reference
-----------------------------------------------------------------------------------------------

                 Key: MYFACES-1397
                 URL: http://issues.apache.org/jira/browse/MYFACES-1397
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 1.1.5-SNAPSHOT
         Environment: WinXP, JDK 1.5.0_06 
            Reporter: Steven Cooke


 getValidJavascriptNameAsInRI throws IllegalArgumentException for all non-null String input.

/**Don't use this function - except when compatibility with the RI is a must,
     * as in the name for the clear form parameters script.
     */
    public static String getValidJavascriptNameAsInRI(String origIdentifier)
    {
        return origIdentifier.replaceAll("-", "\\$_");  // <-- I think this is what you
want, but can't tell from the javadocs :-)
    }


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