Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why
« Back to 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 Attachments
118886 Views
Average (4 Votes)
The average rating is 1.75 stars out of 5.
Comments
Threaded Replies Author Date
Hello, Where can I find the Spring sample... Charlycha Cha July 15, 2009 9:49 AM
Try this:... Markus Nordhaus September 9, 2009 12:00 PM
Any AJAX sample portlet? Andrew Koltsov January 24, 2010 10:49 AM
Hello Everybody! I'm a student come from... ly tm February 8, 2011 6:15 PM
All of these link are broken. Was they moved... Andrea Chiodi August 9, 2012 2:25 AM
Why are none of the example portlets available?... Aaron Weikle August 13, 2012 12:13 PM
All of these link are still broken... Fix it... Chort Tanner October 24, 2012 8:52 AM
Broken links, still... Denis Kipchakbaev September 3, 2013 2:42 AM
ANy DAO portlet sample? Akash Jaisawal May 28, 2015 3:25 AM

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

Thanks
Posted on 7/15/09 9:49 AM.
Try this:
http://opensource.atlassian.com/confluence/spring/display/JSR168/Home

Markus­
Posted on 9/9/09 12:00 PM in reply to Charlycha Cha.
Any AJAX sample portlet?
Posted on 1/24/10 10:49 AM.
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>
Posted on 2/8/11 6:15 PM in reply to Andrew Koltsov.
All of these link are broken. Was they moved somewhere else?
Posted on 8/9/12 2:25 AM.
Why are none of the example portlets available? Did someone update them and not update the link?
Posted on 8/13/12 12:13 PM.
All of these link are still broken... Fix it please
Posted on 10/24/12 8:52 AM.
Broken links, still...
Posted on 9/3/13 2:42 AM.
ANy DAO portlet sample?
Posted on 5/28/15 3:25 AM.