Class VFilledOnFilled
java.lang.Object
fc.web.forms.FormValidator
fc.web.forms.VConditional
fc.web.forms.VFilledOnFilled
Validates that some condition/state for a group of fields
implies some other condition/state for another group of fields.
The pre/post conditions are both the result of
validators attached to the pre/post fields.
-
Constructor Summary
ConstructorsConstructorDescriptionVFilledOnFilled(Form f, String name, String errorMessage, VFilledGroup preValidator, VFilledGroup postValidator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanpostConditionMet(FormData fd, jakarta.servlet.http.HttpServletRequest req) Subclasses should implement this method to check that certain post conditions have been met.booleanpreConditionMet(FormData fd, jakarta.servlet.http.HttpServletRequest req) Subclasses should implement this method to check that certain fields or pre-conditions have been met.Methods inherited from class VConditional
validateMethods inherited from class FormValidator
getErrorMessage, getName, setErrorMessage, toString
-
Constructor Details
-
VFilledOnFilled
public VFilledOnFilled(Form f, String name, String errorMessage, VFilledGroup preValidator, VFilledGroup postValidator) - Parameters:
name- name for this validatorerrorMessage- validation error messagepreValidator- a pre condition validatorpostValidator- a post condition validator
-
-
Method Details
-
preConditionMet
Description copied from class:VConditionalSubclasses should implement this method to check that certain fields or pre-conditions have been met. Only gf these conditions have been met will there be a check to see that the post conditions are also true.- Specified by:
preConditionMetin classVConditional- Returns:
- true if the pre-conditions have been met, false otherwise
-
postConditionMet
Description copied from class:VConditionalSubclasses should implement this method to check that certain post conditions have been met. This method will only be called if theVConditional.preConditionMet(FormData, HttpServletRequest)method returns true.- Specified by:
postConditionMetin classVConditional- Returns:
- true if the post-conditions have been met, false otherwise
-