Class 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.IClusterable
    This class is the parameter to Component.error(Serializable) instead of the generated error string itself (when FormComponent.error(IValidationError) is called). The advantage is that a custom feedback panel would still have access to the underlying IValidationError that generated the error message - providing much more context.
    Author:
    Igor Vaynberg (ivaynberg)
    See Also:
    Serialized Form
    • Constructor Detail

      • ValidationErrorFeedback

        public ValidationErrorFeedback​(IValidationError error,
                                       java.io.Serializable message)
        Construct.
        Parameters:
        error -
        message -
    • Method Detail

      • getMessage

        public java.io.Serializable getMessage()
        Gets message.
        Returns:
        message
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object