Menu

#2 HDIV Core validateStartPageParameters

open
nobody
None
5
2011-08-08
2011-08-08
pk808
No

Method validate in Validation.java always returns true when validating parameters of an init page because the dataType passed to it from method validateStartPageParameters in AbstractValidatorHelper.java is always an empty string ("") and the component type is either "text" or "textarea". public boolean validate(String parameter, String[] values, String dataType) if (this.existComponentType() && (!this.isTheSameComponentType(dataType))) { return true; } public boolean validateStartPageParameters() if (!hdivConfig.areEditableParameterValuesValid(this.targetWithoutContextPath, parameter, values, "")) {

Discussion


Log in to post a comment.

MongoDB Logo MongoDB