掲示板

How to : JSF (Primefaces) Portlet with Liferay IDE in Liferay Portal 7.x?

thumbnail
7年前 に Eric Chow によって更新されました。

How to : JSF (Primefaces) Portlet with Liferay IDE in Liferay Portal 7.x?

Junior Member 投稿: 79 参加年月日: 05/02/25 最新の投稿
Hello,

How to use Liferay IDE 3.0.x + Liferay Portal 7.0.x to development osgi based JSF portlet (Primefaces) ?

Now, I can pack the portlet into WAR and copy it to the ../deploy folder. But it is not convenient. In the new Liferay portal, it is osgi based. Is there any example to create a JSF (Primefaces) portlet in osgi style?

Best regards,
Eric
thumbnail
7年前 に Juan Gonzalez によって更新されました。

RE: How to : JSF (Primefaces) Portlet with Liferay IDE in Liferay Portal 7.

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Eric Chow:
Hello,

How to use Liferay IDE 3.0.x + Liferay Portal 7.0.x to development osgi based JSF portlet (Primefaces) ?

Now, I can pack the portlet into WAR and copy it to the ../deploy folder. But it is not convenient. In the new Liferay portal, it is osgi based. Is there any example to create a JSF (Primefaces) portlet in osgi style?

Best regards,
Eric


Hi Eric, I have two questions for you:

* Why do you think that WAR aren't "convenient"?
* What do you mean by "osgi" style? What are the features you would like in your JSF portlet?

Thanks.
thumbnail
7年前 に Eric Chow によって更新されました。

RE: How to : JSF (Primefaces) Portlet with Liferay IDE in Liferay Portal 7.

Junior Member 投稿: 79 参加年月日: 05/02/25 最新の投稿
Hi Juan,

In development stage, I have to copy the whole war into the deploy folder for deployment each time I modify the portlet.
In the old IDE, it can auto deployment in the eClipse IDE.

I am not concerning in the osgi style portlet, but as I see that almost all the plugins in Liferay portal 7.x are now in osgi mode. I wonder if my existed portlets need to change to osgi compliance.

Best regards,
Eric
thumbnail
7年前 に Juan Gonzalez によって更新されました。

RE: How to : JSF (Primefaces) Portlet with Liferay IDE in Liferay Portal 7.

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Eric Chow:
Hi Juan,

In development stage, I have to copy the whole war into the deploy folder for deployment each time I modify the portlet.
In the old IDE, it can auto deployment in the eClipse IDE.


You shouldn't have to copy the WAR into deploy folder. When creating/importing a Liferay portlet, you should have some options under project right click --> Liferay --> SDK.
How you created/imported your projects? Probably you should open a question in IDE category forum.

Eric Chow:

I am not concerning in the osgi style portlet, but as I see that almost all the plugins in Liferay portal 7.x are now in osgi mode. I wonder if my existed portlets need to change to osgi compliance.
Eric


No, it isn't mandatory to change all previous portlet to be OSGI based, they will still work as before. All portlets will be automatically transformed internally by Liferay, so no need to transform anything by your side.

Said this, you have a proof of concept JSF-OSGI interaction portlet here: https://github.com/liferay/liferay-faces-portal/tree/master/demo/jsf-ds-applicant-portlet and here: https://github.com/liferay/liferay-faces-portal/blob/master/demo/primefaces-users-portlet.

You have some additional information about JSF-OSGI packaging here: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/packaging-a-jsf-application.

Hope it helps...