Deprecated API


Contents
Deprecated Interfaces
org.apache.tapestry5.services.Alias
          Use ServiceOverride instead 
org.apache.tapestry5.services.AliasManager
          Use ServiceOverride instead 
org.apache.tapestry5.services.ClientInfrastructure
          ClientInfrastructure now exists to define the "core" JavaScriptStack. It may be removed in the release 5.3. 
org.apache.tapestry5.services.EnvironmentalAccess
          No longer gives a performance advantage due to pool-less pages 
org.apache.tapestry5.services.FieldFilter
          New APIs use Predicate instead 
org.apache.tapestry5.services.LinkCreationListener
          Use LinkCreationListener2 instead 
org.apache.tapestry5.services.MethodFilter
          New APIs use Predicate instead 
org.apache.tapestry5.OptimizedApplicationStateObject
          since 5.1.0.0; use OptimizedSessionPersistedObject instead 
org.apache.tapestry5.PrimaryKeyEncoder
          This interface overlaps with ValueEncoder and has been deprecated in release 5.1. The interface itself will be removed in a later release of Tapestry. The components that used this interface (AjaxFormLoop, Grid, GridRows and Loop) have been changed to expect ValueEncoder instead, and an automatic coercion from PrimaryKeyEncoder to ValueEncoder has been provided. 
org.apache.tapestry5.RenderSupport
          RenderSupport has been replaced by JavaScriptSupport and may be removed in Tapestry 5.3. 
org.apache.tapestry5.urlrewriter.URLRewriteContext
          Use LinkTransformer instead 
org.apache.tapestry5.services.URLRewriter
          Use LinkTransformer instead 
org.apache.tapestry5.urlrewriter.URLRewriterRule
          Use LinkTransformer instead 
org.apache.tapestry5.services.ValidationMessagesSource
          Contribute to the ComponentMessagesSource service instead 
 

Deprecated Classes
org.apache.tapestry5.services.AliasContribution
          Use ServiceOverride instead 
org.apache.tapestry5.BaseOptimizedApplicationStateObject
          since 5.1.0.0; use BaseOptimizedSessionPersistedObject instead 
org.apache.tapestry5.util.DefaultPrimaryKeyEncoder
          See deprecation notes for PrimaryKeyEncoder. 
org.apache.tapestry5.urlrewriter.SimpleRequestWrapper
          To be removed in 5.3. 
 

Deprecated Enums
org.apache.tapestry5.urlrewriter.RewriteRuleApplicability
          Use LinkTransformer instead 
 

Deprecated Annotation Types
org.apache.tapestry5.annotations.ApplicationState
          Use SessionState instead 
org.apache.tapestry5.annotations.IncludeJavaScriptLibrary
          Use Import instead 
org.apache.tapestry5.annotations.IncludeStylesheet
          Use Import instead 
org.apache.tapestry5.annotations.Retain
          This rarely used annotation is likely to cause threading issues starting in Tapestry 5.2 (which no longer pools pages but uses shared instances with externalized mutable state) 
 

Deprecated Fields
org.apache.tapestry5.corelib.components.Form.FAILURE
          Use constant from EventConstants instead. 
org.apache.tapestry5.corelib.components.FormInjector.FORM_CLIENTID_PARAMETER
          Use RequestConstants.FORM_CLIENTID_PARAMETER instead 
org.apache.tapestry5.corelib.components.FormInjector.FORM_COMPONENTID_PARAMETER
          Use RequestConstants.FORM_COMPONENTID_PARAMETER instead 
org.apache.tapestry5.SymbolConstants.PAGE_POOL_ENABLED
          To be removed, along with the remnants of page pooling, in Tapestry 5.3. 
org.apache.tapestry5.SymbolConstants.PAGE_POOL_HARD_LIMIT
          The hard limit will be removed in a later release of Tapestry, as the maximum number of instance is easily controlled by limiting the number of request handling threads in the servlet container. 
org.apache.tapestry5.corelib.components.Form.PREPARE
          Use constant from EventConstants instead. 
org.apache.tapestry5.corelib.components.Form.PREPARE_FOR_RENDER
          Use constant from EventConstants instead. 
org.apache.tapestry5.corelib.components.Form.PREPARE_FOR_SUBMIT
          Use constant from EventConstants instead. 
org.apache.tapestry5.SymbolConstants.SCRIPTS_AT_TOP
          since 5.1.0.1; scripts are now always at the top (see TAP5-544) 
org.apache.tapestry5.corelib.components.Form.SUBMIT
          Use constant from EventConstants instead. 
org.apache.tapestry5.corelib.components.Form.SUCCESS
          Use constant from EventConstants instead. 
org.apache.tapestry5.EventConstants.VALIDATE_FORM
          As of 5.2, this event should no longer be used; the Form component now fires a EventConstants.VALIDATE event. For compatibility, validateForm will be supported, but may be removed in a future release. 
org.apache.tapestry5.corelib.components.Form.VALIDATE_FORM
          Use constant from EventConstants instead. 
 

Deprecated Methods
org.apache.tapestry5.services.ClassTransformation.addCatch(TransformMethodSignature, String, String)
          Use TransformMethod.addAdvice(ComponentMethodAdvice) instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.RenderSupport.addClasspathScriptLink(String...)
          Use JavaScriptSupport.importJavaScriptLibrary(Asset) instead 
org.apache.tapestry5.services.ClassTransformation.addField(int, String, String)
          Use ClassTransformation.createField(int, String, String) instead 
org.apache.tapestry5.internal.services.ClientBehaviorSupportImpl.addFormFragment(String, String, String)
          Use ClientBehaviorSupportImpl.addFormFragment(String,boolean,String,String) instead 
org.apache.tapestry5.services.ClientBehaviorSupport.addFormFragment(String, String, String)
          Use ClientBehaviorSupport.addFormFragment(String,boolean,String,String) instead 
org.apache.tapestry5.RenderSupport.addInit(String, JSONArray)
          Use JavaScriptSupport.addInitializerCall(String, JSONObject) instead (which may require changes to your JavaScript initializer function) 
org.apache.tapestry5.RenderSupport.addInit(String, JSONObject)
          Use JavaScriptSupport.addInitializerCall(String, JSONObject) instead 
org.apache.tapestry5.RenderSupport.addInit(String, String...)
          Use JavaScriptSupport.addInitializerCall(String, JSONObject) instead (which may require changes to your JavaScript initializer function), or (for a single parameter) JavaScriptSupport.addInitializerCall(String, String) 
org.apache.tapestry5.services.ClassTransformation.addMethod(TransformMethodSignature, String)
          Use ClassTransformation.getOrCreateMethod(TransformMethodSignature) instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.model.MutableComponentModel.addParameter(String, boolean, boolean, String)
          Use MutableComponentModel.addParameter(String, boolean, boolean, String, boolean) instead. 
org.apache.tapestry5.RenderSupport.addScript(String)
          Use JavaScriptSupport.addScript(String, Object...) instead 
org.apache.tapestry5.RenderSupport.addScript(String, Object...)
          Use JavaScriptSupport.addScript(String, Object...) instead 
org.apache.tapestry5.RenderSupport.addScriptLink(Asset...)
          Use JavaScriptSupport.importJavaScriptLibrary(Asset) instead 
org.apache.tapestry5.RenderSupport.addScriptLink(String...)
          Use JavaScriptSupport.importJavaScriptLibrary(String) instead 
org.apache.tapestry5.services.ClassTransformation.addTransformedMethod(TransformMethodSignature, String)
          Use ClassTransformation.getOrCreateMethod(TransformMethodSignature) instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.services.ClassTransformation.advise(TransformMethodSignature, ComponentMethodAdvice)
          Use TransformMethod.addAdvice(ComponentMethodAdvice) instead 
org.apache.tapestry5.RenderSupport.allocateClientId(ComponentResources)
          Use JavaScriptSupport.allocateClientId(ComponentResources) instead 
org.apache.tapestry5.RenderSupport.allocateClientId(String)
          Use JavaScriptSupport.allocateClientId(String) instead 
org.apache.tapestry5.services.ClassTransformation.claimField(String, Object)
          Use TransformField.claim(Object) instead 
org.apache.tapestry5.services.BeanModelSource.create(Class, boolean, Messages)
          use BeanModelSource.createDisplayModel(Class, org.apache.tapestry5.ioc.Messages) or BeanModelSource.createEditModel(Class, org.apache.tapestry5.ioc.Messages) 
org.apache.tapestry5.ComponentResourcesCommon.createActionLink(String, boolean, Object...)
          Use ComponentResourcesCommon.createEventLink(String, Object[]) instead 
org.apache.tapestry5.corelib.base.AbstractField.createDefaultParameterBinding(String)
          Use ComponentDefaultProvider.defaultBinding(String, ComponentResources) instead 
org.apache.tapestry5.ComponentResourcesCommon.createPageLink(Class, boolean, Object...)
          Use PageRenderLinkSource.createPageRenderLink(Class) or PageRenderLinkSource.createPageRenderLinkWithContext(Class, Object[]) instead 
org.apache.tapestry5.ComponentResourcesCommon.createPageLink(String, boolean, Object...)
          Use PageRenderLinkSource.createPageRenderLink(String) or PageRenderLinkSource.createPageRenderLinkWithContext(String, Object[]) instead 
org.apache.tapestry5.internal.structure.Page.decrementDirtyCount()
          No longer useful with non-pooled pages, to be removed for efficiency 
org.apache.tapestry5.services.ComponentDefaultProvider.defaultTranslator(String, ComponentResources)
          Use ComponentDefaultProvider.defaultTranslatorBinding(String, org.apache.tapestry5.ComponentResources) instead 
org.apache.tapestry5.services.ComponentDefaultProvider.defaultValidator(String, ComponentResources)
          Use ComponentDefaultProvider.defaultValidatorBinding(String, org.apache.tapestry5.ComponentResources) instead 
org.apache.tapestry5.services.ClassTransformation.extendConstructor(String)
          Use methods that create or inject fields (directly or indirectly) 
org.apache.tapestry5.services.ClassTransformation.extendExistingMethod(TransformMethodSignature, String)
          Use instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.services.ClassTransformation.extendMethod(TransformMethodSignature, String)
          Use TransformMethod.addAdvice(ComponentMethodAdvice) instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.services.ClassTransformation.findFields(FieldFilter)
          Use ClassTransformation.matchFields(Predicate) instead 
org.apache.tapestry5.services.ClassTransformation.findFieldsWithAnnotation(Class)
          Use ClassTransformation.matchFieldsWithAnnotation(Class) instead 
org.apache.tapestry5.services.ClassTransformation.findMethods(MethodFilter)
          Use ClassTransformation.matchMethods(Predicate) instead 
org.apache.tapestry5.services.ClassTransformation.findMethodsWithAnnotation(Class)
          Use ClassTransformation.matchMethodsWithAnnotation(Class) instead 
org.apache.tapestry5.services.ClassTransformation.findUnclaimedFields()
          Use ClassTransformation.matchUnclaimedFields() instead 
org.apache.tapestry5.services.Environment.getAccess(Class)
          No longer gives a performance advantage due to pool-less pages 
org.apache.tapestry5.services.ClassTransformation.getFieldAnnotation(String, Class)
          Use AnnotationProvider.getAnnotation(Class) instead 
org.apache.tapestry5.services.ClassTransformation.getFieldModifiers(String)
          Use TransformField.getModifiers() instead 
org.apache.tapestry5.services.ClassTransformation.getFieldType(String)
          Use TransformField.getType() instead 
org.apache.tapestry5.internal.services.PagePoolImplMBean.getHardLimit()
          The hard limit will be removed in a later release of Tapestry, as the maximum number of instance is easily controlled by limiting the number of request handling threads in the servlet container. 
org.apache.tapestry5.services.ClassTransformation.getMethodAnnotation(TransformMethodSignature, Class)
          Use AnnotationProvider.getAnnotation(Class) instead 
org.apache.tapestry5.services.ClassTransformation.getMethodIdentifier(TransformMethodSignature)
          Use TransformMethod.getMethodIdentifier() instead 
org.apache.tapestry5.dom.Element.getParent()
          since 5.1.0.1, use Node.getContainer() instead 
org.apache.tapestry5.services.ClassTransformation.getResourcesFieldName()
          Obtain the resources from ComponentResourcesAware.getComponentResources() or as passed to ComponentValueProvider.get(ComponentResources) instead 
org.apache.tapestry5.internal.structure.Page.incrementDirtyCount()
          No longer useful with non-pooled pages, to be removed for efficiency 
org.apache.tapestry5.services.ClassTransformation.injectField(String, Object)
          Use TransformField.inject(Object) instead 
org.apache.tapestry5.services.ClassTransformation.isMethodOverride(TransformMethodSignature)
          Use TransformMethod.isOverride() instead 
org.apache.tapestry5.services.ClassTransformation.makeReadOnly(String)
          Use TransformField.replaceAccess(TransformField) instead 
org.apache.tapestry5.test.TapestryTestCase.mockClientInfrastucture()
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.mockRenderSupport()
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.mockValidationMessagesSource()
          May be removed in Tapestry 5.3 
org.apache.tapestry5.services.ClassTransformation.prefixMethod(TransformMethodSignature, String)
          Use TransformMethod.addAdvice(ComponentMethodAdvice) instead. This method is non-functional as of Tapestry 5.2. 
org.apache.tapestry5.services.ClassTransformation.removeField(String)
          This method is non-functional as of Tapestry 5.2 
org.apache.tapestry5.services.ClassTransformation.replaceReadAccess(String, String)
          Use {@link TransformField#replaceAccess(ComponentValueProvider) instead 
org.apache.tapestry5.services.ClassTransformation.replaceWriteAccess(String, String)
          Use {@link TransformField#replaceAccess(ComponentValueProvider) instead 
org.apache.tapestry5.internal.services.PagePoolImplMBean.setHardLimit(int)
          The hard limit will be removed in a later release of Tapestry, as the maximum number of instance is easily controlled by limiting the number of request handling threads in the servlet container. 
org.apache.tapestry5.services.ClasspathAssetAliasManager.toResourcePath(String)
          No longer used as of Tapestry 5.2, may be removed in a later release. 
org.apache.tapestry5.test.TapestryTestCase.train_addField(ClassTransformation, int, String, String, String)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_addInjectedField(ClassTransformation, Class, String, Object, String)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_create(BeanModelSource, Class, boolean, Messages, BeanModel)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_findFieldsWithAnnotation(ClassTransformation, Class, List)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_findFieldsWithAnnotation(ClassTransformation, Class, String...)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_findMethods(ClassTransformation, TransformMethodSignature...)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_findMethodsWithAnnotation(ClassTransformation, Class, List)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_findUnclaimedFields(ClassTransformation, String...)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getAliasesForMode(AliasManager, String, Map)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getFieldAnnotation(ClassTransformation, String, Class, T)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getFieldType(ClassTransformation, String, String)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getMethodAnnotation(ClassTransformation, TransformMethodSignature, Class, T)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getResourcesFieldName(ClassTransformation, String)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_getValidationMessages(ValidationMessagesSource, Locale, Messages)
          May be removed in Tapestry 5.3 
org.apache.tapestry5.test.TapestryTestCase.train_toResourcePath(ClasspathAssetAliasManager, String, String)
          May be removed in Tapestry 5.3 
 

Deprecated Constructors
org.apache.tapestry5.services.BeanBlockContribution(String, String, String, boolean)
          Use DisplayBlockContribution.DisplayBlockContribution(String, String, String) or EditBlockContribution#EditorBlockContribution(String, String, String) instead. To be removed after Tapestry 5.2. 
org.apache.tapestry5.services.PageRenderRequestParameters(String, EventContext)
          Use {@link #PageRenderRequestParameters(String, EventContext, boolean) 
org.apache.tapestry5.internal.TapestryAppInitializer(Logger, SymbolProvider, String, String)
          Use TapestryAppInitializer.TapestryAppInitializer(Logger, SymbolProvider, String, String, String) instead 
 

Deprecated Enum Constants
org.apache.tapestry5.dom.EndTagStyle.OMIT
          Tapestry always renders well formed XML markup (even when a DOCTYPE is not present, or the content type is traditional text/html). 
 



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.