|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.html.form.validation.AbstractFormValidator
public abstract class AbstractFormValidator
Base class for IFormValidators.
| Constructor Summary | |
|---|---|
AbstractFormValidator()
|
|
| Method Summary | |
|---|---|
void |
error(FormComponent<?> fc)
Reports an error against validatable using the map returned by variablesMap()for
variable interpolations and message key returned by resourceKey(). |
void |
error(FormComponent<?> fc,
java.util.Map<java.lang.String,java.lang.Object> vars)
Reports an error against the validatable using the given map for variable interpolations and message resource key provided by resourceKey() |
void |
error(FormComponent<?> fc,
java.lang.String resourceKey)
Reports an error against the validatable using the given resource key |
void |
error(FormComponent<?> fc,
java.lang.String resourceKey,
java.util.Map<java.lang.String,java.lang.Object> vars)
Reports an error against the validatable using the specified resource key and variable map |
protected java.util.Map<?,?> |
messageModel()
Deprecated. use variablesMap() instead |
protected java.lang.String |
resourceKey()
Gets the resource key for validator's error message from the ApplicationSettings class. |
protected java.util.Map<java.lang.String,java.lang.Object> |
variablesMap()
Gets the default variables for interpolation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.markup.html.form.validation.IFormValidator |
|---|
getDependentFormComponents, validate |
| Constructor Detail |
|---|
public AbstractFormValidator()
| Method Detail |
|---|
@Deprecated protected final java.util.Map<?,?> messageModel()
variablesMap() instead
java.lang.UnsupportedOperationException - FIXME 2.0: remove asappublic void error(FormComponent<?> fc)
variablesMap()for
variable interpolations and message key returned by resourceKey().
fc - form component against which the error is reported
public void error(FormComponent<?> fc,
java.lang.String resourceKey)
fc - form component against which the error is reportedresourceKey - The message resource key to use
public void error(FormComponent<?> fc,
java.util.Map<java.lang.String,java.lang.Object> vars)
resourceKey()
fc - form component against which the error is reportedvars - variables for variable interpolation
public void error(FormComponent<?> fc,
java.lang.String resourceKey,
java.util.Map<java.lang.String,java.lang.Object> vars)
fc - form component against which the error is reportedresourceKey - The message resource key to usevars - The model for variable interpolationprotected java.util.Map<java.lang.String,java.lang.Object> variablesMap()
protected java.lang.String resourceKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||