Skip to content

exo-addons/sample-springmvc-portlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring MVC Portlet Sample

This addon is a Spring MVC Portlet Sample. It is a demo application that manages contacts.

The following features are used in this sample :

  • Spring MVC Portlet action and render mapping
  • Dependency Injection (using @Inject)
  • Form binding
  • Form Validation (Hibernate Validator)

Getting Started

Step 1 : Install

Prerequisite : install eXo Platform 4.0 Tomcat bundle (EXO_TOMCAT_ROOT_FOLDER will be used to designate the eXo Tomcat root folder).

You can install this sample by either :

  • using the extension manager

_TODO

  • or building them with Maven and installing them manually

Prerequisite : install Maven 3

Clone the project with

git clone https://github.com/exo-addons/sample-springmvc-portlet.git
cd sample-springmvc-portlet

Build it with

mvn clean package

Copy the extension binary with

cp portlet/target/sample-springmvc-portlet.war EXO_TOMCAT_ROOT_FOLDER/webapps

Step 3 : Run

Start eXo with

cd EXO_TOMCAT_ROOT_FOLDER
./start_eXo.sh

Step 4 : Add the portlet sample in a page

Here are some screenshots :

  • contacts list

Contacts list

  • contact creation

Contact creation

  • contact update with validation errors

Contact update

Enjoy !

About

A Spring MVC Portlet sample packaged like an add-on

Resources

License

Stars

Watchers

Forks

Packages

No packages published