Enabling Partial Page Rendering(PPR) in ADF.

Thursday, April 10, 2008

For a component to trigger another component to refresh, the trigger component must cause a submit when an appropriate action takes place.On the trigger command component set the id attribute to a unique value. If it is an input component in a form, set the autoSubmit attribute of thecomponent to true. Otherwise, set the partialSubmit attribute of the component to true.

For a component is to be refreshed triggered by another component, it must declare which other components are the triggers.On the target component that you want to partially refresh when the trigger command component is activated, set the partialTriggers attribute to the id of the trigger command component. If the component refresh is to be triggered by more than one other component, list their IDs separated by spaces.

Following three main component attributes are used to enable partial page rendering.

autoSubmit: When the autoSubmit attribute of an input or select component is set to true, and an appropriate action takes place (such as a value change), the component automatically submits the form it is enclosed in.

partialSubmit: When the partialSubmit attribute of a command component is set to true, clicking the button or link causes the page to be partially submitted.

partialTriggers: All rendered components support the partialTriggers attribute. Use this attribute to list the IDs of components whose change events are to trigger this component to be refreshed.

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP