How to prevent duplicate form submissions in OAF page submissions
In your processRequest of the controller add the below code, once you submit the page, the page will get a hourclass that will avoid the user to click second time,
OAWebBean bodyBean = pageContext.getRootWebBean();
if (bodyBean instanceof OABodyBean)
{
((OABodyBean)bodyBean).setBlockOnEverySubmit(true);
}
In your processRequest of the controller add the below code, once you submit the page, the page will get a hourclass that will avoid the user to click second time,
OAWebBean bodyBean = pageContext.getRootWebBean();
if (bodyBean instanceof OABodyBean)
{
((OABodyBean)bodyBean).setBlockOnEverySubmit(true);
}
No comments:
Post a Comment