Posts

Showing posts from 2014

Oracle ADF : Dynamic Regions

Image
A good web design should consider the following aspects Page boot-up/ load speed Visually attractive appeal Quicker navigation The first two aspects largely deal with the amount of  picturesque content, styling & UI approach taken. In this post, I am going to deal with "In-Page" Navigation. The above approach helps to keep the end user engaged still being on the same page. So, the question here is, how to achieve it? Oracle ADF provides Regions & Dynamic regions to achieve this. A region is a section of the page that renders, so if we are ought to achieve dynamic updation of region, we need to implement Dynamic Regions - an ADF region where the task flow binding dynamically determines the value of its taskFlowId attribute at runtime. Hope you got the theory, let's check it out... Create an adf application (For the demo sake, I have developed based on static content, not related to any data bound components). Considering the work space s...

Oracle ADF Mobile : Hybrid App Development

It's the era of mobile computing and Oracle has snatched its opportunity with the unveiling of Oracle ADF Mobile. I know, it's been more than a year since Oracle unveiled this, the so-called hybrid framework, never the less its worth exploring. There are quite a few competitors like Adobe PhoneGap, IBM Worklight and Apache Cordova, so what makes this distinguishing?  Commercial vendors like Oracle have taken extra care to set apart this hybrid framework from competitors by adding additional functionality that caters a rich user experience, that’s completely optimized for mobile. It embeds PhoneGap libraries to support device services integration like Gallery, Camera, GPS, Email, Contacts, etc. It supports SQLite DB engine for offline activites. Business logic can be delivered through Java, Javascript or WS. Out of box integration support with OIM. Seamless integrated development experience with Oracle JDeveloper. Same development paradigm as develo...

Oracle ADF : Working with Parameters

Image
Parameters accept and store values and can be very helpful in ADF applications. There are many types of parameters as visualized below. To demonstrate the above scenario let’s develop a ADF application, Scenario: Lets have 3 buttons on a page & on press of each button renders different page fragments by passing the parameters as depicted in above pic. Ø   Create a JSPX page – “Index.jspx” with no bindings, add 3 buttons with action listeners respectively with each action listener having a unique value, say first button has the following value   #{‘a’} stored to #{requestScope.ClickRec}, i.e this translates to ClickRec of requestScope variable storing a value – ‘a’ on clicking first button in laymen’s terms. Ø   As the components on page is not bound to any data controls, no data bindings is created dynamically, so update this by right clicking on the page & create Page Definition and accept the defaults. Ø   Naviga...

Oracle ADF : Consuming Web Service to drive data to UI

Image
The context of this post on Oracle ADF is SOA to ADF integration or Consuming Web Service by creating a Web Service Data Control to display data on UI Page, it’s your take, anyway! To get our hands dirty, let’s get started with following ü   Jdeveloper IDE   (11.1.1.7.0) ü   Oracle DB XE 11G (Up & Running!) ü   WL Servers 10.3.6 (Up & Running!) ü   Internet Explorer 10 (10.0.9200.16384) [Remember, I asked you to take down the WSDL URL in my previous post , that’s right! We are going to use the same WSDL URL & the SOA application deployed earlier is Active on WLS.] Here it goes, Ø   Create an ADF application. Ø   Open up New gallery from Model Project to create a Web Service Data Control as displayed below.   Ø   To the invoked popup, specify a Name & WSDL URL which we noted down earlier.   Ø   Click “Next” to Shuttle the data control operation &...

Oracle SOA : Exposing data using Web Service

Image
Hi folks! Welcome to my new post on Oracle SOA.   This post explains the use of Mediator as a component to expose the data through a Web Service Adapter to outside world, received from DB Adapter. [The WSDL URL obtained later, can be consumed in an ADF Application. Check out this post ] To start with, I have the following resources handy ü   Jdeveloper IDE   (11.1.1.7.0) + SOA Extensions ü   Oracle DB XE 11G (Up & Running!) ü   WL Servers 10.3.6 (Up & Running!) ü   Internet Explorer 10 (10.0.9200.16384) Here it goes, Ø   Create a SOA Application with Empty Composite as below.   Ø   Drag & drop a “ Database Adapter ” from component palette to the External References swim lane as pictured below.     Ø   Click “Next” in the popup invoked to configure the DB adapter.     Ø   Input a Service Name, choose a DB Connection. ...

Oracle ADF: Add a Favicon to Page, Page Template

Image
A favicon, also known as a web site icon, tab icon or bookmark icon, most commonly 16×16 pixels, associated with a particular Web site or Web page. Resources used -           Jdeveloper IDE   (11.1.2.3.0) -           Internet Explorer 10 (10.0.9200.16384) So, how to implement this in Oracle ADF? It’s simple, take a breath there! Ø   Create an ADF Application Ø   Place the favicon image (e.g. used in POC – flower_blue.ico) in the Web Content Root location as depicted in the image below. (FaviconViewController\public_html). For supported image file formats check http://en.wikipedia.org/wiki/Favicon#File_format_support Ø   Set “ smallIconSource ” value equal to “ /flower_blue.ico   ” under Appearance of af:document tag.     Image - 1 Ø   Set the Java EE Application web context root to “ / ” as...