Thursday, May 13, 2010

JDeveloper 11g PS2: ADF Region Reuse Inside ADF Region

When working with more complex applications, pass request address if it would be very effective for the reuse of areas within another ADF ADF regions. We are of the same region in ADF JSF page, for use by other region ADF. This particular requirement is not unusual for these systems, the region where ADF is shell-based user interface implemented. In such systems, all main screens of ADF regions, sometimes we have to use smaller regions represented within the ADF.
Of course, it was possible to a different region within the region of PS1 in the past ADF ADF JDeveloper 11g Release also included. But this approach has not worked, with the permission ADF Security. propagated to maturity, the security can not be nested regions ADF was, and as a result of these regions were not taken. Situation has now changed - JDeveloper 11g PS2, security is the nested regions ADF propagated correctly.
To take advantage of a nested regions ADF sample application, I upgraded from my previous post - Dynamic Link iterator binding to Relationship Profile for master-detail reuse. Download updated sample - DynamicIterator2.zip. In my previous post I described how to implement Oracle ADF iterators dynamics. Today I am the same concept to show how you can benefit from dynamic-link with the ADF iterator reuse regions.
I extracted fragment into separate compartments of ADF task flow - flow dep. I will use this task as a single flow and also intends to include in the local-fragment (as a region nested):
Inside locdep flow is, current flows dep task with two parameters called. The first parameter is the value that goes through the dynamic binding iterator and secondly, that dep-flow is updated in the case of nested region shows:
Departments fragment contains query component, I make this conditional component. If the fragment is open by itself, the query is made. In nested region, it is made:
Queries for conditional rendering, I'm from Task Flow input parameters and evaluation Expression Language:
Just to remember how dynamic binding iterator has described in previous post, here I am defined iterator dynamic binding fragment departments within the page. You can see when the input parameter is NULL, the top-level profile iterator object will be displayed. Otherwise, if I pass parameters - detail view object instance to be used:
Now we can concentrate on the fragment locations. I have nested for the region within the local services, how to create a JSF page:
By definition of Page Local file fragments, I have the values for flow parameters input task Departments - View the name of the currently selected object and location ID. I need to provide the current location ID, because I want to trigger to refresh nested region:
Now the most important part was not the security, regions in JDeveloper 11g nested PS1, I have to try it now. I enabled the security on the ADF test is applied, users can default user Scott / welcome:
We log into the application:
Router to browse locdep activities are channeled directly into our region departments dep-Flow-Flow Task (because the parameter was fixed departments, see previous post). Query component is present:
When you press the space, the user places in the region locdep flow is navigated (see diagram workflow). We have nested in our region Town - Departments region. nested region leads the detail records for the master table spaces. For the region with the same fragment nested'm departments, such as dep-flow:
If I click somewhere Id place to navigate to sections of dep-flow region, where you can view it object instance for each department is described in detail (such as routes parameter switch):
 

No comments:

Post a Comment