Globally setting the change event policy for all data bindings

The 11.1.2.0.0 release of ADF has added a new configuration entry in adf-config.xml file to globally set the default change event policy for the all iterators in the application. Of course, developers can override the default setting at each binding level.


 <adf-config xmlns="http://xmlns.oracle.com/adf/config"   
 ...  
  <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">  
   <defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true"/>  

Comments

  1. Can you explain with an exapmle?

    ReplyDelete
  2. Please see Fusion Dev Gide.
    http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/adf_lifecycle.htm#ADFFD22893

    Copying relevant content for your ref...

    When you create a form, setting up PPR to work for all the components in the form
    can be time consuming and error prone. To alleviate this, you can set the
    changeEventPolicy attribute to ppr on value bindings. Doing so means that
    anytime the associated component’s value changes as a result of backend business
    logic, the component will be automatically rerendered. You can also set an iterator
    binding’s changeEventPolicy to ppr. When you do this, any action or value
    binding associated with the iterator will act as though its changeEventPolicy is set
    to PPR. This allows entire forms to use PPR without your having to configure each
    component separately.

    ReplyDelete

Post a Comment