org.apache.wicket.markup.html.form
Class ValidationErrorFeedback

java.lang.Object
  extended by org.apache.wicket.markup.html.form.ValidationErrorFeedback
All Implemented Interfaces:
Serializable, IClusterable

public class ValidationErrorFeedback
extends Object
implements 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 Summary
ValidationErrorFeedback(IValidationError error, Serializable message)
          Construct.
 
Method Summary
 IValidationError getError()
          Gets error.
 Serializable getMessage()
          Gets message.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.