1.Go through the blog to integrate the Liferay portal with Eclipse IDE.
2.After integration done, set your Eclipse with Liferay Perspective.
3.For creating JSF Portlet go to File-->New-->Liferay Project, than you will get bellow window, in that Enter Project Name, Display Name and make sure the configuration and than select plugin type as portlet.
Fig-1.
4. click next than you will get the bellow window, in that select JSF as your portlet frame work.
Fig-2.
5. than click on finish.
6.after the step 5, you created your JSF Hello wold Portlet, than in your portal project open the PORTLET.XML file.
Fig-3.
7.in portlet.xml file chage view-template to javax.portlet.faces.defaultViewId.view under the init param tag.
8.in xhtml page portletViewMode.xhtml under the folder xhtml , type the hello world message.
9.after this do ant build, than logon to portal server, this HelloWorld portlet is available in in the category sample, than add this to your portal page.
2.After integration done, set your Eclipse with Liferay Perspective.
3.For creating JSF Portlet go to File-->New-->Liferay Project, than you will get bellow window, in that Enter Project Name, Display Name and make sure the configuration and than select plugin type as portlet.
Fig-1.
4. click next than you will get the bellow window, in that select JSF as your portlet frame work.
Fig-2.
5. than click on finish.
6.after the step 5, you created your JSF Hello wold Portlet, than in your portal project open the PORTLET.XML file.
Fig-3.
7.in portlet.xml file chage view-template to javax.portlet.faces.defaultViewId.view under the init param tag.
8.in xhtml page portletViewMode.xhtml under the folder xhtml , type the hello world message.
9.after this do ant build, than logon to portal server, this HelloWorld portlet is available in in the category sample, than add this to your portal page.
Hi could you help me for my JSF helloword portlet
ReplyDeletefirst i found liferay-portlet.xml but it contains
HelloWorld
/icon.png
false
false
/css/main.css
HelloWorld-portlet
administrator
Administrator
guest
Guest
power-user
Power User
user
User
And I didn't know how to run the project
Hi Marouane Missaoui, please tell me where exactly your struck with, while following above steps.
ReplyDelete