I am trying to add a portlet on a page by using Liferay API. But portlets are added in invisible mode and vanished when page is refreshed. And displayed following error message in the newly added portlet:
"This portlet has been undeployed. Please redeploy it or remove it from the page".
I am trying to add existing portlet also, but I am getting above error message. So, how can I add portlet through programatically by using Liferay API.
I would highly appreciate your quick response.