views:

499

answers:

6

I'm investigating presentation layers to be used with spring in our new project. I'm coming from PHP+Prado and want to move to something what is as simple as Prado and more powerfull than PHP.

I like Spring 3 and Spring MVC. It's very simple to learn and start working with. But I'm looking for "view framework" better than simple jsp. I need simple components as Datagrids, Lists, Trees drag-and-drop supported. I've created SpringMVC+Spring Web Flow 2 + Spring Faces + JSF configuration but it's very complicated to create simple things there. I need something simpler.

Do You have any ideas ?

+2  A: 

If you want those sort of rich controls, then some kind of JSF framework is the way to go. The standard JSF framework is rather poorly designed and inelegant, though.

You should have a look at JBoss Seam as an alternative. It's a top-to-bottom web framework that uses EJB3 and JSF, and it's pretty well integrated, making JSF a lot easier than it would otherwise be.

It's not Spring-based, though, so if your heart is set on Spring, then you need to look at other JSF implementations such as RichFaces.

Spring WebFlow probably isn't necessary for you at all, so I;d ignore that unless you have a good reason.

skaffman
I've already finished large application based on Jboss Seam. It's a great, powerfull framework - true. But this time I need something much simpler, without the whole EJB container etc...But I agree that JBoss Seam looks to be the best Enterprise framework now.
peperg
Vanilla JSF just don't ship with sort of CSS skins. All it does is rendering plain HTML which you yet have to style with CSS yourself. That doesn't make it ugly.
BalusC
@BalusC: I meant ugly in the framework sense, rather than the cosmetic sense.
skaffman
Ah yes, makes sense now. Seam is in that opinion indeed awesome.
BalusC
+2  A: 

In Java EE there are currently only 2 view technologies: JSP and Facelets. JSP is old and about to retire. Facelets is newer and better and designed with JSF in mind so that they both fits smoothly in each other.

But Spring MVC and JSF are in fact competitors. They both have roughly the same goals and purposes. You should use the one or the other and not mix up them. Mixing two or more MVC frameworks in one page ain't going to work flawlessly. You can however use Spring as DI and/or Security framework in combination with JSF as MVC framework. Spring offers much more than only MVC.

Components like Datagrids, Lists, Trees drag-and-drop supported are not all available in the basic JSF implementation. For that you'll need a more enhanced (and skinned and ajaxical) component library, such as RichFaces, IceFaces, Trinidad, etc. I suggest to take a look at RichFaces, here is a live demo of the components available.

BalusC
Is it possible to create an application with Facelets in front and Spring behing without all Spring Web Flow magic ?
peperg
I don't do Spring, so I can't answer that reliability in detail.
BalusC
The descission is : JSF over Spring 3 without Spring MVC and Spring Web Flow.Now the question is : RichfAces or Icefaces or ...
peperg
The order is also roughly my recommendation ;) RichFaces is just Good.
BalusC
+1  A: 

A "View framework", have a look at Dojo, http://dojocampus.org/explorer/ since it's just html/css/javscript you can add that to any server technique

Kennet
+1  A: 

Jboss Seam offers all that you want. It works with Spring, but provides lot of inbuilt features by itself.

Padmarag
JBoss Seam uses JSF as a view layer
peperg
+1  A: 

A very powerful and light-weigth MVC action based framework is Stripes, give it a try!

naaka
I'm looking more like RichFaces
peperg
ok that's a aompletely different story.Stripes (as Spring MVC) is action based, while JSF is component based.Also consider switching from Spring to JBoss Seam/Weld if you use JSF.If you choose an action based framework, imo Stripes is the best out there.If you prefer component based framework, i especially like Primefaces (http://www.primefaces.org/) and Openfaces (http://www.openfaces.org/#1) libraries.
naaka
Also consider switching from Spring to JBoss Seam / Weld if you plan to use JSF, since they have a much tighter integration.
naaka
+1  A: 

I've used Jboss Seam + Richfaces for the last 3 years and find them both useful, but if I were you I'd also check out the Play Framework. It has Spring support and combined with jQuery UI or ExtJS you would get a very simple but highly effective environment. Certainly one reminiscent of developing in PHP from a speed point of view.

Damo
play is the optimal java framework for web dev.
sirmak