Foros de discusión

Adding more preferences to a portlet with a hook

thumbnail
Roman Novikov, modificado hace 7 años.

Adding more preferences to a portlet with a hook

Junior Member Mensajes: 39 Fecha de incorporación: 7/01/17 Mensajes recientes
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?