OAException.ERROR in extended controller class is not stopping the execution flow in OAF
Hi All,
I am trying the extend the controller to add some custom validation logic and through an error to stop the flow. I can see the validation message but page flow is not stopping. Please let me know why it is not working? You can find below the code I wrote in extended controller class.
public void processFormRequest(final OAPageContext oaPageContext, final OAWebBean oaWebBean)
{
super.processFormRequest(oaPageContext, oaWebBean);
final OAApplicationModule applicationModule = oaPageContext.getApplicationModule(oaWebBean);
String username = oaPageContext.getUserName();
if (!"SYSADMIN".equals(username))
{
final OAMessageDateFieldBean oaMessageDateFieldBean = (OAMessageDateFieldBean)oaWebBean.findIndexedChildRecursive("NRRERStartDate");
final OAMessageDateFieldBean oaMessageDateFieldBean2 = (OAMessageDateFieldBean)oaWebBean.findIndexedChildRecursive("NRREREndDate");
String parameter3 = null;