« Retour - 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.

Moyenne (4 Voter)
L'estimation moyenne est de 1.75 étoiles sur 5.
Commentaires
Réponses Auteur Données
Hello, Where can I find the Spring sample... Charlycha Cha 15 juillet 2009 09:49
Try this:... Markus Nordhaus 9 septembre 2009 12:00
Any AJAX sample portlet? Andrew Koltsov 24 janvier 2010 10:49
Hello Everybody! I'm a student come from... ly tm 8 février 2011 18:15
All of these link are broken. Was they moved... Andrea Chiodi 9 août 2012 02:25
Why are none of the example portlets available?... Aaron Weikle 13 août 2012 12:13
All of these link are still broken... Fix it... Chort Tanner 24 octobre 2012 08:52
Broken links, still... Denis Kipchakbaev 3 septembre 2013 02:42
ANy DAO portlet sample? Akash Jaisawal 28 mai 2015 03:25

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

Thanks
Publié le 15/07/09 09:49.
Try this:
http://opensource.atlassian.com/confluence/spring/display/JSR168/Home

Markus­
Publié le 09/09/09 12:00 en réponse à Charlycha Cha.
Any AJAX sample portlet?
Publié le 24/01/10 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>
Publié le 08/02/11 18:15 en réponse à Andrew Koltsov.
All of these link are broken. Was they moved somewhere else?
Publié le 09/08/12 02:25.
Why are none of the example portlets available? Did someone update them and not update the link?
Publié le 13/08/12 12:13.
All of these link are still broken... Fix it please
Publié le 24/10/12 08:52.
Broken links, still...
Publié le 03/09/13 02:42.
ANy DAO portlet sample?
Publié le 28/05/15 03:25.