icefacesicefaces-3

How to customize internal server error popup?


i want to replace the internal server error popup with forwarding the user to an error page, how to do that ?


Solution

  • in your web.xml put this context params:

    <context-param>
      <param-name>com.icesoft.faces.connectionLostRedirectURI</param-name>
      <param-value>connectionLost.iface</param-value>
    </context-param>
    
    <context-param>
      <param-name>com.icesoft.faces.sessionExpiredRedirectURI</param-name>
      <param-value>connectionLost.iface</param-value>
    </context-param>