You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Pavel Stetsuk (JIRA)" <de...@myfaces.apache.org> on 2006/09/21 06:54:24 UTC
[jira] Commented: (MYFACES-1397) getValidJavascriptNameAsInRI
throws java.lang.IllegalArgumentException: Illegal group reference
[ http://issues.apache.org/jira/browse/MYFACES-1397?page=comments#action_12436430 ]
Pavel Stetsuk commented on MYFACES-1397:
----------------------------------------
fixed in r448402
> 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
> Assigned To: Martin Marinschek
>
> 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