JS error in function oamSubmitForm(...)
---------------------------------------
Key: MYFACES-1413
URL: http://issues.apache.org/jira/browse/MYFACES-1413
Project: MyFaces Core
Issue Type: Bug
Components: General
Affects Versions: 1.1.5-SNAPSHOT
Environment: winxp, tomcate5
Reporter: Pavel Stetsuk
org.apache.myfaces.shared.renderkit.html.HtmlRendererUtils
public static String getClearHiddenCommandFormParamsFunctionName(
String formName) {
if(formName == null)
{
return "'" +CLEAR_HIDDEN_FIELD_FN_NAME
+
"_'+formName.replace('"+NamingContainer.SEPARATOR_CHAR+"','_')";
}
....
generete this JS
function oamSubmitForm(formName, linkId, target, params)
{
var clearFn =
'clearFormHiddenParams_'+formName.replace(':','_');
but if formName contain dashes (for example "form-edit") clearFn =
clearFormHiddenParams_form-edit
and it genare JS error 'edit is undefined'
--
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