JSP Portlet Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.

Download JSP Portlet Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.

Post on 17-Jan-2016

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>JSP PortletCopyright 2000-2006 Liferay, Inc.All Rights Reserved.No material may be reproduced electronically or in print without written permission from Liferay, LLC.</p></li><li><p>IntroductionDifficulty Level: EasyThe source code for this presentation is located here: source-code-part2</p></li><li><p>ObjectivesThe goal of this tutorial is to change the Title of our portlet and add it to a CategorySet the Title Language-ext.propertiesAdd the portlet to a Category liferay-display.xml</p></li><li><p>Directory StructureConfiguration files are located here: \ext\ext-web\docroot\WEB-INFProperty files are located here: \ext\ext-ejb\classes</p></li><li><p>Language-ext.propertiesThe first step is to change the Title from javax.portlet.title.EXT_2 to JSP Portlet!Go to ext\ext-ejb\classes\content \Language-ext.propertiesEnter the following in Language-ext.properties: javax.portlet.title.EXT_2=JSP Portlet!</p></li><li><p>liferay-display.xmlNext, lets add our portlet to the Test CategoryGo to ext\ext-web\docroot\WEB-INF \liferay-display.xmlEnter the following in liferay-display.xml: </p></li><li><p>CheckpointWhat is happening in the following line? javax.portlet.title.EXT_2=JSP Portlet!What do you think category.test represents?Where are configuration files like liferay-display.xml located?Where are properties files located?</p></li><li><p>Deploy the Files to TomcatClick Start RunType cmd and press EnterNavigate to C:\Training\liferay\extType ant deploy</p></li><li><p>Final StepsRestart Tomcat: Click on the Tomcat Window Press Ctrl-C Double click startup.batOpen up a new browser and type http://localhost:8080 Login: test@liferay.com Password: test</p></li><li><p>Congratulations!Youve created your first JSP Portlet!Mapped the title from javax.portlet.title.EXT_2 to JSP Portlet! Language-ext.propertiesAdded our portlet to the Test category liferay-display.xml</p></li><li><p>Revision HistoryEdward Shin09/17/06Updated for Liferay 4.1.2</p></li></ul>

Recommended

View more >