Saturday, September 22, 2018

Partial Page Rendering

Sometimes it is very important to achieve partial page rendering inside any enterprise application, as we cannot always reload the complete page.

While ADF Faces follows the standard JSF event-handling techniques, it also enhances the event handling in two key ways by providing the Ajax-based functionality in the form of Partial Page Rendering (PPR) and a client-side event model.

Below example demonstrates the use of Partial Page Rendering (PPR) technique, you may follow along.

Step 1. Create Fusion Web Application


Step 2:  Connect to HR Database and quickly create CountryVO and RegionVO using Business Components from Table option.


Step 3:  Project structure must now look like the following.



Step 4: Drag view component inside the  adfc-config.xml like below:


Step 5:  Rename view component with the desired name in this case 'home' and double-click to create it.



Step 6: Drag RegionVO1 as ADF Select one Choice and choose Region Name to display.






Step 7: Similarly Drag CountryVO2 as ADF Select one Choice and choose Country Name to display.




Step 8: Select Country Name from Structure Panel and go to Properties, look for Partial Trigger property and click on Edit.



Step 9: Drag desired SelectOneChoice for the RegionVO1 into the right side and click Ok.



Step 10: Bingo!!!! its done!. Right Click on the Page and Run the page.


Try changing the RegionName and see the difference.

Let me know if you have any queries regarding this post.

See you soon.

Most Viewed

Partial Page Rendering

Sometimes it is very important to achieve partial page rendering inside any enterprise application, as we cannot always reload the complete...