Monday May 11, 2015

IFrame in ADF Application – Menu and Show Page in IFrame by Rohan Walia

clip_image002

ADF Applications uses power of reusable task flows to be embed as regions in the page, which can be refreshed based on the use cases.
But there are some requirements by the clients which still emphasize on using Iframe to display different applications inside one application.
Suppose there is a requirement where there are 3 applications A,B and Consuming Application. All three applications A,B and Consuming needs to be deployed as separate EAR(Applications) and Consuming App needs to display the A and B Applications pages inside its main page.
Portal architecture can also fit for this requirement but if there is only ADF you need to implement this, the only choice to do is using Iframe.
In this post I will explain you how we can create a menu and show another application in IFrame in ADF Application.
We will use af:inlineFrame component to achieve this. Below is the use case.

The above diagram is for consuming application and Links in the menu (TestPage1 and TestPage2) refers to another application and the pages on click will open in right hand side inside Iframe.
Lets get started.
Created an ADF Application which has two pages. This will be deployed before the Iframe Application. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Sunday May 10, 2015

Working with af:iterator and af:forEach programmatically (Populate values using POJO from Managed Bean) by Ashish Awasthi

clip_image001This is another post about Working programmatically with ADF (populating af:iterator and af:forEach programmatically )
previously i have posted about populating af:iterator and af:forEach using ADF BC and binding layer to show master-detail relation
Implementing master/detail tree relation using af:Iterator and af:forEach for better UI designs - Oracle ADF
For this post i am populating employee name and it's department name using List datastructure ,to get and set value of attributes , created a java bean class , it has 2 variable for both attributes
Next step is to create a managed bean to populate data in af:iterator and af:forEach , this managed bean makes use of

EmployeeDet

java bean class to add data in same format for all items of iterator and forEach. A List data structure is used to pass all values to iterator. See code of managed bean  Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Saturday May 09, 2015

Dynamic Taskflow with conditional activation by Vinay

clip_image001Use Case – How dynamic task flow activated conditionally.

Implementation - We have two ADF application .One is consumer application which have two task flow

Now we have consumer application which show no task flow on load.Task flow will be shown on click of button .If you click task flow 1 then tf1 will be called and vice versa.Till the button is clicked neither tf1, nor tf2 wud be executed.

Create Producer application-

Create an new ADF application. Create two new task flow as Sample1TF and Sample2TF as below -

Now in each task flow drag drop and view activity and Sample1PF in above screenshot.Same steps need to be done for Sample2TF. Drag drop again an view activity as Sample2PF.jsff

Sample2PF.jsff will be like this Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Friday May 08, 2015

ADF Faces 12c Components Demo and Test Automation by Wilfred van der Deijl

clip_image002You might have noticed that I am working on a series of blog articles on using Selenium to automate testing of Oracle ADF applications. This includes work on a little framework to make this easier and a set of sample JUnit tests against the public Oracle ADF Faces 12c Components Demo.
Getting the Faces 12c Component Demo running with test automation had some challenges. I wanted to write them down here in case somebody wants to try the same. It starts by downloading the Oracle ADF Faces Components Demo from OTN. This also includes instructions on how to run this application in your integrated weblogic server, but those instructions have some caveats and are for JDeveloper 11g, not version 12c. Please follow the instructions below as an alternative (I've marked the differences with the normal Oracle instructions and included screenshots at the end).
In the end this needed more work than I expected, so I offer the fixed version for download. If anyone from Oracle feels that this is a problem please contact me and I'll remove the download and you can follow the instructions below to create your own fixed version.

Download the ADF Faces 12c Components Demo WAR file, but don't unpack it.

Start JDeveloper 12.1.3

Instructions updated from 11g: Choose File > From Gallery from the menu to create a new application. Select General > Applications in the tree and select Custom Application as application type and press Ok.

In the Create Application dialog type adffacesdemo as the application name, select a directory, leave the rest of the options alone and press Finish. This creates new application workspace and project.

Instructions updated from 11g: The default created project is not needed and you may delete the project. Right click it and select Delete Project. In the subsequent dialog choose to not only delete the project form the application but also delete it from disk.

Instructions updated from 11g: In the now empty workspace choose File > From Gallery from the JDeveloper menu. In the list of items select Projects and on the right hand side Project from WAR and press Ok. In the next dialog provide a name for the project, e.g. adffacesdemo, and keep the directory information. On the second panel, use the file browser to select the downloaded ADF Faces demo WAR file and finish the wizard.

Double click onto the project node to open the project properties and select the Run > Debug > Profile option. Press the Edit button and select the Tool Settings. In the Before Running section, uncheck the Make Project and Dependencies option and close the dialog pressing Ok. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Thursday May 07, 2015

Export table as XML file in ADF by Waslley Souza

clip_image002Since I wrote about how to export table to Excel in Oracle ADF, it has been one of the most read blog posts. I know that the export of data is an important feature in an application, this way, I will show how to export rows (all or some) of the table as an XML file.

Download the sample application: ADFXMLApp.zip.

Create a new ADF application that will use data of employees.

Go to EmployeesView View Object and generate the View Object Implementation Class.

Copy the following code inside EmployeesViewImpl class. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday May 06, 2015

ADF Buch (ADF Book) free download

The German ADF community was established in 2009. Since then the community collaborated intensely and provided a lot of German content on the topic of ADF.

clip_image002A selection of these contributions that has originally been published in the period of 2010 to 2014 was put together by a small team (Oracle and partners supported by the DOAG) into the so called "ADF Buch". The ADF Buch contains articles, talks and workshop tutorials regarding the Oracle Application Development Framework (ADF) provided on a total of 1.400 pages mainly in German language. 70 single contributions by 40 authors offer a huge amount of proven knowledge and cover the whole area of ADF including the Mobile Application Framework (MAF).

In the last chapter the contributing persons and companies are presented in short profiles.

The ADF Buch is available for download free of charge as a pdf file (100 MB, fast download).

More details regarding the ADF Buch.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Tuesday May 05, 2015

Deploying ADF application in Oracle Cloud by Waslley Souza

clip_image001Have you ever thought about run your ADF application on cloud? In this blog post I will show how to deploy local database tables and ADF application to Oracle Cloud using JDeveloper 11g. I would like to thank to my friend Jürgen Kress that gave me an Oracle Cloud’s licence. If you want you can get a free trial here: Oracle Cloud PaaS & SaaS Trials.

Each Oracle Java Cloud Service instance must be associated with an Oracle Database Cloud Service instance that hosts the schemas required by JRF. This way, when you request an Oracle Java Cloud Service, you will receive an Oracle Database Cloud Service Instance too.

Before you start to create your ADF application, you need to download and install JDeveloper 11.1.1.7.1 for Java and ADF deployment on Oracle Cloud.

Download the sample application: ADFCloudApp.zip.

I created a simple ADF application called ADFCloudApp that manages data of employees.

ADFCloudApp uses “EMPLOYEES” and “JOBS” tables, so we need to deploy these tables to cloud.
In the main menu, choose View > Database > Database Navigator.
In the Database Navigator window, right-click the Cloud Connections node and create a new Cloud Connection. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Monday May 04, 2015

ADF Masterclass 2015 by Lucas Jellema

This repository contains the source code for the demonstration for the ADF Masterclass 2015 - initially presented in Dubai during the Expert Summit. Get the training material here.

clip_image002

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday Apr 22, 2015

Deploy ADF Library Jar as shared library and refer it from Consuming App by Rohan Walia

clip_image002In this post I will explain a way to create an ADF application consisting of task flows as ADF Library jar and deploy it as shared library and then refer it in your Consuming Application. In this scenerio, we will not be creating a WAR, rather we will be deploying ADF Library Jar as shared library.
In this case we dont need to create weblogic.xml . We will use weblogic-application.xml which is already there in META-INF folder when we create ADF Application.
Created an ADF Application TaskFlowFirstApp.
The TaskFlowFirstApp is just having a TaskFlow with one fragment which displays Departments table out of DepartmentsVO.

The Task Flow application is deployed as a ADF Library Jar.  While creating the deployment profile for ADF Library Jar, need to add the MANIFEST.MF File like below. Read the complete post here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Tuesday Apr 21, 2015

Custom selection listener for af:listView, Invoke selectionListener programmatically by Ashish Awasthi

clip_image002In the last post (Better UI for data collection using af:listView, Enable selection in ADF Faces List component ) about af:listView, we saw that how can we present data collection in a better way using af:listView and enable selection using EL (same as used for af:table)
Now in this post i will describe about defining custom selection listener for af:listView
Suppose you have to do some task on selection of an item in list other than making it current row, for this you have to override default selection listener and define own custom selection listener in managed bean
So next step is to define a method in managed bean for handling selection event of af:list view

  • Select af:listView, goto properties and click on edit menu of selectionListener property and create a method in managed bean Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Monday Apr 20, 2015

Custom Login Page using Login Bean in ADF by Rohan Walia

clip_image002In most of the Oracle ADF Applications, applications have a customized login page which is specific to the application. While configuring ADF Security, it generates a default Login and Error page which is good for testing the environment. But for actual applications , Customized Login page is required for the application. In this post we will be looking at it.

Use Case
Creating a customized login page and login the user programmatically using Managed Bean. Lets get started.
Created a simple ADF Application CustomLoginApplication.
It consist of two JSPX pages. Custom Login and Landing page. Below is the code for custom login page. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Sunday Apr 19, 2015

Using ADF BC Declarative Built-in Rules (Part 9 of 10): Script Expression validator by Antonis Antoniou

clip_image002The last set of validators consist of the "Script Expression" validator and the "Method" validator which can be defined either at the entity level or the attribute level to validate either the entire entity object or a specific entity attribute. The "Script Expression" validator enables you to validate either the entire entity object or a specific entity attribute using a Groovy expression that returns either true, meaning that the validation is successful or false to define that the validation has failed.
The "Script Expression" validator has some very interesting characteristics which we will see in practice using an example by Frank Nimphius
I will be using the HR schema and the employees table to define an attribute level validation using a "Script Expression" to define a departmental salary budget and to ensure that the cumulative salary of employees per department does not exceed their respective departmental salary budget.
I have created an ADF Fusion Web Application and created the basic business components that I will be using in this demo; two entity objects based on the Employees and Departments HR tables, default view objects based on the two entity objects and a default application module. Read the whole article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Saturday Apr 18, 2015

JpsAnonymousRoleImpl Issue for Custom Login page Using Managed Bean in ADF by Rohan Walia

clip_image002

While implementing Custom Login page using Bean Custom Login Page using Login Bean in ADF, once you do all the steps and run the login you get a nasty exception below:
This example was created using Jdev 11.1.1.7

oracle.security.jps.JpsException: java.lang.IllegalArgumentException: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl

Hmm we did all the steps correctly but face this exception while running the CustomLogin Page.
So while troubleshooting the problem, figured out that there is some problem with jazn-data.xml.
First lets removed the annonymous-role which is been given to CustomLogin.jspx.

Now if we again add the anonymous role see below what is there. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday Mar 18, 2015

Uploading and showing image file from absolute server path ADF by Ashish Awasthi

clip_image001

This is another post about file handling in ADF. Previous post was about uploading and downloading any type of file from absolute server path
See-
Uploading and downloading files from absolute server path in Oracle ADF (12.1.3)
This post is specifically about handling image files, uploading an image file to server path and immediately show it on page using af:image component
So here i am using Jdev 12C (12.1.3) , see step by step implementation

Create a fusion web application and a page in viewController Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Tuesday Mar 17, 2015

Custom Exception Handling in ADF – Model Layer Generic Framework Design by Rohan Walia

clip_image002I have observed that there are lot of users who asks questions on OTN and have problem in designing the custom generic exception handling framework. So in this and next some of the posts I will be describing how we can lay down a generic way to report custom exceptions to the page. These custom exceptions may be mostly for Business Specific errors for which we need to display a custom user friendly message on the page to the user.

In this post we will be seeing how we can customize the error on Model layer and take error messages from a resource bundle defined in the application.

Lets get started. We will first create a generic framework project where we will add exception handling related classes. We give it a name as FrameworkUtil. Framework util project will be dependent on model project from where custom Exceptions will be thrown in the enterprise applications.

First lets set up FrameworkUtil project - ADF Model Project

Created an ADF Model Project with below package structure. Added a resource bundle ErrorBundle.properties which will be having all the Business Errors which can be thrown from the applications model layer.  These errors will be in key value pairs in Error properties file. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
26
27
28
29
30
31
      
Today