Showing posts with label Fire partial action programmatically in oaf. Show all posts
Showing posts with label Fire partial action programmatically in oaf. Show all posts

Wednesday, 11 July 2018

Fire partial action programmatically in oaf

Fire partial action programmatically in oaf

Fire Partial action is related to the OAF Page Loading or rendering. For Example if you want to refresh some specific bean or item of the page then you will use the fire partial action. FirePartialAction is uses for Partial Page Rendering(PPR). It will not cause whole page to render again. It causes only partial refresh of page. Here in this example , I am sharing the example to Fire Partial Action programmatically in OAF Page.
 

How to Fire Partial Action Programmatically in OAF.

 

Put this Code under the Process Request Method of the OAF Page Controller


import oracle.cabo.ui.action.FirePartialAction;

OAMessageChoiceBean EmailAddress=(OAMessageChoiceBean)webBean.findChildRecursive("Email");

FireAction firePartialAction = new FirePartialAction("EmailAction");

EmailAddress.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
 

Now we will capture this Above Event "EmailAction" in the Process From Request Method of the OAF Page Controller.

 
if("EmailAction".equals(pageContext.getParameter(SOURCE_PARAM)))

{
//Event Handling Here
 

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *