Tuesday, September 4, 2012

Some useful WCP and ADF web.xml entries

I have had to add a couple of change to the web.xml file for 2 WebCenter Portal customers now so I thought I should share what changes I regularly have to make.

  1. The annoying session warning and expiry dialog popups.
    We don't want to tell our anonymous page viewers that their session will expire. Ever. Anonymous folk don't expect to have a session established in the first place and will displeased to be told that their session will expire really soon. Now you can set a timeout period in the web.xml file but I prefer to disable this feature once and for all and here is how. Set the warning to the value of -1.

        <context-param>
        <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
        <param-value>-1</param-value>
      </context-param> 

  2. The spinning "O" splash screen logo gets on my nerves. Nice to see which websites are ADF or WebCenter based but web customers do not consider they are using an "app" merely they are browsing your site. Get rid of it. How? Easy. Turn the splash screen value off.


      <context-param>
        <description>Determines if the Splash screen is shown</description>
        <param-name>oracle.adf.view.rich.SPLASH_SCREEN</param-name>
        <param-value>off</param-value>
      </context-param> 

Hope that helps some of you out.
Enjoy.