java - How to reload the whole page in Liferay -
i using liferay 5.2.3.
in view.jsp
file have hidden form after populated, sent processaction(request, response)
method of portlet this:
document.getelementbyid('email').value = member.emailaddress; document.getelementbyid('myform').submit();
after java code in extended genericportlet
class processaction(request, response)
has been executed, want entire web page refreshed, not portlet.
i think there 2 ways that:
1: inside processaction
2: using kind of ajax code , call document.location.reload()
after document.getelementbyid('myform').submit();
could share sample code of these options (or others)?
you're describing default behaviour in portal world: after triggering action, whole page reloaded. whatever did in order work around default: undo , you're done.
look @ (almost) of liferay demo portlets, e.g. on https://github.com/liferay/liferay-plugins/tree/master/portlets
Comments
Post a Comment