Total Pageviews

Tuesday, April 2, 2013

Solution of Duplicate Submission issue of Form on Page Reload

Re submission of form on press of refresh button is an old issue is Liferay. The reason behind this issue is the parameters and action which are available in URL after the form submission.  Earlier some developers used to open some other JSP after completion of Action.

But its solution is a very easy, provided by liferay itself. We have to set the following value in a tag inside liferay-portlet.xml which is set  false by default.

4 comments:

  1. I have same issue in my liferay MVC portlet. I could not rectify this problem yet. My portlet get hanged when i add
    <action-url-redirect > true </action-url-redirect > to liferay-portlet.xml

    ReplyDelete
  2. hi when i used action-url-redirect property true then it work,but side effect here

    in jsp

    if(request.getAttribute("search")!=null){
    List sm=(List)request.getAttribute("search");
    }
    it generate nullpointer exception ,but if i remove action-url-redirect property then it work ,what i should do then both are work fine...

    ReplyDelete
  3. Also it shows the error like "No Bean Found For this Scope"

    ReplyDelete