liferay portlet development

Liferay Portlet Development – A definitive guide 1 Table of Contents Preface 4 Evolution of this book4 Who should read this book?.4 What is not covered in this book?4 Conventions. 4 About the authors.4.

Nội dung chia sẻ: liferay portlet development

Liferay Portlet Development – A definitive guide 1 Table of Contents Preface 4 Evolution of this book4 Who should read this book?.4 What is not covered in this book?4 Conventions. 4 About the authors.4 Updates 4 Publisher's Note. 4 System Requirements 4 1. Introduction 4 Definition of a Portal. 4 What are portlets? 4 Portlet Specification (JSR286).4 Why Liferay and what makes it special?. 4 2. Setup. 4 Prerequisites for getting Liferay up and running. 4 a. Installing JDK. 5 b. Installing MySQL. 5 c. Installing Ant. 5 Getting Liferay up and running. 5 a. Unzip the liferay tomcat bundle 5 b. Remove all default plugins. 5 c. Make Liferay work with a production ready database 5 d. Starting up the Liferay Server. 5 Liferay Plugins SDK6 a. Installation. 6 b. Configuration 6 c. Create simple portlets6 Development Tools 6 a. Installing the latest version of Eclipse IDE. 6 b. Installing Liferay Eclipse IDE 6 c. Creating a simple portlet using Liferay IDE. 6 d. Anatomy of a portlet. 6 Supporting Tools6 a. MySQL Query Browser 6 b. Mozilla Firefox and Firebug. 6 c. An Unzip utility – WinRAR / WinZip.6 3. Library Management System. 6 Create a new Liferay Plug-in Project.6 Deploying “library-portlet” to the server.9 Adding the portlet to a page.10 Some code clean-up before we start 11 4. Creating a Form 11 Establishing a basic page flow. 11 Creating a form to add book 12 Learnings from this chapter. 14 Converting Simple HTML form to AUI form. 14 Liferay Portlet Development – A definitive guide 2 References 15 Liferay Portlet Development – A definitive guide 3 Preface Evolution of this book Who should read this book? What is not covered in this book? Conventions About the authors Updates Publisher's Note System Requirements 1. Introduction Definition of a Portal What are portlets? Portlet Specification (JSR286) Why Liferay and what makes it special? 2. Setup Prerequisites for getting Liferay up and running Create a prepackaged bundle and store on the cloud Liferay Portlet Development – A definitive guide 4 a. Installing JDK b. Installing MySQL c. Installing Ant Getting Liferay up and running a. Unzip the liferay tomcat bundle Once the prerequisite software is setup, we are ready to start installing the liferay tomcat bundle. To do this, follow these steps: a) Download a fresh copy of Liferay Portal bundled with Tomcat from the Liferay website at http://www.liferay.com/downloads/ b) Unzip this to a folder of your choice. c) We will call this folder b. Remove all default plugins a) Delete all folders under /tomcat6.x.x/webapps/, except for the folder ROOT and tunnel-web. b) Navigate to /tomcat6.x.x/bin/. c) Double-click on startup.bat(on a windows machine), or run the following command “sh startup.sh” (on a *nix based machine). d) Open a browser of your choice, and enter the url “http:localhost:8080”. c. Make Liferay work with a production ready database a) We need to setup a database now. b) Open the MySQL Query Browser, (or a command terminal) and log in to the MySQL server. c) Create a database named “lportal”. d. Starting up the Liferay Server a) Navigate to /tomcat6.x.x/bin. b) Double click on the file startup.bat (on a Windows machine), or open a command terminal and type “sh startup.sh” (on a *nix machine). This will startup Liferay. c) Open a browser of your choice, and enter the following url: http://localhost:8080. Liferay Portlet Development – A definitive guide 5 Liferay Plugins SDK a. Installation b. Configuration c. Create simple portlets Development Tools a. Installing the latest version of Eclipse IDE b. Installing Liferay Eclipse IDE c. Creating a simple portlet using Liferay IDE d. Anatomy of a portlet Supporting Tools a. MySQL Query Browser b. Mozilla Firefox and Firebug c. An Unzip utility – WinRAR / WinZip 3. Library Management System In this chapter we will see how to put the foundation for a hypothetical “Library Management System” which we are going to build through-out this book. In every chapter that is going to follow we will keep adding a new feature, improving our LMS. Let us start with the liferay eclipse IDE to create the basic portlet for LMS. Create a new Liferay Plug-in Project Click on the option “New Liferay Plug-in Project” as shown. Liferay Portlet Development – A definitive guide 6 The dialog will open, 1. give the project name as “library” (all small letters) 2. make sure the plug-ins SDK and Liferay Portal Runtime are configured properly 3. check “Create custom portlet class” 4. click “Next” Liferay Portlet Development – A definitive guide 7 1. change the portlet class to “LibraryPortlet” 2. java package as “com.library” 3. select superclass of this portlet as.

truyện kiếm hiệp audio