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.
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.
I have same issue in my liferay MVC portlet. I could not rectify this problem yet. My portlet get hanged when i add
ReplyDelete<action-url-redirect > true </action-url-redirect > to liferay-portlet.xml
It works fine for me.
Deletehi when i used action-url-redirect property true then it work,but side effect here
ReplyDeletein 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...
Also it shows the error like "No Bean Found For this Scope"
ReplyDelete