webtier@glassfish.java.net

how to catch the exception with ajax request in jsf2.0.2?

From: <webtier_at_javadesktop.org>
Date: Fri, 19 Mar 2010 03:22:10 PDT

how to catch the exception with ajax request in jsf2.0.2?
In the sun jsf imp PartialViewContextImpl class:

....

} else if (curPhase == PhaseId.RENDER_RESPONSE) {

                    PartialResponseWriter writer = ctx.getPartialViewContext().getPartialResponseWriter();

                    writer.startUpdate(comp.getClientId(ctx));
                    try {
                        // do the default behavior...
                        comp.encodeAll(ctx);
                    }
                    catch (Exception ce) {
                        if (LOGGER.isLoggable(Level.SEVERE)) {
                            LOGGER.severe(ce.toString());
                        }
                        if (LOGGER.isLoggable(Level.FINE)) {
                            LOGGER.log(Level.FINE,
                            ce.toString(),
                            ce);
                        }
                    }
                    writer.endUpdate();
                }

...

l see. not catch the exception when render.how can i catch the exception occur when render?
[Message sent by forum member 'wuarron']

http://forums.java.net/jive/thread.jspa?messageID=392715