O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

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

Using partial triggers

In order to provide a dynamic and responsive web application and make changes from the server side to the client side, a technique emerged back in 2007 called Ajax that is still being used up to this moment.

In ADF Faces, Ajax is implemented under a different umbrella called PPR. During PPR, the JSF page's life cycle is run only for certain components in the page and doesn't submit the whole page. The best part about it is that you can use PPR declaratively without the need for a single line of code.

In this recipe, we will create two cascading selectOneChoice options, which represent regions and countries respectively; when you change the region, the countries get filtered based on the region selected.

The model of this application ...

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