|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.valid.ValidationDelegate
com.nordija.tapestry.bayeux.delegate.RequiredValidationDelegate
public class RequiredValidationDelegate
This validation delegate automatically marks required fields with a '!' mark and a 'required' css class to the marker.
At the same time it overwrites the default marking of fields in error. Only one * is added and it uses a css class 'error' to mark the single star.
| Constructor Summary | |
|---|---|
RequiredValidationDelegate()
|
|
| Method Summary | |
|---|---|
void |
writeSuffix(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.form.IFormComponent component,
org.apache.tapestry.valid.IValidator validator)
|
| Methods inherited from class org.apache.tapestry.valid.ValidationDelegate |
|---|
afterLabelText, beforeLabelText, clear, clearErrors, findCurrentTracking, getAssociatedTrackings, getComponentTracking, getCurrentFieldTracking, getErrorRenderers, getFieldInputValue, getFieldTracking, getFirstError, getFocusField, getHasErrors, getUnassociatedTrackings, isInError, isInError, record, record, record, record, recordFieldInputValue, registerForFocus, reset, setFormComponent, writeAttributes, writeLabelAttributes, writeLabelPrefix, writeLabelSuffix, writePrefix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredValidationDelegate()
| Method Detail |
|---|
public void writeSuffix(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.form.IFormComponent component,
org.apache.tapestry.valid.IValidator validator)
writeSuffix in interface org.apache.tapestry.valid.IValidationDelegatewriteSuffix in class org.apache.tapestry.valid.ValidationDelegate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||