How to use Dynamic Region in ADF
Hi Friends,
Today we'll learn concept of using Dynamic Region in ADF. 
First of all we must need to know what Dynamic Region exactly is. Dynamic region is used to run multiple
task flows on the same region(Placeholder) according to different-2 conditions.

Ok, Now lets start it :

1.) Create two bounded Task flows containing one JSFF page inside each. Design the page according 
      to your requirement.

2.) Create a Demo.jspx page and drag the first task flow onto it ,it will ask for a bean and provide the bean.
     Remember bean scope must be greater than backing bean scope.

3.) When the bean creation is finished, open the bean and you will see that the method   
      getDynamicTaskFlowId()  gets auto created.

 4.) Now make a String variable in bean and generate its accessors .

 5.) Go to demo.jspx page and drag and drop two action buttons so that on click of button we can run the   
      different task flow(no need to use any action event or action listener).

 5.  Now take the property listener from Component palette and drop it onto both buttons.When you'll drop 
      the property listener it will ask for "from" property, give this field the same value which you gave to   
      String variable in bean for the First Task Flow rest can have different. Below is the code snippet : 

 
6. On Demp.jspx page set the both buttons Partial submit to 'true' and set the partial trigger on region for   
    both buttons id. Here is jspx page code:

    

     Thats It....Now run the page and test it : When you click on first button the first task flow will be invoked 
     and when second button is clicked the second task flow will be invoked.


Happy Easy Codings........


 

Comments

Post a Comment

Popular posts from this blog

How to Show Indicator Text in ADF Input Text

Target Unreachable Bean returned null error