Class ValidationErrorFeedback
- java.lang.Object
-
- org.apache.wicket.markup.html.form.ValidationErrorFeedback
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.wicket.util.io.IClusterable
public class ValidationErrorFeedback extends java.lang.Object implements org.apache.wicket.util.io.IClusterableThis 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 underlyingIValidationErrorthat generated the error message - providing much more context.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationErrorFeedback(IValidationError error, java.io.Serializable message)Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IValidationErrorgetError()Gets error.java.io.SerializablegetMessage()Gets message.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ValidationErrorFeedback
public ValidationErrorFeedback(IValidationError error, java.io.Serializable message)
Construct.- Parameters:
error-message-
-
-
Method Detail
-
getError
public IValidationError getError()
Gets error.- Returns:
- error
-
getMessage
public java.io.Serializable getMessage()
Gets message.- Returns:
- message
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-