public override void encodeChildren(FacesContext context) { System.Diagnostics.Trace.WriteLine("encodeChildren"); // reset _facesContext if changed between action and render phases (such portal). _facesContext = null; IHttpHandler jsfHandler = EnterThread(); bool wasException = false; try { if (!context.getResponseComplete()) { if (IsCallback) { string result = ProcessGetCallbackResult(_callbackTarget, _callbackEventError); HtmlTextWriter callbackOutput = new HtmlTextWriter(Response.Output); callbackOutput.Write(result); callbackOutput.Flush(); return; } // ensure lifecycle complete. if (!IsLoaded) { ProcessLoad(); RestoreValidatorsState(_validatorsState); } if (!IsPrerendered) { ProcessLoadComplete(); } RenderPage(); } } catch (Exception ex) { wasException = true; HandleException(ex); } finally { try { if (!wasException) { ProcessUnload(); } } finally { ExitThread(jsfHandler); } } }
public override bool getResponseComplete() { return(_facesContex.getResponseComplete()); }
public override void encodeChildren (FacesContext context) { System.Diagnostics.Trace.WriteLine ("encodeChildren"); // reset _facesContext if changed between action and render phases (such portal). _facesContext = null; IHttpHandler jsfHandler = EnterThread (); bool wasException = false; try { if (!context.getResponseComplete ()) { if (IsCallback) { string result = ProcessGetCallbackResult (_callbackTarget, _callbackEventError); HtmlTextWriter callbackOutput = new HtmlTextWriter (Response.Output); callbackOutput.Write (result); callbackOutput.Flush (); return; } // ensure lifecycle complete. if (!IsLoaded) { ProcessLoad (); RestoreValidatorsState (_validatorsState); } if (!IsPrerendered) ProcessLoadComplete (); RenderPage (); } } catch (Exception ex) { wasException = true; HandleException (ex); } finally { try { if (!wasException) ProcessUnload (); } finally { ExitThread (jsfHandler); } } }