« 返回到 Development

Sample Portlets

Liferay and its community provide sample portlets showcasing how to integrate a variety of frameworks, libraries and other technologies into Liferay Portal. This page lists the most popular:

Hibernate #

Samples demonstrating Hibernate for relational persistence:

Spring #

Samples demonstrating using Spring:

Service Builder #

Samples demonstrating using Service Builder:

DAO #

Samples demonstrating Data Access Objects.

JSP #

Samples demonstrating JavaServer Pages a simplified, fast way to create dynamic web content.

JSF Technologies #

Samples demonstrating Java Server Faces technology, a server-side user interface component framework for Java technology-based web applications built upon JSP.

There are many more JSF samples in the plugins downloads page.

Scripting portlets #

Samples demonstrating how to develop portlets using ruby and PHP can be download from

There are also sample portlets for Groovy, Javascript and python. A description about how to develop portlets with scripting languages can be found in Scripting languages to develop portlets.

Hooks #

Sample Expando Hook

Other Samples #

See the complete file listing at the plugins downloads page.

0 附件
128461 查看
平均 (4 票)
满分为 5,平均得分为 1.75。
评论
讨论主题回复 作者 日期
Hello, Where can I find the Spring sample... Charlycha Cha 2009年7月15日 上午9:49
Try this:... Markus Nordhaus 2009年9月9日 下午12:00
Any AJAX sample portlet? Andrew Koltsov 2010年1月24日 上午10:49
Hello Everybody! I'm a student come from... ly tm 2011年2月8日 下午6:15
All of these link are broken. Was they moved... Andrea Chiodi 2012年8月9日 上午2:25
Why are none of the example portlets available?... Aaron Weikle 2012年8月13日 下午12:13
All of these link are still broken... Fix it... Chort Tanner 2012年10月24日 上午8:52
Broken links, still... Denis Kipchakbaev 2013年9月3日 上午2:42
ANy DAO portlet sample? Akash Jaisawal 2015年5月28日 上午3:25

Hello,
Where can I find the Spring sample portlet sources (the WEB-INF/lib/petportal.jar contains only class files)

Thanks
在 09-7-15 上午9:49 发帖。
Try this:
http://opensource.atlassian.com/confluence/spring/display/JSR168/Home

Markus­
在 09-9-9 下午12:00 发帖以回复 Charlycha Cha
在 10-1-24 上午10:49 发帖。
Hello Everybody!
I'm a student come from VietNam!
I'm studying about Richface framework!
I had got a problem in JSF(Richface) Portlet when I used JavaScript!
That problem is : I could not get a value into a <h:inputText /> with JavaScript!
Can anybody help me?
Thank you very much!
This is my code:

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function check() {
var result = document.getElementById("myform:form").value;
alert(result);
}
</script>
</head>
<body>
<f:view>
<h:form id="myform">
<h3>Hello :</h3>
<h:inputText value="" id="form" />
<h:commandButton value="OK" onclick="check();"/>
</h:form>
</f:view>
</body>
</html>
在 11-2-8 下午6:15 发帖以回复 Andrew Koltsov
All of these link are broken. Was they moved somewhere else?
在 12-8-9 上午2:25 发帖。
Why are none of the example portlets available? Did someone update them and not update the link?
在 12-8-13 下午12:13 发帖。
All of these link are still broken... Fix it please
在 12-10-24 上午8:52 发帖。
在 13-9-3 上午2:42 发帖。
在 15-5-28 上午3:25 发帖。