Pages

Friday, January 14, 2011

ADF UI - How to use af:iterator to implement forms

Using <af:iterator> to implement forms

In this post, I am going to illustrate how you can use the <af:iterator> to implement forms. You can achieve the same by following these steps :- 


1. First of all you need to create the required bindings. Drag and drop the VO as table to create the binding. 
Table code - 

Following bindings got created -

 

2. Now drop <af:iterator> from the component Pallete and specify the values for properties  value, rows and var copying from <af:table> that you dropped.

<af:iterator id="i1" value="#{bindings.EmployeesVO1.collectionModel}" var="row"
                  rows="#{bindings.EmployeesVO1.rangeSize}">
3.Now, copy the attributes from table (which are under each column) into the <af:iterator> . Then cut the table code ( don't delete it from structure window or design to protect the bindings ).


4. Arrange all these attributes in your preferred layout and run the page. That's it. You'll see each VO row data one by one. If you've dropped it as editable fields, you can edit them and Commit. Here we are just displaying them.




Application can be downloaded from here .

Thursday, December 23, 2010

Oracle SOASuite Basics

SOA Suite Components
  • Mediator and Service Bus—Disambiguation
Similar to Mediator, Oracle Service Bus also performs mediation activities in Oracle SOA Suite.While both the Mediator and the Service Bus can perform such tasks as interface and data mapping, routing,
and filtering, their scopes are very different: the Mediator is a component that performs intra-composite mediation, to connect components within a given composite. The Service Bus on the other hand is in charge of inter-composite mediation, that is to say that it connects differentcomposites together—and while doing that, it can also carry out other fundamental tasks of a service bus such as service virtualization, protocol translation, service pooling, and so on.


  • Relationship of Applications, Projects, and Composites in JDeveloper
A JDeveloper (JDev) application contains one or more JDev projects. When you are developing SOA technologies, a JDev project is equal to a composite application.

CreditCardApplication
|
|---- JDev Project ( CCValidation) ---- SOA Composite (CCValidation )
|
|----JDev Project ( AccountRegistration) ---- SOA Composite ( AccountRegistration )


  • About the Adapter Wizards
Most adapter wizards follow a common flow explained in below diagram -

 
First give name to the new adapter. Then establish a connection to the target system: it could be a database, some application—or even just a file system (in which case, it is not really a connection, but simply a path). After this, select an operation—the operations that are offered by the wizard will of course be different for each target system: a database will offer the expected SQL operations
(select, insert, delete, and a few more), a file system will be read or write, and so on. Finally, in the last stage,  specify the objects on which you are going to be operating: database tables, specific files, or directories in the file system, records in an application and so on.


Will add more to it.

Saturday, December 18, 2010

Understanding Taskflow Train

Understanding navigations in Taskflow with train

This post illustrate different kind of manipulation with navigation in Taskflow with train.

Create Taskflow with train
A taskflow with train can be created by selecting CreateTrain checkbox in CreateTaskflow wizard.

Add train component to each train stop view.



Change the label for the train stop in the train component -
Select the train stop (view activity) in the diagram and look at the property inspector, choose the Train Stop tab and set the value of display-name property to a string or an EL Expression



1. Simple Train -

Added a input parameter skipValue to Taskflow for later use. Value passed is the name of viewActivity.

Use skip property of train stop to stop access to a viewActivity of the Train -
 Using the taskflow parameter to update the skip property of activity to skip the train sequence.




By default a train is sequential. For a non-sequential behaviour pass modify the sequential property of the TrainStop. 


Drag and drop the taskflow as a region on page and analyze the output.
Navigation to stview4 can be done directly. It's no more sequential. 
Also stview3 is skipped in train navigation. 


2. Complex Train - 

How to call a view activity between two train stops -

Created a taskflow with train having three view activity.  Here we are trying to make a method call when navigating from view1 to view2 .

Drag and drop wildCard Control Flow rule and method. Use control flow case as mentioned in below diagram. 



ctView1 contains a button with action "addText".


For direct navigation without calling method use train. To invoke methodcall use button with action "addText".


Application can be download from here.