Monday 25 May 2015

Avoiding Multiple Submits(Refresh page) in Liferay

We often see after submitting the form and refresh the page you will see the same result will be adding in the DB.

So how to get rid of this?

Here we have 2 options to eliminate this behaviour.

1. By Declaring the tag in the liferay-portlet.xml after <icon> tag

          <action-url-redirect> true </action-url-redirect>

2.After doing our logic we can redirect to specified URL by using actionResponse.

   actionResponse.sendRedirect(PortalUtil.getLayoutURL(themeDisplay.getLayout(),themeDisplay));

8 comments:

  1. I have perused all news and articles from here. I feel each post is wealth with the enough data and substance like the custom essay writing service item. I will propose this administration for others to allude.

    ReplyDelete
    Replies
    1. Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download Now

      >>>>> Download Full

      Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download LINK

      >>>>> Download Now

      Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download Full

      >>>>> Download LINK hr

      Delete
  2. Thanks for the tips, and one nice tip for you this service can do my homework for me and they are fast like light!

    ReplyDelete
  3. Excellent I like this blog post its very attractive and it’s useful to others they are very attractive your post is amazing .Thank you so much. Keep posting such articles.
    Custom Essay Writing Service

    ReplyDelete

  4. I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.
    Academic Writing Style

    ReplyDelete
  5. get the latest update and articles regarding the gym items like treadmills and so on subscribe now with best fitness buy

    ReplyDelete
  6. Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download Now

    >>>>> Download Full

    Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download LINK

    >>>>> Download Now

    Liferay Tech Support: Avoiding Multiple Submits(Refresh Page) In Liferay >>>>> Download Full

    >>>>> Download LINK SV

    ReplyDelete
  7. "Avoiding Multiple Submits (Refresh page) in Liferay" is a highly informative and practical guide that addresses a common challenge faced in web development. Autodesk Maya Better Than Blender This resourceful article provides knowledge.

    ReplyDelete