Thursday Sep 03, 2015

ADF Application Event Listeners – Part II by Red Mavericks

clip_image002In my previous post  ADF Application Event Listeners – Part I I have focused in some of the ADF applications event listeners that we can listen and how to do it. In this post I will show you some examples of data that you can get from those event listeners and in some cases rewrite it.

HTTP Session Events

After application session is created the sessionCreated method is triggered. From the HttpSessionEvent input parameter in the same method you are able to access data from these classes:

· servlet.http.HttpSession

· servlet.internal.session.MemorySessionData

· servlet.internal.session.MemorySessionContext

· servlet.internal.WebAppServletContext

For internal classes is not recommend to make any change on them, however, you are able to access it for your own purpose.

In order to get these previous classes you just need the following: 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 Aug 03, 2015

Responsive UI Support in ADF 12.1.3 by Andrejus Baranovskis

clip_image002Responsive UI is a big deal nowadays, when enterprise applications should run on different platforms and devices. Often customers prefer to render simpler functionality screens for mobile devices and give full data entry access only when accessing through regular Web browser on the computer. ADF provides support for this, you can implement responsive UI designs relatively easy, check informative blog post from Shay Shmeltzer - ADF Faces Responsive Design - 12.1.3 Update.
I would suggest to think about responsive UI design from the start, it very much depends on functionality your application offers. It is good idea to start from the template and define facets for various layouts. But this is not only about layouts, you may prefer to render editable forms on large screens and on mobile devices to show only charts for quick overview. I'm going to demonstrate, how you could switch between different regions in ADF UI, depending on current resolution. Download sample application here - ADFResponsiveUIApp.zip.
This is how it works, I'm using iPad simulator, but same would be true for the regular browser display on smaller screen resolutions. Web page displays region with editable columns in horizontal view and same page displays different region with read-only list in vertical view:

Similar to Shay's sample, there is a template implemented with two facets (each for different layout): 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 Aug 02, 2015

Programmatically Select all values in ADF BC based selectMany (af:selectManyCheckbox, af:selectManyChoice, af:selectManyListbox, af:selectManyShuttle) component by Ashish Awasthi

clip_image002

Previously i have posted a lot about component that supports multiple selection in ADF Faces (af:selectManyCheckbox, af:selectManyChoice, af:selectManyListbox, af:selectManyShuttle)
- Multiple Selection in ADF Faces
This post is about selecting all values in a component programmatically on a event like button click, value change event etc.
Note that this post is designed for ADF BC (viewObject) based components , to set values in bean based component check this-
Programmatically populate values in ADF Faces multiSelect component (af:selectManyCheckbox, af:selectManyChoice, af:selectManyListbox, af:selectManyShuttle)
So for this i have just dropped Departments viewObject as multiSelect component on page
(af:selectManyCheckbox, af:selectManyChoice, af:selectManyListbox, af:selectManyShuttle)

Page bindings section looks 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

Saturday Aug 01, 2015

Load More Scroll Policy for ADF 12c Table and Range Paging by Andrejus Baranovskis

clip_image002

There is a new scroll policy for the table component in ADF 12c. This new policy is called - load more. I think it gives good potential, it allows to reduce access load on heavy tables. In ADF 11g we are implementing similar approach with RowCountThreshold = -1 setting, this is preventing full scroll at once (How To Disable SELECT COUNT Execution for ADF Table Rendering). Load more is better, it integrates with VO Range Paging and allows to configure maximum number of rows present on the client.
New scroll policy is configurable directly on the ADF UI table component, as a property:

Load more works based on configured Range Size for the iterator in the bindings. In my example, I have set it to be 15, this means there will batches of new rows added in the groups of 15 elements: 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 Jul 31, 2015

https://soacommunity.wordpress.com/2015/07/31/bpm-12c-advanced-error-handling-and-recovery-part-1-by-antonis-antoniou/

clip_image002In a SOA architecture there is often a need to create asynchronous services. As a simple example imagine a workflow approval process. In such a case the approval process can run from minutes to weeks, before the final approval returned back to the client. This is a typical example of an asynchronous service. So when a platform like Oracle SOA Suite is involved the implementation of an asynchronous service  is a quite easy task to do. However when developing such a service manually it is a challenging task. The primary challenge in this scenario is the correlation between the request from the client and the response from the service. In more detail the service have to notice at a minimum the

  • URL of the client
  • a unique identifier for the request (correlation id)

After the service successfully processed the request it has to use this information to build the response and send it back to the client. There exists a web service standard used for correlation: WS-Adressing.

When developing an asynchronous web service manually the developer has to deal with a lot of requirements and standards. Edwin Biemond wrote a nice blog about building a simple asynchronous web service with JAX-WS.

But there exists an alternative using Oracle Fusion Middleware. In the documentation there exists a book about creating Infrastructure web services. In detail this means buildung web services with Oracle ADF. When developing an asynchronous web service according to this guide, Oracle prepares the infrastructure for correlation of the request and response. The developer are able to concentrate on developing the business logic for the service. The correlation of request and response is automatically provided by the infrastructure. So afterwards the preconditions and the general steps are described in more detail.

Preconditions

The preparation of the infrastructure for asynchronous web services consist of creating a request and response JMS queue in WebLogic Server. The default queue names are as follows:

  • Request queue: oracle.j2ee.ws.server.async.DefaultRequestQueue
  • Response queue: oracle.j2ee.ws.server.async.DefaultResponseQueue

It is also possible to change the names of the queues. In addition this queues can be used in a cluster setup as well. Some best practices when using this queues also provided in the documentation. The installation is quite easy. It is only necessary to apply the template oracle.jrf.ws.async_template_12.1.3.jar ($ORACLE_HOME/oracle_common/common/templates/wls) when creating a new WebLogic domain. An existing WebLogic domain can also be extended by applying this template. 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 Jul 30, 2015

How to Apply New Label Text in MDS Customisation by Andrejus Baranovskis

clip_image001It may look simple, but really is not obvious how to apply new label text for the ADF BC attribute or UI component through MDS customisation. It is simple, if such label text already exists in the core bundle. If you need to create new label text in the customisation and use it - this becomes a bit tricky. Well, as usual - I'm going to explain how you could solve such task. You should read more about MDS customisation setup in ADF - MDS Seeded Customization Approach with Empty External Project.
Core application - mds_label_cust.zip, contains one label for First Name VO attribute. The requirement is to customise core application and add label for the Last Name VO attribute, without changing anything in the core. For this purpose, we need to create different JDEV application - extension, configured with shared library deployment profile. Here you could simply create new properties file. We are going to use this application to deliver additional components for the core. Keep in mind - core application must be configured to use this library. Add label for Last Name VO attribute, in the properties file located in the extension: 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 Jul 29, 2015

Create and set clientAttribute to ADF Faces component programmatically to pass value on client side JavaScript by Ashish Awasthi

clip_image002This post is next in series of "Working with ADF Faces Components programmatically"
So this post is about creating client Attribute, applying it to component and setting it's value programmatically
this requirement comes in picture when user is dealing with dynamic layout means components are created programmatically at run time and it is not possible to apply clientAttribute and other properties declarative
In this i am extending my previous post -
Apply Client/Server listener to programmatically created components, apply JavaScript to ADF Faces components at run time
In previous post i have described about applying client listener and server listener programmatically
here we will see how to pass a variable value to java script function using client attribute
You can read more about af:clientAttribute here
From oracle docs-
The clientAttribute tag specifies the name/value for an attribute which will both be made available both on the server-side (Faces) component as well on on the client-side equivalent. This tag will be ignored for any server-rendered components, as it is only supported for the rich client. ClientAttributes are not synchronized to the server since unknown attributes from the client are not synchronized to the server.
Lets' see how we can do this ,It's simple just check this code 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 Jul 28, 2015

ADF 11.1.1.9 Goodies – Conveyor Belt Component and Alta UI by Andrejus Baranovskis

clip_image002It doesn't seem to be announced, but newly released ADF 11.1.1.9 is shipped with Alta UI support. All you need to do, is to set alta skin name in trinidad config file. This enables applications running on ADF 11g platform to leverage new Oracle UI layout and to be prepared for ADF 12c upgrade. Besides Alta UI, there are several new UI components, one of them is Scrollable Bar (ConveyorBelt) - Displaying Components in a Scrollable Bar. This is simple, but quite useful component - I'm going to demonstrate how it works. Conveyor Belt is able to render elements horizontally or vertically. This is perfect component to render key information, user could select one of the items available on the belt and get more info fetched. This is how it looks like - conveyor of employee pictures with first/last names, rendered in the vertical belt on the left:

If there are more items in the conveyor belt, than could fit into visible UI part - user could scroll (right/left and down/up). Here I scroll down and select another employee, his detail data is displayed in the main section: 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 Jun 28, 2015

Better UI -Show jQuery notification message (for error, warning, info) in Oracle ADF by Ashish Awasthi

Another post about using jQuery with ADF Faces , this post is about showing a notification message using jQuery in your ADF Application
Normally we use default FacesMesage to show error, warning and info messages in ADF
clip_image001here i am using jQuery growl library , you can download files from Growl : jQuery Informative Messages Plugin
Let's see how to integrate this library with ADF Faces, you will get two files from above link
one is JavaScript file (jQuery script) and other one is CSS file (style-sheet for notification UI)
Add both files to viewController project under Web Content now add reference of both files (JS and CSS) in page and also jQuery library to execute growl script. 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 Jun 27, 2015

ADF Logging in Different Applications Deployed on Managed Server by Rohan Walia

clip_image002There are many detailed useful blogs on ADF Logging which provide full details on understanding the details and how to implement and configure it.
This post is for my future reference as how to enable/configure ADF Logging for multiple applications deployed on Weblogic Managed Server.
Use Case : Enable ADF Logging for multiple applications deployed on Weblogic Managed Server.
Lets Get Started.
Important thing to understand here is that for ADF Logging to be implemented correctly Package Structure for the application plays a very important role. So as a common/best practice , package structures should be defined correctly for all the Managed Beans/Java Classes in the application. Also packages structures should be able to differentiate the ManagedBeans/Java Classes in different applications.
Ideally a unique root package name for the application should be given at project creation time in Jdeveloper.

Ok lets start implementing.
Created two ADF Applications. PayRollApp and PartnerApp. Both applications have below mentioned root packages.
PayRollApp : com.company.payroll
PartnerApp : com.comapny.partner
Created a PartnerTest.jspx in PartnerApp having a button which has an actionListener method which logs the log messages.
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 Jun 25, 2015

ADF 12c – Allow user to personalize the form items at run time using MDS based Change Persistence By Lucas Jellema

clip_image002The requirement is easily written down: the web page contains a form with multiple form items. Each user should be allowed to personalize the form at run time. This personalization entails the ability to hide and show form items. When user has decided to hide and show specific items – this decision should be persisted across sessions so that when the user logins at a later date, the form items she has hidden are still invisible and the displayed ones displayed.

This article describes how to implement this particular requirement in an ADF 12c Fusion Web Application. Note: the same steps and code will do the job for ADF 11g.

ADF has built in support for customization – both at design time and run time. Customization can be defined at various levels (or layers as the terminology is). One of these layers – typically the most fine grained – is the user level. Customizations at user level are frequently called personalizations.

In order for an ADF web application to support customization and personalization, we have to configure a number of things:

· a user-level customization class has to be configured in the adf-config.xml

· ADF Security has to be configured – so users can be identified (so their personalizations can be stored and retrieved)

· customizations has to be enabled in the properties of the View project

· the specific customization we are interested in (personalizing the visible or rendered attribute on inputText components) has to be enabled in the adf-config.xml file

· a managed bean is configured that receives the updated form item definitions and sends them to the ADF Change Manager that writes them to MDS

· a simple JSF page is developed with a form and a shuttle component to indicate which form items are to be hidden or displayed

The page looks as follows in this example: 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 Jun 24, 2015

Change Default JSESSION ID Name for ADF Application by Rohan Walia


By Default, every ADF Application writes a JSESSIONID Cookie which maintains the session across the ADF application.
clip_image001
The name JSESSIONID is default and can be seen in browser cookies.
Use Case : There might be scenario where this default name required to be changed. One example can be that there is a requirement for running two applications , one ADF Application and other might be existing application. The existing application already use JSESSIONID as cookie name for session management. In that case there will be a conflict between the two applications. In order to solve this we need to give different name of SessionId for ADF Application.
Created a simple ADF 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

Monday Jun 22, 2015

ADF Application Event listeners – Part I by Red Maveriks

clip_image001Hi all and welcome to a new series on Red Mavericks!

This one is technical, focused on Oracle Application Development Framework, or ADF, so… sorry to our Business Analyst readers. There’s a new article coming out to new next week about Advanced Web Form creation… stay tuned.

Anyway, today’s article is written by a new Maverick: Pedro Gabriel. Welcome Pedro!

Pedro is a senior ADF developer at Link Consulting, and he’ll be sharing some of his experience with our fellow techie readers. He would be very interested in hearing back from you through twitter @PedrohnGabriel. Be sure to follow him  and check his Bio, right hereclip_image003

So, without further ado, here is Pedro’s article.

ADF applications provide a wide range of Event Listeners triggered whenever a change in state occurs. With these event listeners you are able to interact with:

· The state of the servlet context

· The state of the servlet request

· The HTTP session object

· Servlet Filters

· Phase Listeners

Servlet Context Events / Servlet Request Events

This type of events involves resources or state held at the level of the application servlet context/request object. You have four types of servlet context events: 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 Jun 21, 2015

WebSocket Accelerated Live Data Synchronization for MAF by Andrejus Baranovskis

clip_image002New generation Mobile and Web applications are going to use WebSockets. This is one of the fastest and convenient ways to transfer JSON formatted data from the server to the client and back. Huge advantage - server could initiate data synchronisation request and deliver JSON messages directly to the client. You should read my previous post about detail information how to configure MAF with WebSocket - Oracle MAF and WebSockets Integration - Live Twitter Stream.
In this post I would like to describe, how to integrate further information received through WebSocket with MAF components. I will use MAF Tree Map UI component to display live data for Tweets locations.
Below you could see screen recording - MAF Tree Map is getting refreshed automatically, each time when update through WebSocket channel is being received. This is amazing, how fast data through WebSocket channel is coming. In this test, MAF is handling around 1 update per second, received from WebSocket: 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 Jun 19, 2015

Siebel CRM and Oracle Alta UI in the Mobile Age by Alexander Hansal


clip_image002

Since a few years, Mobile is an up-and-coming trend in digital evolution and a key factor for digital transformation. Together with Social, Cloud and Information, Gartner named Mobile as one of the 4 driving forces for new business scenarios and even goes as far as to call this “nexus of forces” out as the new basis of the technology platform of the future.[1]

Yet, not many businesses seem to deal with these technology trends properly and it is hard to blame them, considering the lack of proven concepts especially for internal applications such as Siebel CRM. However, this does not mean, that there is no way for you to use these trends and take an early step into the future. And this future is built on a better mobile user experience not only for your customers but for some of your employees as well. Read the complete article here. For more information on Alta UI please visit our Community Alta tag here. (WebLogic Community membership required)

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
« September 2015
SunMonTueWedThuFriSat
  3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today