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 TypeMethodDescriptionvoidBaseValidationDecorator.afterField(Field field) voidValidationDecorator.afterField(Field field) Deprecated.Invoked after the field has completed rendering itself.voidBaseValidationDecorator.afterLabel(Field field) voidValidationDecorator.afterLabel(Field field) Deprecated.Invoked byLabelafter rendering itself.voidBaseValidationDecorator.beforeField(Field field) voidValidationDecorator.beforeField(Field field) Deprecated.Renders immediately before the field itself.voidBaseValidationDecorator.beforeLabel(Field field) voidValidationDecorator.beforeLabel(Field field) Deprecated.Invoked by aLabelbefore rendering itself.Returns a previously recorded error message.Returns a previously recorded input value.booleanFor a given field, determines if the field is "in error", meaning that an error message has been previously recorded for the field.booleanbooleanvoidBaseValidationDecorator.insideField(Field field) voidValidationDecorator.insideField(Field field) Deprecated.Invoked at a point where the decorator may write additional attributes into the field.voidBaseValidationDecorator.insideLabel(Field field, Element labelElement) voidValidationDecorator.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.voidFormValidationControl.recordError(Field field, String errorMessage) A convenience method for invokingValidationTracker.recordError(Field, String).voidValidationTracker.recordError(Field field, String errorMessage) Records an error message for a field.voidValidationTrackerImpl.recordError(Field field, String errorMessage) voidValidationTrackerWrapper.recordError(Field field, String errorMessage) voidValidationTracker.recordInput(Field field, String input) Called by a field to record the exact input from the user, prior to any validation.voidValidationTrackerImpl.recordInput(Field field, String input) voidValidationTrackerWrapper.recordInput(Field field, String input) voidTranslator.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)).voidValidator.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)).voidValidator.validate(Field field, C constraintValue, MessageFormatter formatter, T value) Invoked after the client-submitted value has beentranslatedto 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 TypeClassDescriptionclassProvides initialization of the clientId and elementName properties.classAbstract 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 TypeClassDescriptionclassA Checkbox component is simply a <input type="checkbox">.classA list of checkboxes, allowing selection of multiple items in a list.classA component used to collect a provided date from the user using a client-side JavaScript calendar.classA component used to collect a provided date from the user using the native HTML5 date picker (<input type="date">)classMultiple selection component.classA version ofTextField, but rendered out as an <input type="password"> element.classA radio button (i.e., <input type="radio">).classA wrapper component around some number ofRadiocomponents, used to organize the selection and define the property to be edited.classSelect an item from a list of values, using an [X]HTML <select> element on the client side.classTextArea component corresponds to a <textarea> element.classTextField component corresponds to<input>element.Methods in org.apache.tapestry5.corelib.components with parameters of type FieldModifier and TypeMethodDescriptionvoidBeanEditForm.recordError(Field field, String errorMessage) voidForm.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 TypeMethodDescriptionvoidFormSupportAdapter.addValidation(Field field, String validationName, String message, Object constraint) voidFormSupportImpl.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 TypeMethodDescriptionvoidClientBehaviorSupportImpl.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.voidNumericTranslator.render(Field field, String message, MarkupWriter writer, FormSupport formSupport) voidStringTranslator.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 TypeMethodDescriptionvoidValidationDecoratorWrapper.afterField(Field field) voidValidationDecoratorWrapper.afterLabel(Field field) voidValidationDecoratorWrapper.beforeField(Field field) voidValidationDecoratorWrapper.beforeLabel(Field field) voidAutofocusValidationDecorator.insideField(Field field) voidValidationDecoratorWrapper.insideField(Field field) voidValidationDecoratorWrapper.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 TypeClassDescriptionclassField paired with aKaptchaImageto 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 TypeMethodDescriptionvoidClientBehaviorSupport.addValidation(Field field, String validationName, String message, Object constraint) Deprecated.Collects field validation information.voidFormSupport.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 aFieldTranslatorfor 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 aFieldValidatorfor a field.FieldTranslatorSource.createTranslator(Field field, String overrideId, Messages overrideMessages, Locale locale, Translator translator) Wraps aTranslatoras 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 FieldTapestryTestCase.mockField()protected final FieldTapestryTestCase.mockFieldWithLabel(String label) Methods in org.apache.tapestry5.test with parameters of type FieldModifier and TypeMethodDescriptionprotected final voidTapestryTestCase.train_createValidator(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result) protected final voidTapestryTestCase.train_getInput(ValidationTracker tracker, Field field, String input) protected final voidTapestryTestCase.train_getLabel(Field field, String label) protected final voidTapestryTestCase.train_inError(ValidationTracker tracker, Field field, boolean inError) protected final voidTapestryTestCase.train_isDisabled(Field field, boolean disabled) protected final voidTapestryTestCase.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 TypeMethodDescriptionvoidChecked.render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidEmail.render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidMax.render(Field field, Long constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidMaxLength.render(Field field, Integer constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidMin.render(Field field, Long constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidMinLength.render(Field field, Integer constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidNone.render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) Does nothing.voidRegexp.render(Field field, Pattern constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidRequired.render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) voidEmail.validate(Field field, Void constraintValue, MessageFormatter formatter, String value) voidMax.validate(Field field, Long constraintValue, MessageFormatter formatter, Number value) voidMaxLength.validate(Field field, Integer constraintValue, MessageFormatter formatter, String value) voidMin.validate(Field field, Long constraintValue, MessageFormatter formatter, Number value) voidMinLength.validate(Field field, Integer constraintValue, MessageFormatter formatter, String value) voidNone.validate(Field field, Void constraintValue, MessageFormatter formatter, Object value) Does nothing.voidRegexp.validate(Field field, Pattern constraintValue, MessageFormatter formatter, String value) voidRequired.validate(Field field, Void constraintValue, MessageFormatter formatter, Object value)