Class ValidationErrorFeedback
- java.lang.Object
-
- org.apache.wicket.markup.html.form.ValidationErrorFeedback
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class ValidationErrorFeedback extends Object implements IClusterable
This class is the parameter toComponent.error(Serializable)
instead of the generated error string itself (whenFormComponent.error(IValidationError)
is called). The advantage is that a custom feedback panel would still have access to the underlyingIValidationError
that generated the error message - providing much more context.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationErrorFeedback(IValidationError error, Serializable message)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IValidationError
getError()
Gets error.Serializable
getMessage()
Gets message.String
toString()
-
-
-
Constructor Detail
-
ValidationErrorFeedback
public ValidationErrorFeedback(IValidationError error, Serializable message)
Construct.- Parameters:
error
-message
-
-
-
Method Detail
-
getError
public IValidationError getError()
Gets error.- Returns:
- error
-
getMessage
public Serializable getMessage()
Gets message.- Returns:
- message
-
-