When an instance of my portlet is going to be removed from a page, I want to capture that event to get some preference values from that portlet, and to do something.
Is there anything like interfaces or hooks to do that in Liferay?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can define your own
PortletLayoutListenerin liferay-portlet.xml:And your MyLayoutTypePortletListener may be similar to:
See the journal content portlet for an example and that Liferay’s Forum Post.