Saturday 5 January 2013

Making a MDI Application by using the MultiTaskFlow

Multiple Document Interface (MDI) is an application style you can use to open multiple windows (called sheets/tabs) in a single window and move among the sheets. It is a most common thing and used desktop applications. Now we can achieve same by using multi task-flow concept of ADF and customize as per our business requirement.

In ADF Application, we can achieve by using multi task-flow concept and making the Java class with Collections to handle the multiple sheet adding, removing, selection and closing. Please follow the below steps,

  • Create a Java Class of MDI.java & Sheet.java and use the property by using the Collection with wrapper of TaskFlowBindingAttributes and Sheet classes.


  • Create a Page by using the ADF Page Template and include a af:panelTabbed with af:showDetailItem dynamically by using the af:forEach looping.


  • Create a PageDef for Template and include a ‘multiTaskFlow’ tag under the <executables>



  • Include a <definitionFactories> for TaskFlowBindingDefFactoryImpl under the DataBindings.cpx file.



For more details check with sample.

You can download the sample workspace from here.
[Runs with Oracle JDeveloper 11g R2 Update 3 + HR Schema]


How to run this sample?
  1. Create Data Source of ‘HrDS’ under Weblogic Server.
  2. Open an Application and deploy jar for MDIApplication & HrModel projects.
  3. Expand a HrUI and run using the Run.jspx.

2 comments:

  1. Can you give me your mail? I wonder if you could check my source, because It is a copy of yours and doesn't work as expected.

    ReplyDelete
  2. Please ensure you are working the JDeveloper 11g Release 2 and Update 3 and Create a Data Source with name of 'HrDS' in the runnable default server. Even if it is not working, just provide the steps, What you did.

    ReplyDelete