Home Primefaces ExceptionHandler not working when view expired
Reply: 0

Primefaces ExceptionHandler not working when view expired

user814
1#
user814 Published in April 19, 2018, 9:59 am

My code is set up like https://www.primefaces.org/showcase/ui/misc/exceptionHandler.xhtml (only 1 button for ajax "throw view expired" implemented) and when I press that button, the dialog correctly pops up.

p:ajaxExceptionHandler is registered for 2 types, 1) javax.faces.application.ViewExpiredException, 2) java.lang.Throwable

But when I wait until view actually expires and press the SAME button, no dialog pops up. Browser debug tells me the ajax reponse is:

<?xml version='1.0' encoding='UTF-8'?>
<partial-response id="j_id1"><changes>
<update id="j_id1:javax.faces.ViewState:0">
<![CDATA[6471455189255501776:-1615342152081763452]]>
</update></changes></partial-response>

What can go wrong?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.458267 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO