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

Slides:



Advertisements
Similar presentations
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Advertisements

Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
JSF Portlet Backing Beans and UI Components Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in.
How to enroll in your electronic homework program
HELP GUIDE NEW USER REGISTRATION (SLIDE 2) TAKING A QUIZ (SLIDE 8) REVIEWING A QUIZ (SLIDE 17) GROUP MEMBERSHIP (SLIDE 26) CREATING QUIZZES (SLIDE 31)
Liferay, SSO and LDAP - Integration Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Welcome to the Brookdale Community College Online Employment System Applicant Tutorial.
Welcome to the Ivy Tech Community College Online Employment System Applicant Tutorial.
XMAS installation instructions Windows Version: 1.0 4/22/2008.
Compe 341 Oracle Installation Procedure. Oracle From Click.
1 Welcome to the Colgate University Online Employment System Applicant Tutorial.
Introduction to Liferay Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Struts Portlet Database Interaction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
An ide for teaching and learning prolog
Themes & Layout Tutorial Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Welcome to the University of Florida Online Employment System Applicant Tutorial.
Welcome to the Alaska Statewide System Online Employment System Applicant Tutorial.
© 2011 PLANET TECHNOLOGIES, INC. Augmenting User Profiles with Line of Business Data Patrick Curran, MCT APRIL 28, 2012.
Welcome to the Southeastern Louisiana University’s Online Employment Site Applicant Tutorial!
End User Administration (in context of Liferay CMS) Copyright © 2006 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or.
Understanding the IRS 990n e-Postcard COPYRIGHT 2010 Gold Wing Road Riders Association, Inc. All rights reserved under International and Pan-American Copyright.
Welcome to the University of West Florida Online Employment System Applicant Tutorial.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Making an HTML Document Notepad Group Bo Kim Dan Carter Han Chong Justin Weaver Kris Lamont.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
INE1020 Introduction to Internet Engineering Tutorial 8 All about Lab 6.
Struts Portlet Redirect Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
Another Method to Open WebSpace as a Web Folder Alternative Method for Creating Web Folder in WebSpace, Slide 1Copyright © 2004, Jim Schwab, University.
SchoolNet On-line Assessments. Sign-in to PowerTeacher 
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Presented by ESC 7 Advanced Academic Services. Click on Set up new account and follow the directions. Return to this page to log in and register for.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
SAM 2010 v1.5 Student Walkthrough. Initial Set Up 1.Ensure that you are connected to the Internet. 2.Launch your web browser (Internet Explorer 7 or 8,
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Once you have located the ISBN you would like to purchase, click “Add to Cart”. You will get a pop-up window showing the item you’ve added. If you are.
How to: REGISTER. STEP 1 Click the link shown below to register.
TEXTBOOK ADOPTIONS Mastering the New Online Adoption Process.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
WSRP Portlets Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSR 168 Overview Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Course Technology Student Navigation Guide. Step 1 – Initial Login Screen ►
Content Management System Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JSP Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
User Administration Guide Copyright © 2006 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
How to Create a Paypal Account A tutorial. At the Login screen for Paypal, click the option to Pay using your credit or debit card.
How to use WS_FTP A Step by Step Guide to File Transfer.
CheckPoint Reporting System for Seismic Surveys Setting Up for Multiple Users December 2012 Mid Point Geo Limited PO Box 7437 Reading Berkshire RG27 7HQ,
Database Connection Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Managing Your Specialty Area Website: A What’s What and How-To Guide.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Required Tools Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
PHP Form Processing * referenced from
Required Text Package ISBN: Math 1A03 McMaster University.
1 /22 Accessing TaxWise Online © 2006, Universal Tax Systems, Inc. All Rights Reserved. Accessing TaxWise Online Objectives –In this chapter you will learn.
Page ADP PearsonAccess Proctor Training. Page Agenda Test Overview Testing Components Proctor Roles and Responsibilities Overview Administering the Test.
Required Tools Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission from.
 Overview & Major Changes  Test Administrator View ◦ How to create a session ◦ How to approve students ◦ Practice  Student View ◦ Understand.
Apache Tomcat & Quick Tutorial
Copyright © Liferay, Inc.
Copyright © Liferay, Inc.
Welcome to Employee Self Service
How To Install Panda Antivirus For Mac?
Registration How to Register for Classes
CA_USD Help Desk Level 1 Training
Mastering the New Online Adoption Process
Use proper case (ie Caps for the beginnings of words)
JSF Portlet Message Bundles
Presentation transcript:

Basic Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, LLC.

Introduction Difficulty Level: Easy The source code for this presentation is located here: source-code-part1 Make sure to read the code! It’s important to become familiar with the basic structure before the exercises get more complicated.

Objectives The goal of this tutorial is to create a JSP portlet 1.Define the portlet portlet-ext.xml liferay-portlet-ext.xml 2.Create the JSP view.jsp

Directory Structure Configuration files are located here: ext\ext-web\docroot\WEB-INF JSPs are located here: ext\ext-web\docroot\html

Define the Portlet The first step will be to define the portlet in portlet-ext.xml The second step will be to define the portlet in liferay-portlet-ext.xml

portlet-ext.xml EXT_2 JSP Portlet Introduction com.liferay.portlet.JSPPortlet view-jsp /portlet/ext/jsp_portlet/view.jsp 0

text/html com.liferay.portlet.StrutsResourceBundle power-user user

Checkpoint 1.What is used for? 2.What is used for? 3.What is view-jsp? 4.What is /portlet/ext/jsp_portlet/view.jsp? 5.What is used for?

liferay-portlet-ext.xml The second step is to define the portlet in liferay-portlet-ext.xml EXT_2

view.jsp 1.Create the following directory structure: ext\ext-web\docroot\html\portlet\ext\jsp_portlet 2.Create view.jsp ext\ext-web\docroot\html\portlet\ext\jsp_portlet \view.jsp 3.Enter the following in view.jsp JSP Portlet!

Checkpoint 1.Why did we place view.jsp here? ext\ext-web\docroot\html\portlet\ext\jsp_portlet \view.jsp Hint: portlet-ext.xml 2.Where are configuration files like portlet- ext.xml and liferay-portlet-ext.xml located?

Deploy the Files to Tomcat 1.Click Start  Run… 2.Type cmd and press Enter 3.Navigate to C:\Training\liferay\ext 4.Type ant deploy

Checkpoint Verify that your files were deployed to Tomcat correctly. This is a required step! 1.Go to \tomcat\webapps\ROOT\WEB-INF 2.Check portlet-ext.xml and liferay-portlet-ext.xml and make sure they are correct 3.Go to tomcat\webapps\ROOT\html\portlet \ext\jsp_portlet 4.Make sure that view.jsp exists and that it is correct See the Troubleshooting section if your files were not deployed correctly.

Final Steps 1.Restart Tomcat: Click on the Tomcat Window Press Ctrl-C Double click startup.bat 2.Open up a new browser and type Login: Password: test 3.Click Add Content  Undefined 4.Click javax.portlet.title.EXT_2

Troubleshooting Question: My files are not being deployed to Tomcat correctly! Answer: You have an error in app.server.{user.name}.properties 1.Make sure that app.server.{user.name}.properties is located in C:/Training/liferay/ext 2.Verify that your {user.name} is correct 3.Make sure that app.server.{user.name}.properties contains the following: app.server.type=tomcat app.server.tomcat.dir=C:/Training/liferay/tomcat

Troubleshooting Question: My portlet is not showing up when I click Add Content  Undefined Answer: Your portlet is not defined correctly in portlet-ext.xml or liferay-portlet-ext.xml 1.Check portlet-ext.xml and liferay-portlet-ext.xml in C:/Training/liferay/tomcat/webapps/ROOT/WEB-INF 2.Make sure that the EXT_2 portlet is defined correctly.

Congratulations! You’ve created your first JSP Portlet! 1.Defined the portlet in portlet-ext.xml 2.Defined the portlet in liferay-portlet-ext.xml 3.Created the JSP in ext\ext-web\docroot\html\portlet\ext\jsp_portlet \view.jsp

Revision History Edward Shin09/14/06Updated for Liferay 4.1.2