Forums de discussion
Cannot found "portlet.xml" in portlet liferay 7
Pika chu, modifié il y a 7 années.
Cannot found "portlet.xml" in portlet liferay 7
New Member Publications: 13 Date d'inscription: 09/03/17 Publications récentes
Hi all,
I am newbie in liferay and i have a question:
I want to use Spring MVC in liferay, i create a new portlet.
I read document and some tutorial, we must modify something in "portlet.xml" file.
But, i don't see "portlet.xml" file, please help me!
I use Liferay 7.
Thanks.
Here is my structure portlet:
I am newbie in liferay and i have a question:
I want to use Spring MVC in liferay, i create a new portlet.
I read document and some tutorial, we must modify something in "portlet.xml" file.
But, i don't see "portlet.xml" file, please help me!
I use Liferay 7.
Thanks.
Here is my structure portlet:
Pièces jointes:
Nirav Prajapati, modifié il y a 7 années.
RE: Cannot found "portlet.xml" in portlet liferay 7
Regular Member Publications: 133 Date d'inscription: 25/06/15 Publications récentes
In LIferay 7 all the configuration related to liferay-portlet.xml, liferay-display.xml, portlet.xml are stored in portlet class.
James Hinkey, modifié il y a 7 années.
RE: Cannot found "portlet.xml" in portlet liferay 7
Junior Member Publications: 62 Date d'inscription: 15/02/11 Publications récentes
In Liferay 7, you can develop Java EE WAR-style portlets (using frameworks such as Spring MVC and others) or develop portlets as OSGi modules.
You can use Blade CLI to generate a sample Spring MVC portlet: blade samples blade.portlet.springmvc
The sample has a portlet.xml file. It's listed in the attached folder structure image.
Portlets created as OSGi modules use @Component annotation properties to specify descriptors for the portlet. The HelloYouPortlet in tutorial Liferay as a Development Platform demonstrates this. See reference article Portlet Descriptor to OSGi Service Property Map to learn the properties that correspond to the portlet.xml descriptors.
See also:
Starting Module Development
Liferay MVC Portlet
Hope that helps.
Jim
You can use Blade CLI to generate a sample Spring MVC portlet: blade samples blade.portlet.springmvc
The sample has a portlet.xml file. It's listed in the attached folder structure image.
Portlets created as OSGi modules use @Component annotation properties to specify descriptors for the portlet. The HelloYouPortlet in tutorial Liferay as a Development Platform demonstrates this. See reference article Portlet Descriptor to OSGi Service Property Map to learn the properties that correspond to the portlet.xml descriptors.
See also:
Starting Module Development
Liferay MVC Portlet
Hope that helps.
Jim
Pièces jointes:
ronak vora, modifié il y a 5 années.
RE: Cannot found "portlet.xml" in portlet liferay 7
Junior Member Publications: 25 Date d'inscription: 26/09/18 Publications récentesI have same problem , and i ama using maven with liferay 7.1.
Please help me for this issue ???
ronak vora, modifié il y a 5 années.
RE: Cannot found "portlet.xml" in portlet liferay 7
Junior Member Publications: 25 Date d'inscription: 26/09/18 Publications récentes
RE: Cannot found "portlet.xml" in portlet liferay 7
Cody Hoag, modifié il y a 5 années.
RE: Cannot found "portlet.xml" in portlet liferay 7
Junior Member Publications: 70 Date d'inscription: 26/04/12 Publications récentesI just tested generating a Spring MVC portlet with the latest Maven archetype. The portlet.xml file is stored in the src/main/webapp/WEB-INF folder. Is it not available for you there when leveraging the archetype?