1
votes

Currently I have a JSF 1.2 project, and I want to use it in Liferay portlet.

Since it is a big project, it is impossible to upgrade to JSF 2.x within a short time.

From https://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Faces+Version+Scheme, it is possible to use JSF 1.2 in Liferay portlet if: - Liferay Faces Version is 2.1.x - Liferay Portal Version is 6.1.x

How can I exactly use it? If I follow the Developer's Guide, http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-a-portl-3, it creates Portlet for JSF 2.x, not for JSF 1.2.

I am wondering if there is a way to create a Liferay Portel for JSF 1.2?

Many thanks.

1

1 Answers

1
votes

If you follow these instructions, but checkout 2.1.3-ga4 instead, you will find portlets in the demos directory such as the jsf1-portlet and many others:

demos/bridge/jsf1-portlet/target/jsf1-portlet-2.1.3-ga4.war

All of the portlets you will find in the demos directory are working examples which use jsf 1.2. You can then deploy those to your favorite Liferay Portal, version 6.1, add one of those portlets to a page and try it out.

All of the demo portlets come with their source code in the git repo.

Hope that helps.