This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 21, 2011, 8:21 AM
2 Posts

Xpages custom error page

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: error handling,error
  • Replies: 2
I have created a custom error page to display to the user. I added two buttons that the user can click to 'Go Back' or 'Go to Home Page'. When I preview the error page the buttons work, and also when I redirect to the page on a handled error. But when the page displays on an unhandled error the buttons don't work. Can anyone help?
Jun 22, 2011, 7:32 AM
261 Posts
Re: Xpages custom error page
Hi,
 
Not sure if this will work, but did you try setting the "Do not validate or update data" or "Process data without validation" options on the button/ link events?
 
Mark
Jun 23, 2011, 8:36 AM
122 Posts
Re: Xpages custom error page
The buttons aren't working when you get to the error page from a partial refresh, right? Sorry, I haven't got round to blogging about this one.
 
When the error page is loaded from a partial refresh it just writes the content from your XPage to the browser. My understanding is that no XPages events (client-side or server-side) are passed to the browser if the error page was loaded from a partial refresh. If the error page is loaded from a full refresh, everything will work fine.

What you need to do is manually code anything with events as traditional HTML, so
< button onclick="window.location.reload()">Refresh< /button>
 
It may be easiest to create your error page as normal, preview it, view the source, then replace your xp:button or xp:link elements with the HTML from the page.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal