From richfaces-svn-commits at lists.jboss.org Mon Sep 29 06:49:27 2008 Content-Type: multipart/mixed; boundary="===============3474815665194439686==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r10593 - in trunk/docs: userguide/en/src/main/docbook/modules and 1 other directory. Date: Mon, 29 Sep 2008 06:49:27 -0400 Message-ID: --===============3474815665194439686== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2008-09-29 06:49:27 -0400 (Mon, 29 Sep 2008) New Revision: 10593 Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml Log: https://jira.jboss.org/jira/browse/RF-3117 - info about Request Errors and = Session Expiration Handling was added to the Dev.Guide and FAQ = Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-09-29 09:18:4= 2 UTC (rev 10592) +++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-09-29 10:49:2= 7 UTC (rev 10593) @@ -2608,6 +2608,62 @@ ...]]> +
+ + How to handle Request Errors and Session Expira= tion? + = + In order to redefine standard handlers responsible for= processing of different exceptional situations = + you should take the following steps: + + + + + add to your web.xml the follow= ing code: = + + + org.ajax4jsf.handleViewExpiredOnClient + true + = +...]]> + + + + add custom "onError"<= /property>, "onExpire"<= /emphasis> handlers: = + + + + For the detailed description see = + the Request Errors and Session Expiration Hand= ling section of the Developer Guide. + + + = + + Note: + + Note that custom "onError", "onExpire" ha= ndlers = + do not work under MyFaces. MyFaces handles exception by its internals = generating debug page. = + You could use the following code to prevent such behavior: + + + org.apache.myfaces.ERROR_HANDLING + false + = +...]]> + +
How to add cookie in an AJAX Respond? Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2= 008-09-29 09:18:42 UTC (rev 10592) +++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2= 008-09-29 10:49:27 UTC (rev 10593) @@ -1210,7 +1210,7 @@ To execute your own code on the client in case of an error durin= g Ajax request, it's necessary to redefine the standard "A4J.AJAX.onError" method: - The function defined this way accepts as parameters: @@ -1245,7 +1245,7 @@ = - event. + + Note: + + Note that custom "onError", "onExpire" ha= ndlers = + do not work under MyFaces. MyFaces handles exception by its internals = generating debug page. = + You could use the following code to prevent such behavior: + + + org.apache.myfaces.ERROR_HANDLING + false + = +...]]> +