if (cleariferror != null) {
cleariferrorList = WGUtils.deserializeCollection(cleariferror, ",");
}
FormStatus formTag = null;
if (this.getSourcetag() != null) {
formTag = (FormStatus) this.getTagStatusById(this.getSourcetag(), FormBase.FormStatus.class);
if (formTag == null) {
this.getTMLContext().addwarning("Form with id '" + this.getSourcetag() + "' not found.", true);
return;
}
}
else {
formTag = (FormStatus) getStatus().getAncestorTag(Form.class);
}
if (formTag != null) {
// register with formTag
formTag.addFormValidation(condition, message, ifnoerrorList, cleariferrorList );
} else {
this.getTMLContext().addwarning("Could not find corresponding formtag.", true);
return;
}