-
InterfaceDescriptionAs of JSP 2.1, replaced by
FunctionMapper
As of JSP 2.1, replaced byELResolver
since JAXB 2.0
-
ClassDescriptionThis class was not marked
Serializable
in the 1.0 version of the spec. It was also not a static inner class, so it can't be made to beSerializable
. Therefore, it is being deprecated in version 1.2 of the spec. The replacement is to use an implementation dependentObject
.This has been replaced byMethodExpression
.This has been replaced byELResolver
.This has been replaced byValueExpression
.The Faces implementation must now provide the implementation for this class.This has been partially replaced byConverterELTag
. The remainder of the functionality, namely, the binding facility and the implementation of theConverterTag.createConverter()
method, is now an implementation detail.All component tags now implementBodyTag
. This class has been replaced byUIComponentELTag
.Use of this class has been replaced withUIComponentELTag
, which extendsUIComponentClassicTagBase
to add properties that use the EL API introduced as part of JSP 2.1.This has been partially replaced byValidatorELTag
. The remainder of the functionality, namely, the binding facility and the implementation of theValidatorTag.createValidator()
method, is now an implementation detail.As of JSP 2.1, replaced byValueExpression
As of JSP 2.1, replaced byExpressionFactory
-
ExceptionsDescriptionThis has been replaced by
ELException
.This has been replaced byMethodNotFoundException
.This has been replaced byPropertyNotFoundException
.This has been replaced byELException
.As of JSP 2.1, replaced byELException
As of JSP 2.1, replaced byELException
-
FieldDescription
-
MethodDescriptionUse Principal getCallerPrincipal() instead.Use the JNDI naming context java:comp/env to access enterprise bean's environment.Use boolean isCallerInRole(String roleName) instead.This has been replaced by
Application.createComponent(javax.el.ValueExpression,javax.faces.context.FacesContext,java.lang.String)
.This has been replaced by callingApplication.getExpressionFactory()
thenExpressionFactory.createMethodExpression(javax.el.ELContext, java.lang.String, java.lang.Class<?>, java.lang.Class<?>[])
.This has been replaced by callingApplication.getExpressionFactory()
thenExpressionFactory.createValueExpression(javax.el.ELContext, java.lang.String, java.lang.Class<?>)
.This has been replaced byApplication.getELResolver()
.This has been replaced byApplication.getELResolver()
.The recommended way to affect the execution of the EL is to provide an<el-resolver>
element at the right place in the application configuration resources which will be considered in the normal course of expression evaluation. This method now will cause the argumentresolver
to be wrapped inside an implementation ofELResolver
and exposed to the EL resolution system as if the user had calledApplication.addELResolver(javax.el.ELResolver)
.The recommended way to affect the execution of the EL is to provide an<el-resolver>
element at the right place in the application configuration resources which will be considered in the normal course of expression evaluation. This method now will cause the argumentresolver
to be wrapped inside an implementation ofELResolver
and exposed to the EL resolution system as if the user had calledApplication.addELResolver(javax.el.ELResolver)
.See superclass for alternative.See superclass for alternative.See superclass for alternative.See superclass for alternative.See superclass for alternative.See superclass for alternative.See superclass for alternative.the distinction between tree structure and component state is now an implementation detail. The default implementation returnsnull
.the distinction between tree structure and component state is now an implementation detail. The default implementation returnsnull
.the distinction between tree structure and component state is now an implementation detail. The default implementation does nothing.the distinction between tree structure and component state is now an implementation detail. The default implementation returnsnull
.this has been replaced byStateManager.saveView(javax.faces.context.FacesContext)
. The default implementation callssaveView
and inspects the return. If the return is anObject []
, it casts the result to anObject []
wrapping the first and second elements in an instance ofStateManager.SerializedView
, which it then returns. Otherwise, it returnsnull
This method has been replaced byStateManager.writeState(javax.faces.context.FacesContext,java.lang.Object)
. The default implementation calls the non-deprecated variant of the method passing anObject []
as the second argument, where the first element of the array is the return fromgetStructure()
and the second is the return fromgetState()
on the argumentstate
.This has been replaced byActionSource2.getActionExpression()
.UseActionSource.getActionListeners()
instead.This has been replaced byActionSource2.setActionExpression(javax.el.MethodExpression)
.This has been replaced byActionSource.addActionListener(javax.faces.event.ActionListener)
.EditableValueHolder.getValidators()
should be used instead.UseEditableValueHolder.getValueChangeListeners()
instead.UseEditableValueHolder.addValidator(javax.faces.validator.Validator)
instead, obtaining the argumentValidator
by creating an instance ofMethodExpressionValidator
.UseEditableValueHolder.addValueChangeListener(javax.faces.event.ValueChangeListener)
instead, obtaining the argumentValueChangeListener
by creating an instance ofMethodExpressionValueChangeListener
.This has been replaced byUICommand.getActionExpression()
.UseUICommand.getActionListeners()
instead.This has been replaced byUICommand.setActionExpression(javax.el.MethodExpression)
.This has been replaced byUICommand.addActionListener(javax.faces.event.ActionListener)
.This has been replaced byUIComponent.getValueExpression(java.lang.String)
.This has been replaced byUIComponent.setValueExpression(java.lang.String, javax.el.ValueExpression)
.This has been replaced byUIComponent.getValueExpression(java.lang.String)
.This has been replaced byUIComponent.setValueExpression(java.lang.String, javax.el.ValueExpression)
.This has been replaced byUIData.setValueExpression(java.lang.String, javax.el.ValueExpression)
.This has been replaced byUIGraphic.getValueExpression(java.lang.String)
.This has been replaced byUIGraphic.setValueExpression(java.lang.String, javax.el.ValueExpression)
.UIInput.getValidators()
should be used instead.UseUIInput.addValidator(javax.faces.validator.Validator)
instead, obtaining the argumentValidator
by creating an instance ofMethodExpressionValidator
.UseUIInput.addValueChangeListener(javax.faces.event.ValueChangeListener)
instead, obtaining the argumentValueChangeListener
by creating an instance ofMethodExpressionValueChangeListener
.This has been replaced byUISelectBoolean.getValueExpression(java.lang.String)
.This has been replaced byUISelectBoolean.setValueExpression(java.lang.String, javax.el.ValueExpression)
.this has been replaced byUISelectMany.getValueExpression(java.lang.String)
.This has been replaced byUISelectMany.setValueExpression(java.lang.String, javax.el.ValueExpression)
.This method has been replaced byResponseStateManager.getState(javax.faces.context.FacesContext, java.lang.String)
. The default implementation returnsnull
.This method has been replaced byResponseStateManager.getState(javax.faces.context.FacesContext, java.lang.String)
. The default implementation returnsnull
.This method has been replaced byResponseStateManager.writeState(javax.faces.context.FacesContext,java.lang.Object)
. The default implementation creates a two elementObject
array with the first element being the return from callingStateManager.SerializedView.getStructure()
, and the second being the return fromStateManager.SerializedView.getState()
. It then passes thisObject
array toResponseStateManager.writeState(javax.faces.context.FacesContext, java.lang.Object)
.No encoding is done during JSP page execution. Encoding is deferred until the page has completed executing to allow the entire tree to be built before any encoding occurs.No encoding is done during JSP page execution. Encoding is deferred until the page has completed executing to allow the entire tree to be built before any encoding occurs.No encoding is done during JSP page execution. Encoding is deferred until the page has completed executing to allow the entire tree to be built before any encoding occurs.J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer togetCause
andinitCause
methods of thejava.lang.Throwable
class.J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer togetCause
andinitCause
methods of thejava.lang.Throwable
class.J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer togetCause
andinitCause
methods of thejava.lang.Throwable
class..J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer togetCause
andinitCause
methods of thejava.lang.Throwable
class.As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code usesetStatus(int)
, to send an error with a description usesendError(int, String)
. Sets the status code and message for this response.As of version 2.1, useHttpServletResponseWrapper.encodeRedirectURL(String url)
insteadAs of version 2.1, useHttpServletResponseWrapper.encodeURL(String url)
insteadAs of version 2.1, due to ambiguous meaning of the message parameter. To set a status code useHttpServletResponseWrapper.setStatus(int)
, to send an error with a description useHttpServletResponseWrapper.sendError(int, String)
As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API.As of Version 2.2, this method is replaced byHttpSession.getAttribute(java.lang.String)
.As of Version 2.2, this method is replaced byHttpSession.getAttributeNames()
As of Version 2.2, this method is replaced byHttpSession.setAttribute(java.lang.String, java.lang.Object)
As of Version 2.2, this method is replaced byHttpSession.removeAttribute(java.lang.String)
As of Java Servlet API 2.1 with no replacement. This method must return null and will be removed in a future version of this API.As of JSP 2.1, replaced byJspApplicationContext.getExpressionFactory()
As of JSP 2.1, replaced byELContext.getELResolver()
, which can be obtained byjspContext.getELContext().getELResolver()
.As of JSP 2.1, replaced byThrowable.getCause()
As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
instead.As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
insteadsince JAXB2.0since JAXB2.0, please seeUnmarshaller.getSchema()
since JAXB2.0, please seeUnmarshaller.setSchema(javax.xml.validation.Schema)
since JAXB2.0since JAXB2.0since JAXB2.0since JAXB2.0since JAXB2.0since JAXB2.0
org.ietf.jgss.GSSCredential
interface in J2SE Version 1.4, which provides similar functionality.