org.apache.wicket.validation
Class RawValidationError
java.lang.Object
org.apache.wicket.validation.RawValidationError
- All Implemented Interfaces:
- Serializable, IClusterable, IValidationError
public class RawValidationError
- extends Object
- implements IValidationError
An IValidationError implementation that just keeps a Serializable
error message. Use it with a custom FeedbackPanel implementation
that knows how to render such error message.
- Since:
- 6.0
- See Also:
Component.error(java.io.Serializable)
,
Session.error(java.io.Serializable)
,
FeedbackPanel
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawValidationError
public RawValidationError(Serializable errorMessage)
- Constructor.
- Parameters:
errorMessage
- the custom error message that will be rendered by a custom FeedbackPanel
getErrorMessage
public Serializable getErrorMessage(IErrorMessageSource messageSource)
- Description copied from interface:
IValidationError
- Retrieves the error message (usually user-facing).
- Specified by:
getErrorMessage
in interface IValidationError
- Parameters:
messageSource
- the message source
- Returns:
- the error message
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.