File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes MVC Driven Portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "MVC Driven Portlets" Watch "MVC Driven Portlets" New topic

MVC Driven Portlets

E Cho

Joined: Apr 24, 2009
Posts: 9
Hi Ashish,

I noticed you've included a chapter or two on the integration on Spring MVC and JSR 286.

In the past I've used JSF 1.x and Struts 1.x to "MVCify" portlets and discovered they were more work than it was worth, especially when integrating a lot of AJAX.

Can you comment on if you've used these or any of the newer versions (ie JSF 2, Struts 2) and how they compare with each other and Spring MVC?

Ashish Sarin
Ranch Hand

Joined: Nov 20, 2000
Posts: 432

In the past there was no standard Portlet Bridge and also support for AJAX use cases was not addressed by JSR 168.

The portletfaces bridge project supports JSF 2, which takes care of JSF 2.0 AJAX features (thanks to resource URL/ResourceRequest feature of JSR 286). For an example usage of portletfaces bridge (which makes use of JSF 2.0 AJAX feature), you can download the examples of chapter 14 from the following location: You'll find that its now become very easy to expose existing JSF 2.0 web applications as portlets or develop new portlets using JSF 2.0.

Portlets in Action book covers Spring Portlet MVC and not Spring MVC. Spring Portlet MVC is like a mirror image of Spring MVC but it is a dedicated framework for developing portlets. It doesn't hide the multiple request processing phases of portlets, making it a more intuitive framework to develop portlets using Spring Portlet MVC. Chapter 7 and 8 contains many examples of how to use Spring Portlet MVC portlets to create single or multi-page portlets.


Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
I agree. Here's the link:
subject: MVC Driven Portlets
It's not a secret anymore!