RE: Issue with IPC in JSF portlets for liferay 7.1.2.ga3 tomcat  9.0.10 bun

Amos Fong, modified 6 Years ago. New Member Posts: 2 Join Date: 5/2/19 Recent Posts
Hello, I have the following issue. 
When deploy your war files from the demo jsf-ipc-pub-render-params-portlet 4.1.0  on liferay 7.1.2.ga3 tomcat  9.0.10 bundle, i downoloaded from yoursite, everything wroks.
When I build that project on intelij IDEA 2018.2.6 IDE at my computer. I import the project as maven project it is built correctly but when it is deployed on liferay 7.1.2.ga3 tomcat  9.0.10 bundle it does not work. There is no IPC between the portlets. The OS is win10 64bit.  intelij IDEA 2018.2.6 64bit.

I tried to make two portelts by following your model and the IPC was not successful again. I mean I generate a maven project fpr Primefaces 6.2. LAtest oneas descrebed at your web site. Then I imported that project and followed everything as per your demo. There are two protelts. It is shown they have a public render paramter but still no comunication. Even I did my own simple project with Pirmeface 6.2. generate maven projects 
mvn archetype:generate  -DarchetypeGroupId=com.liferay.faces.archetype  -DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet  -DarchetypeVersion=5.0.5  -DgroupId=bg.keit.testportlet  -DartifactId=bg.keit.testportlet.IPCPRPOneWartest

Then make two portlets with IPC at firat glance nothing is missing but again after deploying the portlets are ok. They have a paramater but no comunication, i.e. the receiver did nothing after a press a button on the sender to update the parameter. The logs show that the parameter is updeated from the sender portlet.

Is it something with intelij IDEA 2018.2.6 64bit and dependencies and settings ?

​​​​​​​Thanks in advance
thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Hi Vitan,
If the demos from maven central are working for you, then perhaps you are missing some maven profiles when building locally. If you look at the Building the Liferay Faces Bridge Demos From Source section of Bridge Impl's README.md, you'll see that you need to build the demos with the liferay, mojarra, and tomcat profiles:

(cd demo/jsf-ipc-pub-render-params-portlet/ && mvn clean package -P liferay,mojarra,tomcat)

Please try building the demos with those profiles and see if that fixes your issue.

For your custom PrimeFaces IPC portlets, I cannot debug your issues without full steps to reproduce and the simplest sample portlet that can reproduce the issue.

​​​​​​​- Kyle