PREPARE_MODEL_ID

How to execute method on page load method call in ADF Faces

1. Open the page definition of your JSF Page – TestOnPageLoad.jspx 2. Add the controllerlclass in the <PageDefinition> tag as given below <pageDefinition xmlns=”http://xmlns.oracle.com/adfm/uimodel” version=”11.1.1.60.13″ id=”TestOnPageLoadPageDef” Package=”view.pageDefs” ControllerClass=”com.test.bean.PageLoadBackingBean”> 3. Create the class – executeOnPageLoadMethod which implements PagePhaseListener and override the beforePhase method. import oracle.adf.controller.faces.context.FacesPageLifecycleContext; import oracle.adf.controller.v2.lifecycle.Lifecycle; import oracle.adf.controller.v2.lifecycle.PagePhaseEvent; import oracle.adf.controller.v2.lifecycle.PagePhaseListener; import oracle.binding.BindingContainer; public class executeOnPageLoadMethod […]

Scroll to top
Copy Protected by Chetan's WP-Copyprotect.