The sample portlets and layouts were developed by Liferay to teach the community how to create portlets and layouts. Contact us at email@example.com
if you would like us to promote components you have developed.
The sample portlets are JSR-168 compliant and can be hot-deployed. Portlet WARs are componentized applications and cleanly separated from the portal. Our goal is to provide the community with enough sample portlets so that everyone can go out and create JSR-168 compliant portlets to meet real-world needs.
Layout templates are used when adding content so that users can easily arrange portlets inside a custom design template. See the documentation for more information on Layout Design Templates.
|Sample JSR-168 Portlets|
|Sample DAO Portlet|
This portlet has one data access object that allows users to add, update, and delete entries. This portlet does not utilize a MVC or persistence framework in order showcase the minimum steps of writing a portlet that communicates with a database.Sample JSP Portlet
This portlet shows how to include JSPs from a portlet.
Sample JSF Sun Portlet
This portlet shows how to use the Sun implementation of JSF as a portlet.
Sample JSF MyFaces Portlet
This portlet shows how to use the MyFaces implementation of JSF as a portlet.
Sample JSON Portlet
This portlet shows how to use JSON and AJAX to pull an application through a portlet.
Sample Struts Portlet
This portlet uses Struts as a MVC framework to cleanly separate business logic from display logic. Developers who are familiar with Struts can use this portlet as an example of how to migrate existing Struts applications from a servlet environment to a portlet environment.
|Sample Layout Templates|
|Sample Pack 01 Layout Templates|
This sample pack includes the 2-1-2 layout template. The first row is made up of two columns of portlets. The second row is made up of one column. The third row is made up of another two columns.