Controlling popup position in Oracle ADF

Controlling popup position in Oracle ADF

Sometimes we need popup at the exact place of the page.

For example, when you want to develop a nice and user-friendly tutorial (like in our product FormADFApp)

The user had to be led throughout various UI components and regions.

In order to decorate the components with description popup you can use af:noteWindow

We create one shared popup that can be launched from everywhere and we just control its position.

Here is the popup:

<af:popup id=”noteWindow” contentDelivery=”lazyUncached” eventContext=”launcher”
<af:noteWindow inlineStyle=”width:200px” id=”nw3″>
<p>This is how you use the panel tabbed component</p>

And here is how we place it after/over/next to component:

public void onTabBtnClick(ActionEvent actionEvent) {
FacesContext context = FacesContext.getCurrentInstance();
UIComponent source = (UIComponent)BINDING-OF-DESIRED-COMPONENT;
  String alignId = source.getClientId(context);
  RichPopup.PopupHints hints = new RichPopup.PopupHints();

Changing the RichPopup.PopupHints.AlignTypes constant gives you flexibility to put the popup everywhere you want – you can choose from pretty much every possible position

Have fun placing popups all around the Oracle ADF screens and forms!

Todor Gigilev

Having entrepreneurial and business knowledge, I am eager to help innovative companies and startups to build their sales strategy and business model, improve their value proposition and design and develop their product. If you want a software project delivered, you can message me and I will make sure to do my best to propose the best solution. My main expertise is in the Oracle Fusion Middleware stack - I have been heavily involved in actual development, consulting and delivery of Webcenter, ADF, SOA Suite, BPM and Java EE solutions.

More Posts - Website

Follow Me:
TwitterLinkedInGoogle Plus

Do you want more great blogs like this?

Subscribe for Dreamix Blog now!