Skip to main content

Posts

Showing posts from October, 2016

OTN Appreciation Day: Programmatically Dismiss Popup

A couple of years ago I blogged about  fading user feedback .  Also Duncan Mills had a solution for this, as did Frank Nimphius . Just recently I was triggered by a blogpost of Shay Schmeltzer that in ADF 12.2.1.1 this can be done completely different and 100% declarative. Where Shay's example is declarative, in this blogpost I describe how to do the same when this popup is created programmatically. To explain this, first of all I need to show you how to invoke a popup programmatically. In order to do this we need to have a popup component defined on the page. To have access to the popup in java code, we need to bind the popup to a managed bean: 1: <af:popup id="p1" animate="true" binding="#{backingBeanScope.utilBean.dismissablePopup}" > 2: <af:panelGroupLayout id="pg1" layout="horizontal" halign="center" styleClass="AFStretchWidth"> 3: <af:image source="