How to create primefaces project in liferay workspace in LR 7.1/DXP

Bilal Hussain, modified 6 Years ago. New Member Posts: 14 Join Date: 3/22/17 Recent Posts

Hi everyone 

Newbie in LR DXP has worked on the LR 6.2 . LR DXP has replaced sdk with liferay workspace using microserivces architecture ,its really great. 

I've created the primefaces project follow the Liferayfaces as well as Liferay JSF Projet  in liferay developer studio but not going in the liferay workspace and 

whenever i want to create new portlet of Jsf,primefaces in project but its giving me the Error .

Actually want to create workspace for Jsf,primefaces.

Any body have an idea about this. Please help.

Thanks !!!!!

Bilal

 

thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Hi Bilal, sorry for the late reply (I've been out of the office for Christmas and New Year's). I'll take a look at this issue today and try to get back to you by the end of the day.

- Kyle
thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Bilal,
It seems that you are attempting to use the New JSF Portlet wizard. Instead you should use the New JSF Project wizard. Sorry for the confusion. I’ve opened an issue to get the New JSF Portlet option removed: IDE-4464.

You also mentioned that you weren’t able to add a Liferay JSF Portlet to an existing workspace. Here’s how you can do that:

  1. Right-click on your your-workspace-wars folder.
  2. Select New > Other… > Liferay > Liferay JSF Project.
  3. Select Next >
  4. Add a project name.
  5. Uncheck Use default location.
  6. Select your-workspace/wars as your location.
  7. Select your preferred Build type.
  8. Select your preferred Component Suite.
  9. Click Finish

Your new JSF Portlet WAR will be added to your project under the wars folder.

Please let me know if you need any more information.

- Kyle

thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Bilal, this post inspired me to write a feature request so that JSF projects can more easily be nested in Liferay Workspace projects: IDE-4465. Thanks for the feedback.

- Kyle

Bilal Hussain, modified 6 Years ago. New Member Posts: 14 Join Date: 3/22/17 Recent Posts

Thanks Kyle for sharing information.

By following your steps  Jsf project created and went into  workspace/wars successfully . But facing issues are 

  1. Jsf project is not deployed when i try to deploy 
  2. created Jsf project goes out from workspace ang gives error ,click here

Note : Other project like mvc portlet deploy and run seamlessly.  I've configured the liferay home directory workspace through gradle.properties

thumbnail
Kyle Joseph Stiemann, modified 6 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Bilal, I'm glad you were able to generate a Liferay Faces project inside your Liferay Workspace project. Could you provide some more info so I can help debug your 2 new problems:

  • Did you select the "Gradle" option for the Liferay Faces project?
  • What's the error that you are getting in Liferay IDE for the generated Liferay Faces project?
  • Do you get any errors when you attempt to deploy the project?

- Kyle