Developpement Parameters

This part describe all the parameters which can be used during the development stage.

Activate The JavaScript console

The Javascript console is displayed inside the browser window at development time. It displays client-side messages that show the application progress and propective errors. 


To display the JavaScript console, follow these instructions : 


In the web.xml add the following lines (context parameters) :

     

<...web-app> 

    ...

       <context-param>

            <param-name>org.rcfaces.renderkit.html.client.DEBUG_MODE</param-name>

            <param-value>true</param-value>

      </context-param>

 

      <context-param>

            <param-name>org.rcfaces.renderkit.html.client.ENABLE_LOG</param-name>

            <param-value>true</param-value>

      </context-param>

 

      <context-param>

            <param-name>org.rcfaces.core.client.DEFAULT_LOG_LEVEL</param-name>

            <param-value>debug</param-value>

      </context-param>

    ....

</web-app>

 
In jsp file :

     

<vh:javaScript requiredClasses="f_consoleAppender" />

 
The console is displayed in the browser window (top right corner) :



Disable cache

These options allow to disable caching of generated resources on the server and the client. It is useful when debugging custom javascript and stylesheets. We strongly advice to disable caching on the client sider at development time. 

  
Name Default Description
org.rcfaces.renderkit.html.NO_CACHE False Disable cache for Stylesheet and Javascript servlet
org.rcfaces.renderkit.html.JSP_DISABLE_CACHE
False set tag META HTTP-EQUIV cache-control and pragma to no cache.This directive indicates cached information should not be used and instead requests should be forwarded to the origin server. And Set EXPIRES to 0 that may thus be used to force a modification check at each visit.
org.rcfaces.renderkit.html.javascript.REPOSITORY_DEV_MODE
False Regenerate javascript repositories for each request.
org.rcfaces.core.NO_CACHE
False Change HTTP META Tag like JSP_DISABLE_CACHE but int servlet response. 
org.rcfaces.core.contentStorage.DISABLE_CACHE
False Disable cache of the content storage servlet.