Uses of Interface
org.apache.tapestry5.Field
Packages that use Field
Package
Description
Root package for Tapestry, containing common interfaces and data types used throughout the framework.
Base components intended to be extended by other components rather than
used directly in templates.
The set of core components available in all Tapestry applications
[INTERNAL USE ONLY] support classes for the Tapestry-core module; API subject to change
core components.
[INTERNAL USE ONLY] JSR-303 Bean Validation implementation details; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] translator implementation classes; API subject to change.
[INTERNAL USE ONLY] various utility classes; API subject to change.
Kaptcha components
Core services
Support for testing Tapestry pages
Tapestry-upload module components
Validators for use by Tapestry (and custom) form field components.
-
Uses of Field in org.apache.tapestry5
Methods in org.apache.tapestry5 with parameters of type FieldModifier and TypeMethodDescriptionvoid
BaseValidationDecorator.afterField
(Field field) void
ValidationDecorator.afterField
(Field field) Deprecated.Invoked after the field has completed rendering itself.void
BaseValidationDecorator.afterLabel
(Field field) void
ValidationDecorator.afterLabel
(Field field) Deprecated.Invoked byLabel
after rendering itself.void
BaseValidationDecorator.beforeField
(Field field) void
ValidationDecorator.beforeField
(Field field) Deprecated.Renders immediately before the field itself.void
BaseValidationDecorator.beforeLabel
(Field field) void
ValidationDecorator.beforeLabel
(Field field) Deprecated.Invoked by aLabel
before rendering itself.Returns a previously recorded error message.Returns a previously recorded input value.boolean
For a given field, determines if the field is "in error", meaning that an error message has been previously recorded for the field.boolean
boolean
void
BaseValidationDecorator.insideField
(Field field) void
ValidationDecorator.insideField
(Field field) Deprecated.Invoked at a point where the decorator may write additional attributes into the field.void
BaseValidationDecorator.insideLabel
(Field field, Element labelElement) void
ValidationDecorator.insideLabel
(Field field, Element labelElement) Deprecated.Invoked after the label has rendered its tag, but before it has rendered content inside the tag, to allow the decorator to write additional attributes.Translator.parseClient
(Field field, String clientValue, String message) Converts a submitted request value into an appropriate server side value.void
FormValidationControl.recordError
(Field field, String errorMessage) A convenience method for invokingValidationTracker.recordError(Field, String)
.void
ValidationTracker.recordError
(Field field, String errorMessage) Records an error message for a field.void
ValidationTrackerImpl.recordError
(Field field, String errorMessage) void
ValidationTrackerWrapper.recordError
(Field field, String errorMessage) void
ValidationTracker.recordInput
(Field field, String input) Called by a field to record the exact input from the user, prior to any validation.void
ValidationTrackerImpl.recordInput
(Field field, String input) void
ValidationTrackerWrapper.recordInput
(Field field, String input) void
Translator.render
(Field field, String message, MarkupWriter writer, FormSupport formSupport) Hook used by components to allow the validator to contribute additional attributes or (more often) client-side JavaScript (via theFormSupport.addValidation(Field, String, String, Object)
).void
Validator.render
(Field field, C constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) Hook used by components to allow the validator to contribute additional attributes or (more often) client-side JavaScript (via theFormSupport.addValidation(Field, String, String, Object)
).void
Validator.validate
(Field field, C constraintValue, MessageFormatter formatter, T value) Invoked after the client-submitted value has beentranslated
to check that the value conforms to expectations (often, in terms of minimum or maximum value). -
Uses of Field in org.apache.tapestry5.corelib.base
Classes in org.apache.tapestry5.corelib.base that implement FieldModifier and TypeClassDescriptionclass
Provides initialization of the clientId and elementName properties.class
Abstract class for a variety of components that render some variation of a text field. -
Uses of Field in org.apache.tapestry5.corelib.components
Classes in org.apache.tapestry5.corelib.components that implement FieldModifier and TypeClassDescriptionclass
A Checkbox component is simply a <input type="checkbox">.class
A list of checkboxes, allowing selection of multiple items in a list.class
A component used to collect a provided date from the user using a client-side JavaScript calendar.class
A component used to collect a provided date from the user using the native HTML5 date picker (<input type="date">)class
Multiple selection component.class
A version ofTextField
, but rendered out as an <input type="password"> element.class
A radio button (i.e., <input type="radio">).class
A wrapper component around some number ofRadio
components, used to organize the selection and define the property to be edited.class
Select an item from a list of values, using an [X]HTML <select> element on the client side.class
TextArea component corresponds to a <textarea> element.class
TextField component corresponds to<input>
element.Methods in org.apache.tapestry5.corelib.components with parameters of type FieldModifier and TypeMethodDescriptionvoid
BeanEditForm.recordError
(Field field, String errorMessage) void
Form.recordError
(Field field, String errorMessage) -
Uses of Field in org.apache.tapestry5.corelib.internal
Methods in org.apache.tapestry5.corelib.internal with parameters of type FieldModifier and TypeMethodDescriptionvoid
FormSupportAdapter.addValidation
(Field field, String validationName, String message, Object constraint) void
FormSupportImpl.addValidation
(Field field, String validationName, String message, Object constraint) -
Uses of Field in org.apache.tapestry5.internal.beanvalidator
Methods in org.apache.tapestry5.internal.beanvalidator with parameters of type FieldModifier and TypeMethodDescriptionBeanFieldValidatorDefaultSource.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) Constructors in org.apache.tapestry5.internal.beanvalidator with parameters of type FieldModifierConstructorDescriptionBeanFieldValidator
(Field field, javax.validation.ValidatorFactory validatorFactory, BeanValidatorGroupSource beanValidationGroupSource, ClientConstraintDescriptorSource clientValidatorSource, FormSupport formSupport, Environment environment) -
Uses of Field in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services with parameters of type FieldModifier and TypeMethodDescriptionvoid
ClientBehaviorSupportImpl.addValidation
(Field field, String validationName, String message, Object constraint) FieldTranslatorSourceImpl.createDefaultTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) FieldValidatorDefaultSourceImpl.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) FieldTranslatorSourceImpl.createTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator) FieldValidatorSourceImpl.createValidator
(Field field, String validatorType, String constraintValue) FieldValidatorSourceImpl.createValidator
(Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale) FieldValidatorSourceImpl.createValidators
(Field field, String specification) Constructors in org.apache.tapestry5.internal.services with parameters of type FieldModifierConstructorDescriptionFieldTranslatorImpl
(Field field, Translator<T> translator, MessageFormatter formatter, FormSupport formSupport) FieldValidatorImpl
(Field field, Object constraintValue, MessageFormatter messageFormatter, Validator validator, FormSupport formSupport) -
Uses of Field in org.apache.tapestry5.internal.translator
Methods in org.apache.tapestry5.internal.translator with parameters of type FieldModifier and TypeMethodDescriptionNumericTranslator.parseClient
(Field field, String clientValue, String message) StringTranslator.parseClient
(Field field, String clientValue, String message) Passes the clientValue through unchanged.void
NumericTranslator.render
(Field field, String message, MarkupWriter writer, FormSupport formSupport) void
StringTranslator.render
(Field field, String message, MarkupWriter writer, FormSupport formSupport) Does nothing. -
Uses of Field in org.apache.tapestry5.internal.util
Methods in org.apache.tapestry5.internal.util with parameters of type FieldModifier and TypeMethodDescriptionvoid
ValidationDecoratorWrapper.afterField
(Field field) void
ValidationDecoratorWrapper.afterLabel
(Field field) void
ValidationDecoratorWrapper.beforeField
(Field field) void
ValidationDecoratorWrapper.beforeLabel
(Field field) void
AutofocusValidationDecorator.insideField
(Field field) void
ValidationDecoratorWrapper.insideField
(Field field) void
ValidationDecoratorWrapper.insideLabel
(Field field, Element labelElement) -
Uses of Field in org.apache.tapestry5.kaptcha.components
Classes in org.apache.tapestry5.kaptcha.components that implement FieldModifier and TypeClassDescriptionclass
Field paired with aKaptchaImage
to ensure that the user has provided the correct value. -
Uses of Field in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services with parameters of type FieldModifier and TypeMethodDescriptionvoid
ClientBehaviorSupport.addValidation
(Field field, String validationName, String message, Object constraint) Deprecated.Collects field validation information.void
FormSupport.addValidation
(Field field, String validationName, String message, Object constraint) Deprecated.Deprecated in 5.4 with no exact replacement; this default implementation now does nothing.FieldTranslatorSource.createDefaultTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) Creates aFieldTranslator
for the given property, or returns null if one can't be constructed.FieldValidatorDefaultSource.createDefaultValidator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Class propertyType, AnnotationProvider propertyAnnotations) Analyzes the property type and property annotations to determine the default set of validations for the property, which are wrapped to form aFieldValidator
for a field.FieldTranslatorSource.createTranslator
(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator) Wraps aTranslator
as a FieldTranslator.FieldValidatorSource.createValidator
(Field field, String validatorType, String constraintValue) Creates the validator.FieldValidatorSource.createValidator
(Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale) Full featured version ofFieldValidatorSource.createValidator(Field, String, String)
used in situations where the container of the field is not necessarily the place to look for override messages, and the id of the field is not the key to use when checking.FieldValidatorSource.createValidators
(Field field, String specification) Creates a set of validators.PropertyEditContext.getTranslator
(Field field) Returns the translator appropriate for the field (this is based on the property type).PropertyEditContext.getValidator
(Field field) Returns the FieldValidator for the field. -
Uses of Field in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test that return FieldModifier and TypeMethodDescriptionprotected final Field
TapestryTestCase.mockField()
protected final Field
TapestryTestCase.mockFieldWithLabel
(String label) Methods in org.apache.tapestry5.test with parameters of type FieldModifier and TypeMethodDescriptionprotected final void
TapestryTestCase.train_createValidator
(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result) protected final void
TapestryTestCase.train_getInput
(ValidationTracker tracker, Field field, String input) protected final void
TapestryTestCase.train_getLabel
(Field field, String label) protected final void
TapestryTestCase.train_inError
(ValidationTracker tracker, Field field, boolean inError) protected final void
TapestryTestCase.train_isDisabled
(Field field, boolean disabled) protected final void
TapestryTestCase.train_isRequired
(Field field, boolean required) -
Uses of Field in org.apache.tapestry5.upload.components
Classes in org.apache.tapestry5.upload.components that implement Field -
Uses of Field in org.apache.tapestry5.validator
Methods in org.apache.tapestry5.validator with parameters of type FieldModifier and TypeMethodDescriptionvoid
Checked.render
(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
Email.render
(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
Max.render
(Field field, Long constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
MaxLength.render
(Field field, Integer constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
Min.render
(Field field, Long constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
MinLength.render
(Field field, Integer constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
None.render
(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) Does nothing.void
Regexp.render
(Field field, Pattern constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
Required.render
(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) void
Email.validate
(Field field, Void constraintValue, MessageFormatter formatter, String value) void
Max.validate
(Field field, Long constraintValue, MessageFormatter formatter, Number value) void
MaxLength.validate
(Field field, Integer constraintValue, MessageFormatter formatter, String value) void
Min.validate
(Field field, Long constraintValue, MessageFormatter formatter, Number value) void
MinLength.validate
(Field field, Integer constraintValue, MessageFormatter formatter, String value) void
None.validate
(Field field, Void constraintValue, MessageFormatter formatter, Object value) Does nothing.void
Regexp.validate
(Field field, Pattern constraintValue, MessageFormatter formatter, String value) void
Required.validate
(Field field, Void constraintValue, MessageFormatter formatter, Object value)