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, String message)
          Construct.
 
Method Summary
 IValidationError getError()
          Gets error.
 String getMessage()
          Gets message.
static long getSerialVersionUID()
          Gets serialVersionUID.
 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,
                               String message)
Construct.

Parameters:
error -
message -
Method Detail

getSerialVersionUID

public static long getSerialVersionUID()
Gets serialVersionUID.

Returns:
serialVersionUID

getError

public IValidationError getError()
Gets error.

Returns:
error

getMessage

public String getMessage()
Gets message.

Returns:
message

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.