Foren

Adding more preferences to a portlet with a hook

thumbnail
Roman Novikov, geändert vor 7 Jahren.

Adding more preferences to a portlet with a hook

Junior Member Beiträge: 39 Beitrittsdatum: 07.01.17 Neueste Beiträge
Hello! I am just a beginner to development of applications based on j2ee and Liferay. So I faced to the following problem: I tried to add more preferences to a native Liferay portlet (shopping) - just two fields - with a hook but I couldn't make them be stored to a database... I tried to do this manually: portletPreferences.setValue(); portletPreferences.store(); - but I still have not achieved the aim - to save these preferences with a form action. I understand that adding the preferences to portlet.xml could fix the problem but it seems I cant' extend it with a hook.
Could someone please help me to solve this problem?