O'Reilly logo

ICEfaces 1.8 by Rainer Eschen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuration

Using AJAX Push in our project needs some special configurations. We have to take a look at the following:

  • Communication mode between a web browser and a web container
  • Scope for backing beans
  • Push server infrastructure

Deployment descriptor

The /src/main/webapp/WEB-INF/web.xml file allows setting the communication mode between a web browser and a web container. We have to allow asynchronous communication and with it, the use of AJAX Push, as shown here:

<context-param>
<param-name>
com.icesoft.faces.synchronousUpdate
</param-name>
<param-value>false</param-value>
</context-param>

As AJAX Push is active by default, it is not really necessary to set this parameter explicitly. But it is a good idea to document that you use it this way for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required