Forums de discussion
web form portlet - PortletPreferences persistance bug
Leon Merwe, modifié il y a 10 années.
web form portlet - PortletPreferences persistance bug
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
Working with LR6.1.1.1 CE and MYSQL db. I have downloaded the web-form-portlet source from liferay svn, added a service.xml file to use Service Builder to generate code. It works perfectly on my workstation. When I deploy it to production on a clustered environment with load balancing database the portlet preferences are not being retrieved from the database. It seems like it is saving the portlet prefereces with a different portletId each time. That's why it cannot find it for that portlet.
I can see the portlet with the default fields as defined in the portlet.xml file but the new fields that I configure is not showing on the view.jsp of the portlet, only on the configuration.jsp.
This is driving me insane!!! I have worked on this for weeks now and cannot fix it on production.
Has anyone experienced something similar? Advice would be welcomed.
Leon van der Merwe
I can see the portlet with the default fields as defined in the portlet.xml file but the new fields that I configure is not showing on the view.jsp of the portlet, only on the configuration.jsp.
This is driving me insane!!! I have worked on this for weeks now and cannot fix it on production.
Has anyone experienced something similar? Advice would be welcomed.
Leon van der Merwe
Leon Merwe, modifié il y a 10 années.
RE: web form portlet - PortletPreferences persistance bug
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
Anyone out there please?
Leon Merwe, modifié il y a 10 années.
RE: web form portlet - PortletPreferences persistance bug
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
So the problem was that the configuration portlet(portletId=86) saved the preferences under its id and not the instance id of the web form portlet, resulting in the web form portlet not being aware of the changes that was configured for it.
SOLUTION:
Turns out(after MANY hours of frustrating debugging) that web form portlet uses a class inside a liferay webapp named portal-compat-hook. This app did not exist on our production server and is why I got the strange behaviour.
SOLUTION:
Turns out(after MANY hours of frustrating debugging) that web form portlet uses a class inside a liferay webapp named portal-compat-hook. This app did not exist on our production server and is why I got the strange behaviour.
Gunther Verhemeldonck, modifié il y a 10 années.
RE: web form portlet - PortletPreferences persistance bug
New Member Publications: 7 Date d'inscription: 23/11/12 Publications récentes
I'm having the exact same issue although having installed the portal-compat-hook.
I'm on EE 6.1.20, but have installed web-form-portlet-6.1.20.3-ee-ga3-20130812170130063.war together with portal-compat-hook-6.1.20.1-ee-ga3-20130812170130063.war.
Which versions are you using?
I'm on EE 6.1.20, but have installed web-form-portlet-6.1.20.3-ee-ga3-20130812170130063.war together with portal-compat-hook-6.1.20.1-ee-ga3-20130812170130063.war.
Which versions are you using?
Leon Merwe, modifié il y a 10 années.
RE: web form portlet - PortletPreferences persistance bug
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
Hey Gunther
My versions are:
liferay-portal-6.1.1-ce-ga2
The web-form-portlet I I got the trunk source from liferay repo and compiled it in my liferaysdk.
The class(hook) that does the portletId 'change' is:
<struts-action><struts-action-path>/portlet_configuration/edit_configuration</struts-action-path>
<struts-actionimpl>com.liferay.compat.hook.action.CompatEditConfigurationAction</struts-action-impl>
</struts-action>
protected PortletPreferences getPortletPreferences(
HttpServletRequest request, PortletPreferences portletPreferences)
throws PortalException, SystemException {
String portletResource = ParamUtil.getString(
request, "portletResource");
if (Validator.isNull(portletResource)) {
return portletPreferences;
}
return PortletPreferencesFactoryUtil.getPortletSetup(
request, portletResource);
}
Hope this helps
My versions are:
liferay-portal-6.1.1-ce-ga2
The web-form-portlet I I got the trunk source from liferay repo and compiled it in my liferaysdk.
The class(hook) that does the portletId 'change' is:
<struts-action><struts-action-path>/portlet_configuration/edit_configuration</struts-action-path>
<struts-actionimpl>com.liferay.compat.hook.action.CompatEditConfigurationAction</struts-action-impl>
</struts-action>
protected PortletPreferences getPortletPreferences(
HttpServletRequest request, PortletPreferences portletPreferences)
throws PortalException, SystemException {
String portletResource = ParamUtil.getString(
request, "portletResource");
if (Validator.isNull(portletResource)) {
return portletPreferences;
}
return PortletPreferencesFactoryUtil.getPortletSetup(
request, portletResource);
}
Hope this helps
Gunther Verhemeldonck, modifié il y a 10 années.
RE: web form portlet - PortletPreferences persistance bug
New Member Publications: 7 Date d'inscription: 23/11/12 Publications récentes
Hi Leon
Thank you very much for your input.
I managed to solve this by using version web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war of the Web Forms portlet.
This version does not rely on the portlet-compat-hook and works out-of-the-box for me (6.1.20 EE).
Hope this helps somebody else in the future.
Thank you very much for your input.
I managed to solve this by using version web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war of the Web Forms portlet.
This version does not rely on the portlet-compat-hook and works out-of-the-box for me (6.1.20 EE).
Hope this helps somebody else in the future.
Leon Merwe, modifié il y a 8 années.
Re: [Liferay Forums][General] RE: web form portlet - PortletPreferences per
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
No worries dude.
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Leon Merwe, modifié il y a 8 années.
Re: [Liferay Forums][General] RE: web form portlet - PortletPreferences per
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
No worries dude.
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Leon Merwe, modifié il y a 8 années.
Re: [Liferay Forums][General] RE: web form portlet - PortletPreferences per
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
No worries dude.
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Leon Merwe, modifié il y a 8 années.
Re: [Liferay Forums][General] RE: web form portlet - PortletPreferences per
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
No worries dude.
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Leon Merwe, modifié il y a 8 années.
Re: [Liferay Forums][General] RE: web form portlet - PortletPreferences per
New Member Publications: 11 Date d'inscription: 10/09/13 Publications récentes
No worries dude.
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>
Glad I could help.
On 21 November 2013 12:47, Gunther Verhemeldonck from liferay.com <
forums@liferay.com> wrote:
> Hi Leon
>
> Thank you very much for your input.
> I managed to solve this by using version
> *web-form-portlet-6.1.20.1-ee-ga2-20120731110418084.war* of the Web Forms
> portlet.
> This version does not rely on the portlet-compat-hook and works
> out-of-the-box for me (6.1.20 EE).
>
> Hope this helps somebody else in the future.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/31733959
> --
> Liferay.com <https://www.liferay.com>