Built-in Mixins

Tapestry includes the following mixins out-of-the-box.

Autocomplete modifies a text field to provide for auto-completion of text using values retrieved from the server as the user types. See instructions.
DiscardBody discards a component's body. Returns false from the BeforeRenderBody phase, which prevents the rendering of the body.
FormFieldFocus instruments the outer Form on which component the focus should be activated. Replaced by OverrideFieldFocus starting in Tapestry 5.4.
NotEmpty attaches to any component that renders an element. At the end of the render, if the element is empty, then a non-breaking space ( ) is injected into the element.
OverrideFieldFocus when attached to a form field, causes that field to gain focus. Starting in Tapestry 5.4, this supersedes FormFieldFocus.
RenderClientId forces a client element to render its client id by ensuring that "getClientId" is called.
RenderDisabled renders an "disabled" attribute if the containing component is disabled
RenderInformals renders out all informal parameters, at the end of the BeginRender phase. This mixin can be used with components that render a single tag inside the BeginRender phase.
RenderNotification triggers event notifications to identify when it enters the BeginRender and AfterRender render phases
TriggerFragment when applied to a Checkbox or Radio component, links the input field and a FormFragment, making the field control the client-side visibility of the FormFragment
ZoneRefresh periodically refreshes a Zone by triggering an event on the server using ajax requests.