According to this statement in the JavaDoc for the release() method:<br><br>&quot;The implementation must call setCurrentInstance(javax.faces.context.FacesContext)  passing null to remove the association between this thread and this dead FacesContext instance.&quot;<br>
<br>If the call FacesContext.getCurrentInstance() returns null, then the FacesContext for the current thread has been released.<br><br>With that said, I do believe that it would be reasonable to have a getReleased() method to compliment release() as is true of the getResponseComplete() and getRenderResponse() methods for responseComplete() and renderResponse().<br>
<br>-Dan<br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 8:56 AM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div>
I notice that a lot of places in the JSF code call assertNotReleased(facesContext), but is there any way to tell if a context has been released?<br>
<br>
The only method i see is &quot;release()&quot;<br>
<br>
It would be useful to be able to determine the state of this field. Feelings?
</div>

</blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>