@Override public void endError() throws IOException { wrapped.endError(); }
writer.endError();
@Override public void endError() throws IOException { wrappedPartialResponseWriter.endError(); }
@Override public void endError() throws IOException { wrapped.endError(); }
@Override public void endError() throws IOException { wrapped.endError(); }
@Override public void endError() throws IOException { wrapped.endError(); }
@Override public void endError() throws IOException { wrapped.endError(); }
@Override public void endError() throws IOException { wrapped.endError(); }
@Override public void endError() throws IOException { wrappedPartialResponseWriter.endError(); }
@Override public void endError() throws IOException { wrappedPartialResponseWriter.endError(); }
@Override public void endError() throws IOException { //we use a force close here to fix possible user CDATA corrections //under normal conditions the force close just processes the same //the underlying close cdata does, but nevertheless //it is better to have an additional layer of fixup closeDoubleBuffer(true); super.endError(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public void endError() throws IOException { //we use a force close here to fix possible user CDATA corrections //under normal conditions the force close just processes the same //the underlying close cdata does, but nevertheless //it is better to have an additional layer of fixup closeDoubleBuffer(true); super.endError(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public void endError() throws IOException { //we use a force close here to fix possible user CDATA corrections //under normal conditions the force close just processes the same //the underlying close cdata does, but nevertheless //it is better to have an additional layer of fixup closeDoubleBuffer(true); super.endError(); //To change body of overridden methods use File | Settings | File Templates. }
private void renderAjaxError(PartialResponseWriter partialWriter, Throwable ex) throws IOException { partialWriter.startError(ex.getClass().getName()); if (ex.getCause() != null) { partialWriter.write(ex.getCause().toString()); } else if (ex.getMessage() != null) { partialWriter.write(ex.getMessage()); } partialWriter.endError(); }
private void renderAjaxError(PartialResponseWriter partialWriter, Throwable ex) throws IOException { partialWriter.startError(ex.getClass().getName()); if (ex.getCause() != null) { partialWriter.write(ex.getCause().toString()); } else if (ex.getMessage() != null) { partialWriter.write(ex.getMessage()); } partialWriter.endError(); }
writer.endError(); writer.endDocument();
writer.endError(); writer.endDocument();
/** * Reset the partial response writer. It checks if we're still updating, which may occur when Mojarra is used * and an exception was thrown during rendering the partial response, and then gently closes the partial * response which Mojarra has left open. This would clear the internal state of the wrapped partial response * writer and thus make it ready for reuse without risking malformed XML. */ public void reset() { try { wrapped.flush(); // Note: this doesn't actually flush to writer, but clears internal state. if (updating) { // If reset() method is entered with updating=true, then it means that Mojarra is used and that // an exception was been thrown during ajax render response. The following calls will gently close // the partial response which Mojarra has left open. // MyFaces never enters reset() method with updating=true, this is handled in endDocument() method. updating = false; wrapped.startError(""); wrapped.endError(); wrapped.endElement("partial-response"); // Don't use endDocument() as it will flush. } } catch (IOException e) { throw new FacesException(e); } finally { responseReset(); } }
/** * Reset the partial response writer. It checks if we're still updating, which may occur when Mojarra is used * and an exception was thrown during rendering the partial response, and then gently closes the partial * response which Mojarra has left open. This would clear the internal state of the wrapped partial response * writer and thus make it ready for reuse without risking malformed XML. */ public void reset() { try { wrapped.flush(); // Note: this doesn't actually flush to writer, but clears internal state. if (updating) { // If reset() method is entered with updating=true, then it means that Mojarra is used and that // an exception was been thrown during ajax render response. The following calls will gently close // the partial response which Mojarra has left open. // MyFaces never enters reset() method with updating=true, this is handled in endDocument() method. updating = false; wrapped.startError(""); wrapped.endError(); wrapped.endElement("partial-response"); // Don't use endDocument() as it will flush. } } catch (IOException e) { throw new FacesException(e); } finally { responseReset(); } }
writer.write(", Value:" + error.getParameterValue()); writer.endError(); writer.endDocument(); context.responseComplete();