-
1. Re: onComplete is called twice when multiple RF portlet
bleathem Dec 24, 2013 1:13 PM (in response to christophe.noel)Can you investigate if this problem is isolated to the portlet environment? IOW, try it in a servlet environment and see if you have the same problem.
-
2. Re: onComplete is called twice when multiple RF portlet
christophe.noel Jan 3, 2014 10:14 AM (in response to bleathem)Thanks for your support, but it's not possible for me to test this (at least for now).
Regards.
-
3. Re: onComplete is called twice when multiple RF portlet
christophe.noel Jan 15, 2014 4:45 AM (in response to christophe.noel)Hello,
The issue is reproductible using the [url=http://www.liferay.com/community/liferay-projects/liferay-faces/demos]Richfaces4 Demo Portlet[/url] from Liferay Faces, when applying the following code modifications in Applicant.xhtml (line 98):
- add "oncomplete=alert('test')" to show the oncomplete call
- Use an action method with no outcome to avoid navigation rule: action="#{applicantBackingBean.deleteUploadedFile(null)}"
Then deploy multiple Richfaces 4 portlet instance on a page and submit a form.
You will receive alert message as many times as your portlet numbers.
This was tested on Liferay 6.1.2 GA3.
This always occurs when you have multiple richfaces portlet on the same page. Would you have any workaround or fix for this bug ?
Thanks a lot for your support.
There is a parallel discussion on Liferay forum: https://www.liferay.com/community/forums/-/message_boards/message/33173480
Regards,
Christophe.