📄 facescontext.html
字号:
<li><p>If the <code>Collection</code> returned by <A HREF="../../../javax/faces/application/Application.html#getELContextListeners()"><CODE>Application.getELContextListeners()</CODE></A> is non-empty, create an instance of <A HREF="../../../javax/el/ELContextEvent.html" title="class in javax.el"><CODE>ELContextEvent</CODE></A> and pass it to each <A HREF="../../../javax/el/ELContextListener.html" title="interface in javax.el"><CODE>ELContextListener</CODE></A> instance in the <code>Collection</code> by calling the <A HREF="../../../javax/el/ELContextListener.html#contextCreated(javax.el.ELContextEvent)"><CODE>ELContextListener.contextCreated(javax.el.ELContextEvent)</CODE></A> method.</p></li> </ul> <p>The default implementation throws <code>UnsupportedOperationException</code> and is provided for the sole purpose of not breaking existing applications that extend this class.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released<DT><B>Since:</B></DT> <DD>1.2</DD></DL></DD></DL><HR><A NAME="getExternalContext()"><!-- --></A><H3>getExternalContext</H3><PRE>public abstract <A HREF="../../../javax/faces/context/ExternalContext.html" title="class in javax.faces.context">ExternalContext</A> <B>getExternalContext</B>()</PRE><DL><DD><p>Return the <A HREF="../../../javax/faces/context/ExternalContext.html" title="class in javax.faces.context"><CODE>ExternalContext</CODE></A> instance for this <code>FacesContext</code> instance.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getMaximumSeverity()"><!-- --></A><H3>getMaximumSeverity</H3><PRE>public abstract <A HREF="../../../javax/faces/application/FacesMessage.Severity.html" title="class in javax.faces.application">FacesMessage.Severity</A> <B>getMaximumSeverity</B>()</PRE><DL><DD><p>Return the maximum severity level recorded on any <A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application"><CODE>FacesMessage</CODE></A>s that has been queued, whether or not they are associated with any specific <A HREF="../../../javax/faces/component/UIComponent.html" title="class in javax.faces.component"><CODE>UIComponent</CODE></A>. If no such messages have been queued, return <code>null</code>.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getMessages()"><!-- --></A><H3>getMessages</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A><<A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application">FacesMessage</A>> <B>getMessages</B>()</PRE><DL><DD><p>Return an <code>Iterator</code> over the <A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application"><CODE>FacesMessage</CODE></A>s that have been queued, whether or not they are associated with any specific client identifier. If no such messages have been queued, return an empty <code>Iterator</code>. The elements of the <code>Iterator</code> must be returned in the order in which they were added with calls to <A HREF="../../../javax/faces/context/FacesContext.html#addMessage(java.lang.String, javax.faces.application.FacesMessage)"><CODE>addMessage(java.lang.String, javax.faces.application.FacesMessage)</CODE></A>.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getMessages(java.lang.String)"><!-- --></A><H3>getMessages</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A><<A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application">FacesMessage</A>> <B>getMessages</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> clientId)</PRE><DL><DD><p>Return an <code>Iterator</code> over the <A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application"><CODE>FacesMessage</CODE></A>s that have been queued that are associated with the specified client identifier (if <code>clientId</code> is not <code>null</code>), or over the <A HREF="../../../javax/faces/application/FacesMessage.html" title="class in javax.faces.application"><CODE>FacesMessage</CODE></A>s that have been queued that are not associated with any specific client identifier (if <code>clientId</code> is <code>null</code>). If no such messages have been queued, return an empty <code>Iterator</code>. The elements of the <code>Iterator</code> must be returned in the order in which they were added with calls to <A HREF="../../../javax/faces/context/FacesContext.html#addMessage(java.lang.String, javax.faces.application.FacesMessage)"><CODE>addMessage(java.lang.String, javax.faces.application.FacesMessage)</CODE></A>.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>clientId</CODE> - The client identifier for which messages are requested, or <code>null</code> for messages not associated with any client identifier<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getRenderKit()"><!-- --></A><H3>getRenderKit</H3><PRE>public abstract <A HREF="../../../javax/faces/render/RenderKit.html" title="class in javax.faces.render">RenderKit</A> <B>getRenderKit</B>()</PRE><DL><DD><p>Return the <A HREF="../../../javax/faces/render/RenderKit.html" title="class in javax.faces.render"><CODE>RenderKit</CODE></A> instance for the render kit identifier specified on our <A HREF="../../../javax/faces/component/UIViewRoot.html" title="class in javax.faces.component"><CODE>UIViewRoot</CODE></A>, if there is one. If there is no current <A HREF="../../../javax/faces/component/UIViewRoot.html" title="class in javax.faces.component"><CODE>UIViewRoot</CODE></A>, if the <A HREF="../../../javax/faces/component/UIViewRoot.html" title="class in javax.faces.component"><CODE>UIViewRoot</CODE></A> does not have a specified <code>renderKitId</code>, or if there is no <A HREF="../../../javax/faces/render/RenderKit.html" title="class in javax.faces.render"><CODE>RenderKit</CODE></A> for the specified identifier, return <code>null</code> instead.</p><P><DD><DL></DL></DD></DL><HR><A NAME="getRenderResponse()"><!-- --></A><H3>getRenderResponse</H3><PRE>public abstract boolean <B>getRenderResponse</B>()</PRE><DL><DD><p>Return <code>true</code> if the <code>renderResponse()</code> method has been called for the current request.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getResponseComplete()"><!-- --></A><H3>getResponseComplete</H3><PRE>public abstract boolean <B>getResponseComplete</B>()</PRE><DL><DD><p>Return <code>true</code> if the <code>responseComplete()</code> method has been called for the current request.</p><P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getResponseStream()"><!-- --></A><H3>getResponseStream</H3><PRE>public abstract <A HREF="../../../javax/faces/context/ResponseStream.html" title="class in javax.faces.context">ResponseStream</A> <B>getResponseStream</B>()</PRE><DL><DD><p>Return the <A HREF="../../../javax/faces/context/ResponseStream.html" title="class in javax.faces.context"><CODE>ResponseStream</CODE></A> to which components should direct their binary output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="setResponseStream(javax.faces.context.ResponseStream)"><!-- --></A><H3>setResponseStream</H3><PRE>public abstract void <B>setResponseStream</B>(<A HREF="../../../javax/faces/context/ResponseStream.html" title="class in javax.faces.context">ResponseStream</A> responseStream)</PRE><DL><DD><p>Set the <A HREF="../../../javax/faces/context/ResponseStream.html" title="class in javax.faces.context"><CODE>ResponseStream</CODE></A> to which components should direct their binary output.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>responseStream</CODE> - The new ResponseStream for this response<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>responseStream</code> is <code>null</code><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="getResponseWriter()"><!-- --></A><H3>getResponseWriter</H3><PRE>public abstract <A HREF="../../../javax/faces/context/ResponseWriter.html" title="class in javax.faces.context">ResponseWriter</A> <B>getResponseWriter</B>()</PRE><DL><DD><p>Return the <A HREF="../../../javax/faces/context/ResponseWriter.html" title="class in javax.faces.context"><CODE>ResponseWriter</CODE></A> to which components should direct their character-based output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released</DL></DD></DL><HR><A NAME="setResponseWriter(javax.faces.context.ResponseWriter)"><!-- --></A><H3>setResponseWriter</H3><PRE>public abstract void <B>setResponseWriter</B>(<A HREF="../../../javax/faces/context/ResponseWriter.html" title="class in javax.faces.context">ResponseWriter</A> responseWriter)</PRE><DL><DD><p>Set the <A HREF="../../../javax/faces/context/ResponseWriter.html" title="class in javax.faces.context"><CODE>ResponseWriter</CODE></A> to which components should direct their character-based output.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>responseWriter</CODE> - The new ResponseWriter for this response<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this method is called after this instance has been released<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>responseWriter</code>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -