没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Liferay Portlet Development – A definitive guide 1
Table of Contents
Preface.................................................................................................................................................. 4
Evolution of this book......................................................................................................................4
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 SDK........................................................................................................................6
a. Installation............................................................................................................................... 6
b. Configuration.......................................................................................................................... 6
c. Create simple portlets..............................................................................................................6
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 Tools..............................................................................................................................6
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 <Liferay-Home>
b. Remove all default plugins
a) Delete all folders under <Liferay-Home>/tomcat6.x.x/webapps/, except for the
folder ROOT and tunnel-web.
b) Navigate to <Liferay-Home>/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 <Liferay-Home>/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
剩余20页未读,继续阅读
资源评论
- 风行傲天2014-04-30文档时英文的,很多不容易看懂,不适合英文不好的人看,还好配置有图片解析
zolo
- 粉丝: 37
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- pta题库答案c语言之排序4统计工龄.zip
- pta题库答案c语言之树结构7堆中的路径.zip
- pta题库答案c语言之树结构3TreeTraversalsAgain.zip
- pta题库答案c语言之树结构2ListLeaves.zip
- pta题库答案c语言之树结构1树的同构.zip
- 基于C++实现民航飞行与地图简易管理系统可执行程序+说明+详细注释.zip
- pta题库答案c语言之复杂度1最大子列和问题.zip
- 三维装箱问题(Three-Dimensional Bin Packing Problem,3D-BPP)是一个经典的组合优化问题
- 以下是一些关于Linux线程同步的基本概念和方法.txt
- 以下是一个简化的示例,它使用pygame库来模拟烟花动画的框架.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功