掲示板

Creating a portlet package as described in "Liferay in Action" book

12年前 に Larry Cronin によって更新されました。

Creating a portlet package as described in "Liferay in Action" book

New Member 投稿: 5 参加年月日: 11/09/07 最新の投稿
Hello

Hope it is OK to ask this question here.

I am using the "Liferay in Action" book to learn Liferay. I am on the section about portlets (page 48) and it has the following steps.

1 Create a package in your src folder called com.liferayinaction.portlet.
2 In this package, create a Java class called HelloYouPortlet.
3 This class should extend the GenericPortlet class, which is included with the
Portlet API and is available in every portal implementation

I have no idea how to do those three steps and are stuck. Could someone please point me in the right direction. I tried and searched on create package in Liferay but couldn't find anything that made sense.

Thanks

Larry C
thumbnail
12年前 に Hitoshi Ozawa によって更新されました。

RE: Creating a portlet package as described in "Liferay in Action" book

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Look at Figure 2.8 to find where the src is. Just create a sub-folder under the src folder named "com" and create a sub-folder
named "liferayinaction" under that, and create "portlet" under that.
In the "portlet" folder, create a text file named "HelloYouPortlet.java".
Just enter the codes at the bottom of the page in this text file and save.
12年前 に Larry Cronin によって更新されました。

RE: Creating a portlet package as described in "Liferay in Action" book

New Member 投稿: 5 参加年月日: 11/09/07 最新の投稿
Thanks

That is easy enough. I was trying to create something using ANT ans could not figure out how to do it,

Larry C
thumbnail
12年前 に Hitoshi Ozawa によって更新されました。

RE: Creating a portlet package as described in "Liferay in Action" book

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
You'll have to wait until page 58 to execute the ant command. :-)