Uses of Interface
org.apache.tapestry5.ComponentResources
Packages that use ComponentResources
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.
[INTERNAL USE ONLY] support classes for the Tapestry-core module; API subject to change
core components.
[INTERNAL USE ONLY] internal support classes; API subject to change.
[INTERNAL USE ONLY] JSR-303 Bean Validation implementation details; API subject to change
[INTERNAL USE ONLY] support classes for binding; API subject to change
[INTERNAL USE ONLY] support classes for component template rendering; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] AJAX support services; API subject to change
[INTERNAL USE ONLY] page structure implementation details; API subject to change.
[INTERNAL USE ONLY] component class transformation implementation classes; API subject to change.
Contains interfaces that are added to component classes at runtime.
Core services
A more structured approach to tracking how compatibility features are enabled, as well as tracking
compatibility exceptions.
Services supporting the
Dynamic
component.Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
Support for testing Tapestry pages
-
Uses of ComponentResources in org.apache.tapestry5
Methods in org.apache.tapestry5 that return ComponentResourcesModifier and TypeMethodDescriptionComponentResources.getContainerResources()
Returns theComponentResources
for the container, or null if the this is the root component (that has no container).Methods in org.apache.tapestry5 with parameters of type ComponentResourcesModifier and TypeMethodDescriptionFieldValidationSupport.parseClient
(String clientValue, ComponentResources componentResources, FieldTranslator<Object> translator, NullFieldStrategy nullFieldStrategy) A wrapper aroundTranslator.parseClient(Field, String, String)
.FieldValidationSupport.toClient
(Object value, ComponentResources componentResources, FieldTranslator<Object> translator, NullFieldStrategy nullFieldStrategy) A wrapper aroundTranslator.toClient(Object)
that first fires a "toclient" event on the component to see if it can perform the conversion.void
FieldValidationSupport.validate
(Object value, ComponentResources componentResources, FieldValidator validator) Performs validation on a parsed value from the client. -
Uses of ComponentResources in org.apache.tapestry5.corelib.base
Fields in org.apache.tapestry5.corelib.base declared as ComponentResourcesModifier and TypeFieldDescriptionprotected ComponentResources
AbstractField.resources
protected ComponentResources
AbstractLink.resources
protected ComponentResources
BaseClientElement.resources
-
Uses of ComponentResources in org.apache.tapestry5.corelib.internal
Constructors in org.apache.tapestry5.corelib.internal with parameters of type ComponentResourcesModifierConstructorDescriptionFormSupportImpl
(ComponentResources resources, String formValidationId) Constructor used when processing a form submission.FormSupportImpl
(ComponentResources resources, String clientId, ComponentActionSink actionSink, boolean clientValidationEnabled, IdAllocator idAllocator, String formValidationId) Full constructor (specifically constructor for render time). -
Uses of ComponentResources in org.apache.tapestry5.internal
Subinterfaces of ComponentResources in org.apache.tapestry5.internalModifier and TypeInterfaceDescriptioninterface
An extension ofComponentResources
that represents additional methods that are private to the framework and not exposed in any public APIs.Constructors in org.apache.tapestry5.internal with parameters of type ComponentResources -
Uses of ComponentResources in org.apache.tapestry5.internal.beanvalidator
Methods in org.apache.tapestry5.internal.beanvalidator with parameters of type ComponentResourcesModifier and TypeMethodDescriptionBeanFieldValidatorDefaultSource.createDefaultValidator
(ComponentResources resources, String parameterName) -
Uses of ComponentResources in org.apache.tapestry5.internal.bindings
Methods in org.apache.tapestry5.internal.bindings with parameters of type ComponentResourcesModifier and TypeMethodDescriptionAssetBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) BlockBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) ComponentBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) ContextBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) LiteralBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) MessageBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) NullFieldStrategyBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) PropBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) RenderVariableBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) SymbolBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) TranslateBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) ValidateBindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) Constructors in org.apache.tapestry5.internal.bindings with parameters of type ComponentResourcesModifierConstructorDescriptionBlockBinding
(Location location, String description, ComponentResources component, String blockId) ComponentBinding
(Location location, String description, ComponentResources resources, String componentId) RenderVariableBinding
(Location location, String description, ComponentResources resources, String name) -
Uses of ComponentResources in org.apache.tapestry5.internal.renderers
Methods in org.apache.tapestry5.internal.renderers with parameters of type ComponentResourcesModifier and TypeMethodDescriptionvoid
ComponentResourcesRenderer.render
(ComponentResources object, MarkupWriter writer) -
Uses of ComponentResources in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services with parameters of type ComponentResourcesModifier and TypeMethodDescriptionboolean
PageActivator.activatePage
(ComponentResources pageResources, EventContext activationContext, ComponentEventResultProcessor resultProcessor) Activates the page.boolean
PageActivatorImpl.activatePage
(ComponentResources pageResources, EventContext activationContext, ComponentEventResultProcessor resultProcessor) FieldTranslatorSourceImpl.createDefaultTranslator
(ComponentResources resources, String parameterName) FieldValidatorDefaultSourceImpl.createDefaultValidator
(ComponentResources resources, String parameterName) FieldTranslatorSourceImpl.createTranslator
(ComponentResources resources, String translatorName) ComponentDefaultProviderImpl.defaultBinding
(String parameterName, ComponentResources resources) ComponentDefaultProviderImpl.defaultLabel
(ComponentResources resources) ComponentDefaultProviderImpl.defaultTranslator
(String parameterName, ComponentResources resources) ComponentDefaultProviderImpl.defaultTranslatorBinding
(String parameterName, ComponentResources resources) ComponentDefaultProviderImpl.defaultValidator
(String parameterName, ComponentResources resources) ComponentDefaultProviderImpl.defaultValidatorBinding
(String parameterName, ComponentResources resources) ComponentDefaultProviderImpl.defaultValueEncoder
(String parameterName, ComponentResources resources) <T> T
MetaDataLocatorImpl.findMeta
(String key, ComponentResources resources, Class<T> expectedType) AssetSourceImpl.getComponentAsset
(ComponentResources resources, String path, String libraryName) void
UnknownActivationContextHandler.handleUnknownContext
(ComponentResources pageResources, EventContext activationContext) Answer the client in the case of a request coming in with an unknown activation context.void
UnknownActivationContextHandlerImpl.handleUnknownContext
(ComponentResources pageResources, EventContext activationContext) PageElementFactory.newAttributeElement
(ComponentResources componentResources, AttributeToken token) Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.PageElementFactoryImpl.newAttributeElement
(ComponentResources componentResources, AttributeToken token) BindingSourceImpl.newBinding
(String description, ComponentResources container, String defaultPrefix, String expression) BindingSourceImpl.newBinding
(String description, ComponentResources container, ComponentResources component, String defaultPrefix, String expression, Location location) PageElementFactory.newBinding
(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location) Creates a new binding as withBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
.PageElementFactoryImpl.newBinding
(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location) PageElementFactory.newExpansionElement
(ComponentResources componentResources, ExpansionToken token) Converts an expansion token into a command that renders the expanded value.PageElementFactoryImpl.newExpansionElement
(ComponentResources componentResources, ExpansionToken token) FieldValidationSupportImpl.parseClient
(String clientValue, ComponentResources componentResources, FieldTranslator<Object> translator, NullFieldStrategy nullFieldStrategy) void
ComponentResourcesOperation.perform
(ComponentResources resources) Deprecated.Perform some operation that requires the components' resources.void
PersistentFieldManager.postChange
(String pageName, ComponentResources resources, String fieldName, Object newValue) Posts a change of a persistent property.void
PersistentFieldManagerImpl.postChange
(String pageName, ComponentResources resources, String fieldName, Object newValue) void
RenderQueueImpl.startComponent
(ComponentResources resources) FieldValidationSupportImpl.toClient
(Object value, ComponentResources componentResources, FieldTranslator<Object> translator, NullFieldStrategy nullFieldStrategy) void
FieldValidationSupportImpl.validate
(Object value, ComponentResources componentResources, FieldValidator validator) -
Uses of ComponentResources in org.apache.tapestry5.internal.services.ajax
Methods in org.apache.tapestry5.internal.services.ajax with parameters of type ComponentResourcesModifier and TypeMethodDescriptionJavaScriptSupportImpl.allocateClientId
(ComponentResources resources) -
Uses of ComponentResources in org.apache.tapestry5.internal.services.compatibility
Methods in org.apache.tapestry5.internal.services.compatibility with parameters of type ComponentResourcesModifier and TypeMethodDescriptionvoid
DeprecationWarningImpl.componentParameter
(ComponentResources resources, String parameterName, String message) void
DeprecationWarningImpl.componentParameterValue
(ComponentResources resources, String parameterName, Object parameterValue, String message) void
DeprecationWarningImpl.ignoredComponentParameters
(ComponentResources resources, String... parameterNames) -
Uses of ComponentResources in org.apache.tapestry5.internal.structure
Classes in org.apache.tapestry5.internal.structure that implement ComponentResourcesModifier and TypeClassDescriptionclass
The bridge between a component and itsComponentPageElement
, that supplies all kinds of resources to the component, including access to its parameters, parameter bindings, and persistent field data.Methods in org.apache.tapestry5.internal.structure that return ComponentResourcesModifier and TypeMethodDescriptionInternalComponentResourcesImpl.getContainerResources()
ComponentPageElement.getMixinResources
(String mixinId) Returns theComponentResources
for a mixin attached to this component element.ComponentPageElementImpl.getMixinResources
(String mixinId) Methods in org.apache.tapestry5.internal.structure with parameters of type ComponentResourcesModifier and TypeMethodDescriptionComponentPageElementResources.createComponentEventLink
(ComponentResources resources, String eventType, boolean forForm, Object... context) Creates a link on behalf of a component.ComponentPageElementResourcesImpl.createComponentEventLink
(ComponentResources resources, String eventType, boolean forForm, Object... context) void
Page.persistFieldChange
(ComponentResources resources, String fieldName, Object newValue) Posts a change to a persistent field.void
PageImpl.persistFieldChange
(ComponentResources resources, String fieldName, Object newValue) Constructors in org.apache.tapestry5.internal.structure with parameters of type ComponentResourcesModifierConstructorDescriptionInternalComponentResourcesImpl
(Page page, ComponentPageElement element, ComponentResources containerResources, ComponentPageElementResources elementResources, String completeId, String nestedId, Instantiator componentInstantiator, boolean mixin) -
Uses of ComponentResources in org.apache.tapestry5.internal.transform
Constructors in org.apache.tapestry5.internal.transform with parameters of type ComponentResourcesModifierConstructorDescriptionReadOnlyComponentFieldConduit
(ComponentResources resources, String fieldName) -
Uses of ComponentResources in org.apache.tapestry5.runtime
Methods in org.apache.tapestry5.runtime that return ComponentResourcesModifier and TypeMethodDescriptionComponentResourcesAware.getComponentResources()
Returns the resources associated with this component class.Methods in org.apache.tapestry5.runtime with parameters of type ComponentResourcesModifier and TypeMethodDescriptionvoid
RenderQueue.startComponent
(ComponentResources resources) Indicates that a component is starting its render. -
Uses of ComponentResources in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services with parameters of type ComponentResourcesModifier and TypeMethodDescriptionFieldTranslatorSource.createDefaultTranslator
(ComponentResources resources, String parameterName) FieldValidatorDefaultSource.createDefaultValidator
(ComponentResources resources, String parameterName) A convenience for the full version; assumes that the resources are associated with aField
.FieldTranslatorSource.createTranslator
(ComponentResources componentResources, String translatorName) Creates a translator (used by thetranslate: binding prefix
).ComponentDefaultProvider.defaultBinding
(String parameterName, ComponentResources resources) Checks to see if the container of the component (identified by its resources) contains a property matching the component's id.ComponentDefaultProvider.defaultLabel
(ComponentResources resources) Computes the default label for the component (which will generally be aField
).ComponentDefaultProvider.defaultTranslator
(String parameterName, ComponentResources resources) Deprecated.ComponentDefaultProvider.defaultTranslatorBinding
(String parameterName, ComponentResources resources) Provides a binding that itself provides the field translator.ComponentDefaultProvider.defaultValidator
(String parameterName, ComponentResources resources) ComponentDefaultProvider.defaultValidatorBinding
(String parameterName, ComponentResources resources) Provides a binding that itself provides the field translator.ComponentDefaultProvider.defaultValueEncoder
(String parameterName, ComponentResources resources) Gets or creates a value encoder based on the type of the named parameter.<T> T
MetaDataLocator.findMeta
(String key, ComponentResources resources, Class<T> expectedType) Searches for the value for the corresponding key.AssetSource.getComponentAsset
(ComponentResources resources, String path, String libraryName) Gets an asset that is used with, or injected into, a component, that will be exposed to the client.BindingFactory.newBinding
(String description, ComponentResources container, ComponentResources component, String expression, Location location) Creates a new binding instance.BindingSource.newBinding
(String description, ComponentResources container, String defaultPrefix, String expression) A simpler version ofBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
that defaults the values for several parameters.BindingSource.newBinding
(String description, ComponentResources container, ComponentResources component, String defaultPrefix, String expression, Location location) Examines the expression and strips off the leading prefix. -
Uses of ComponentResources in org.apache.tapestry5.services.compatibility
Methods in org.apache.tapestry5.services.compatibility with parameters of type ComponentResourcesModifier and TypeMethodDescriptionvoid
DeprecationWarning.componentParameter
(ComponentResources resources, String parameterName, String message) Used to identify a component parameter that has been deprecated.void
DeprecationWarning.componentParameterValue
(ComponentResources resources, String parameterName, Object parameterValue, String message) Used to identify a specific parameter value that is no longer supported.void
DeprecationWarning.ignoredComponentParameters
(ComponentResources resources, String... parameterNames) The most common case: checks to see if the parameter name is bound and if so emits a warning that the parameter is ignored and will be removed. -
Uses of ComponentResources in org.apache.tapestry5.services.dynamic
Methods in org.apache.tapestry5.services.dynamic that return ComponentResourcesModifier and TypeMethodDescriptionDynamicDelegate.getComponentResources()
Returns the component resources (i.e., theDynamic
component), used when creating bindings for expansions located inside the dynamic template. -
Uses of ComponentResources in org.apache.tapestry5.services.javascript
Methods in org.apache.tapestry5.services.javascript with parameters of type ComponentResourcesModifier and TypeMethodDescriptionJavaScriptSupport.allocateClientId
(ComponentResources resources) As withJavaScriptSupport.allocateClientId(String)
but uses the id of the component extracted from the resources. -
Uses of ComponentResources in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test that return ComponentResourcesModifier and TypeMethodDescriptionprotected final ComponentResources
TapestryTestCase.mockComponentResources()
Methods in org.apache.tapestry5.test with parameters of type ComponentResourcesModifier and TypeMethodDescriptionprotected final void
TapestryTestCase.train_createDefaultTranslator
(FieldTranslatorSource source, ComponentResources resources, String parameterName, FieldTranslator translator) protected <T> void
TapestryTestCase.train_findMeta
(MetaDataLocator locator, String key, ComponentResources resources, Class<T> expectedType, T value) protected final void
TapestryTestCase.train_getBlockParameter
(ComponentResources resources, String name, Block block) protected final void
TapestryTestCase.train_getBoundType
(ComponentResources resources, String parameterName, Class type) protected final void
TapestryTestCase.train_getComponent
(ComponentResources resources, Component component) protected final void
TapestryTestCase.train_getComponentResources
(Component component, ComponentResources resources) protected final void
TapestryTestCase.train_getContainer
(ComponentResources resources, Component container) protected final void
TapestryTestCase.train_getContainerMessages
(ComponentResources resources, Messages containerMessages) protected final void
TapestryTestCase.train_getContainerResources
(ComponentResources resources, ComponentResources containerResources) protected final void
TapestryTestCase.train_getId
(ComponentResources resources, String id) protected final void
TapestryTestCase.train_getMessages
(ComponentResources resources, Messages messages) protected final void
TapestryTestCase.train_getPage
(ComponentResources resources, Component page) protected final void
TapestryTestCase.train_newBinding
(BindingFactory factory, String description, ComponentResources container, ComponentResources component, String expression, Location l, Binding binding) protected void
TapestryTestCase.train_newBinding
(BindingSource bindingSource, String description, ComponentResources componentResources, String defaultBindingPrefix, String expression, Binding binding) protected final void
TapestryTestCase.train_renderInformalParameters
(ComponentResources resources, MarkupWriter writer, Object... informals)
ComponentDefaultProvider.defaultTranslatorBinding(String, org.apache.tapestry5.ComponentResources)
instead