org.apache.tapestry.corelib.base.AbstractField

Provides initialization of the clientId and elementName properties. In addition, adds the org.apache.tapestry.corelib.mixins.RenderInformals, org.apache.tapestry.corelib.mixins.RenderDisabled and org.apache.tapestry.corelib.mixins.DiscardBody mixins.

[JavaDoc]

Component Parameters

NameTypeFlagsDefaultDefault PrefixDescription
clientIdStringprop:componentResources.idliteralThe id used to generate a page-unique client-side identifier for the component. If a component renders multiple times, a suffix will be appended to the to id to ensure uniqueness. The uniqued value may be accessed via the clientId property.
disabledbooleanfalsepropIf true, then the field will render out with a disabled attribute (to turn off client-side behavior). Further, a disabled field ignores any value in the request when the form is submitted.
labelStringliteralThe user presentable label for the field. If not provided, a reasonable label is generated from the component's id, first by looking for a message key named "id-label" (substituting the component's actual id), then by converting the actual id to a presentable string (for example, "userId" to "User Id").

Back to index