OAF How to handle Button, Hyperlink, Lov Events
//Handle button event
if(pageContext.getParameter("clickBtn")!=null)
{
OAException infoMsg = new OAException("User Clicked On Button",
OAException.WARNING);
throw infoMsg;
}
//Handle Link Event --FireAction Event param
String eventNameStr = pageContext.getParameter(EVENT_PARAM);
if(eventNameStr!=null && "linkEvent".equals(eventNameStr))
{
throw new OAException("User Clicked on Link ", OAException.INFORMATION);
}
//LOV Event
if(pageContext.isLovEvent())
{
String lovSourceIDStr= pageContext.getLovInputSourceId();
if(lovSourceIDStr!=null && "orgNameLovID".equals(lovSourceIDStr))
{
OAMessageLovInputBean orgNameLovIDBean = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("orgNameLovID");
String orgNameStr = (String)orgNameLovIDBean.getValue(pageContext);
OAFormValueBean orgIDFVBean = (OAFormValueBean)webBean.findIndexedChildRecursive("orgIDFV");
String orgID = (String)orgIDFVBean.getValue(pageContext);
}
}
Comments |0|
Category: OAF