Dear @ivyTeam ,
I am currently using Axon Ivy Designer/Engine v.10.0.19 and I want to customize the ViewExpiredException error page or perhaps catch this error if possible.
Use case:
- Whenever users click on the Back Navigator on the browser, they will face the ViewExpiredException and the default one is unfamiliar to them. Therefore, the customization for this error page is needed for our application.
- We want to automatically redirect them to the Landing page (the first page after they click on the start link).
Some solutions that I have already tried out:
- Catch ViewExpiredException:
With Error Boundary Event
:
Please correct me if I am wrong but I used Error Boundary Event
with Catch All
to catch this exception but I saw in the logs, that it is logged as an INFO level and the event seems not to be working.
With <p:ajaxExceptionHandler/>
:
I tried this implementation based on the guide in this reference but it seems to be working only with the ajax request (when I triggered the ViewExpiredException manually).
- Customize the error page and configure it via
web.xml
:
I followed the guidelines in this reference. It worked fine, but in order to customize it, I had to use JSF expression related to Ivy features, some Javascript, and CSS from an external library.
So my questions are:
- Can the first solution work to adapt to my requirements? (If I handled it incorrectly).
- If not, then for the second approach, which Ivy features are supported on the error page (except
ErrorPageMBean
)? I want to get a start link of the last process, so which ones will be helpful to do it?
- How can I use an external library to style it? Will CDN work?
Please help me to clarify my concerns. I am appreciated 🙏!
Kind regards,
p.nerd