//AMIS Technology Blog » portal

Posts tagged portal

image.png

ADF: (re-)Introducing Contextual Events in several simple steps

0

Communication between taskflows and pages, beans and other components in ADF Faces applications is in many cases ideally implemented using contextual events. These events are published from a producer component – a page, taskflow or associated bean – and made available to all interested parties. Events are handed over by the ADF run time infrastructure to any registered consumer in the current scope. This includes any taskflow or enclosing page which has been configured as such. This publish/subscribe model helps achieve interaction and reuse in a decoupled way. I like the principle. I have applied it on several occasions. And today I needed it again in a WebCenter Portal application with custom ADF 11g components. And once again I could not remember exactly how to implement the contextual events, the publication and subscription. This article therefore is primarily for me – so I can quickly recall how to do this in similar subsequent situations. However, if it is useful to you too, that is even better!

The use case discussed in this article is as follows:

The section in the red rectangle is a taskflow that has been embedded as a region in the page. This taskflow has indicated More >

Vacatures bij AMIS services

Programmatic Navigation in WebCenter Portal application – do processAction from Java

2

Working on a WebCenter 11g Portal application, I recently ran into a challenge: when the user clicks a link in a task flow, the result of that action should be that the user is navigated to another page with a another taskflow that should display content based on context defined through the specific link that was clicked. The challenge was complicated by the fact that the taskflows had to be completely independent, of each other and of the page in which they were embedded.

The general approach with a taskflow that has a link that when clicked should result in effects outside the taskflow is to have the taskflow publish a contextual event with appropriate payload. It is then up to the page that embeds the taskflow in a region to consume and handle the event. That was the easy part.

The event handler can read the payload from the event, store values in a managed bean and navigate to the page that contains the drill-down-target-taskflow. This page has configured the input parameters for this second taskflow using EL expressions that refer to the managed bean that was populated by the event handler. Sounds straightforward, does it not?

What then is the catch in this story? It turned More >

SIG Event

Oracle WebCenter 11g – Foundation for Oracle Fusion Applications and possibly your ADF applications or Enterprise 2.0 Portal as well

 

I have had a sweet spot for Oracle WebCenter for quite some time now. As early as 2007 I already did a presentation at ODTUG on WebCenter (10g). One of my main conclusion at the time was that while the product showed a lot of potential, it was certainly not ready for prime time. After that presentation, a guy came up to me, thanked me for the presentation then told me he was a product manager for WebCenter – and agreed with most of the things I had said. That was my first encounter with Peter Moskovits. Today, two years later, the situation has changed quite dramatically. WebCenter has evolved, as had ADF which is the foundation for WebCenter, and WC is now one of the cornerstones for Oracle Fusion Applications. WebCenter 11g is like the swan that started out as the ugly duckling. Well worth a look.

 

I was in a presentation today by Peter Moskovits and Christina Kolotouros, titled: A Marriage Made in Heaven – Enterprise 2.0 and ADF. They touted it as Part 2 of Steve Miranda’s talk on how Fusion Applications were built (see: http://technology.amis.nl/blog/5645/oracle-fusion-applications-it-is-for-real-and-impressive-too ). In this presentation, they explained the architecture More >

Go to Top