ValidatorScript component : NullPointerException while resolving functionName
-----------------------------------------------------------------------------
Key: SHALE-480
URL: https://issues.apache.org/struts/browse/SHALE-480
Project: Shale
Issue Type: Bug
Components: Validator
Reporter: Guillaume Serre
Priority: Trivial
The writeValidationFunctions method should use getFunctionName() instead of
using the "functionName" attribute directly. This is minor, but allows easier
overloading.
StringBuffer buff = new StringBuffer();
buff.append("var bCancel = false;\n")
.append("function ")
// the following line is changed
.append( getFunctionName() ).append("(form) {\n")
.append("\tvar bValid = true;\n")
.append("\tvar sFormName = jcv_retrieveFormName(form);\n");
Sorry I can make a diff from here because of a dumb proxy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.