Confused about rich framework to be used with spring - spring

my requirement is to develop rich web applications quickly and easily, and the framework must be easy/compatible with spring something like IceFaces
i am confused about IceFaces/PrimeFaces, or use jsp with YUI/DWR
please advise me.

I wrote Spring integration with JSF 2.1 + RichFaces 4. it works not bad, if you are searching for rapid rich client implementation it might be good choice though.
You can see basic tutorial how it works:
http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/

SpringSource suggests PrimeFaces officially.
http://forum.springsource.org/showthread.php?98040-Which-jsf-2-component-library-to-use

ZK is a good solution and has good integration with spring

Since the question is not really PrimeFaces vs IceFaces (both JSF), but JSF vs YUI (or any other rich client framework), then the question comes down to: whatever makes sense for you. See my answer here: Spring MVC, what view components to use?.

Incase you are open to options other than "IceFaces/PrimeFaces, or use jsp with YUI/DWR"
Take a look at Spring Roo and GWT combination
It is geared for rapid development, with a lot of emphasis on template based code generation. GWT is a very powerful framework when it comes to developing Rich Applications.

Related

can i use Spring framework for developing JSP application?

I have Eclipse-EE 3.6 IDE...I want to develop a Web Application using JSP and Servlet.
I plan to develop this application using Spring framework.
is it possible...can i use Spring framework for developing JSP application?
can you provide some Tutorials for JSP Application development using spring for beginners.
You can use Spring MVC. Try following tutorials:
http://static.springsource.org/docs/Spring-MVC-step-by-step/
http://www.vaannila.com/spring/spring-mvc-tutorial-1.html
http://maestric.com/doc/java/spring
Thanks.
Yes, you can. JSP is a standard view technology for spring-mvc. I'd recommend the official spring-mvc documentation
Yes, I would say, that this is one of the most done use case for Spring.
Anyway: I strongly recommend to use STS (SpringSource Tool Suite), it is free and based on Eclipse 3.6 Java EE, but provides additional Spring features. For example the some templates for Spring Projects (new Project/SpringSource Tool Suite/Spring Template Project).
And one very interesting Feature: Task Base Tutorials. They are great if you want to lern form an example: Dashbord/Tutorials/

Experiences with integrating spring 3 mvc with GWT?

Given:
Spring 3.0 mvc has excellent REST support with one of the representation being JSON.
GWT simplifies development as UI is developed in java. But by default it uses RPC for client server interaction. But there is an option to use JSON.
Questions:
Can you share experiences with using Spring 3.0 mvc with GWT ?
What is the best approach to integrate these two frameworks?
Is the default GWT's MVP architecture only for client side and does it work well with JSON?
Thanks
Can you share experiences with using Spring 3.0 mvc with GWT ?
Yes. We've successfully built a whole large application around GWT and Spring MVC (1500 source files, 6 months in development).
Spring was the key to the project's success. Only with Spring we were able to test individually some pieces of the application on the server side.
What is the best approach to marry these two frameworks?
Ignore the default Servlet used by GWT and instead create your own Spring controller to handle incoming GWT-RPC requests. This blog post was the key to integrating the two techs.
We also successfully integrated other components: Flash for animated charts and third-party Javascript components for other stuff. These communicate with the server through JSON. So you have two or more kinds of URLs:
the *.rpc urls are for GWT components and are served by the Spring controller for gwt
the *.json urls are for other components and are served by another Spring controller.
Also, in our case, we shunned configuration with annotations and instead preferred configuration with the good old Spring XML files. They make it much more clear what's going on. Except for the #Required annotation; it's great to find spring beans that should be connected but aren't.
Is the default GWT's MVP architecture only for client side and does it work well with JSON?
GWT's MVP architecture works best if you follow the guide lines. Use GWT-RPC communication as Google suggests.
You can still have JSON for other client-side components.
Try this solution: GWT and Spring MVC Integration
It uses 3 classes. Its very simple, declarative and clear.
It's stupid to mix Spring MVC and GWT. Also it's stupid to mix Spring MVC and JSF... It's stupid to mix 2 MVC (MVP) frameworks together. But you can use Spring DI and GWT for sure!
You may want to check out Spring Roo. It will help you get started quickly with Spring MVC, especially when dealing with RESTful URLs. It also provides a means to automatically set up GWT "scaffolding" (GWT code to interact with the Spring MVC backend). Hope it helps!

How to best apply Spring, Spring MVC and Hibernate frameworks

I'm an individual programmer, developer and I see a huge demand for the frameworks: Spring, Spring MVC, webflow, and Hibernate. Popular today: Spring MVC, webflow, GWT.
I've been going through the tutorials, and the technology looks awesome !
What I would like to know, is.. It's used in corporate sites, why not for smaller sites. How can I apply these frameworks in building websites ?
I can't imaging doing any kind of serious website building without a modern CMS or Portal framework (whether in Java/php-opensource), And yes, MVC gives you the validation and authentication hooks to be used.
All the demo's on Spring, cover some elementary, contrived example.
If I learn these technologies (and I'm well on my way), how do I put them into practice, and in what context (no pun intented) do I use them ?
I don't want to rebuild a CMS system, but I'd like to employ these frameworks effectively.
You should have a look at Magnolia/Blossom.
Magnolia is a Java (JCR) based Repository, and Blossom some kind of Spring integration.
I used it in one of my project, it worked. (Not all Spring 3.0 Features worked - for example I was not able to map two or more urls to one controller), but it worked) And I was not able to find any other mature Spring based CMS.
At least I belive the power of Spring MVC is more in web based applications than in simple web sites.

Suggest a good Ajax framework to be used with Spring/java?

Greetings all
i want to use ajax with spring framework
and i was wondering what framework is easy to use and has good support & samples with spring framework, like the DWR, any suggestions ?
Spring Webflows internally uses Dojo components on the clienside for Ajax calls. You can also combine your own distribution of Dojo (Spring does not include all the GUI goodies in their Dojo distribution) so that whenever you do use Dojo, you don't end up with one version of Spring and one of your own.
The Spring team prefers Dojo. I believe it's built into Spring.
There's also BlazeDS support if you want to use Flex.
We have been successfully using JQuery and ExtJs frameworks on the client side and Spring MVC / annotations on the server side.
I heard a lot about mootools also.

Using Spring MVC with JSF [duplicate]

This question already has answers here:
Using JSF as view technology of Spring MVC
(3 answers)
Closed 7 years ago.
Im using Spring MVC by itself till now, works great, but i hear from friends that JSF is also good, has some good visual stuff, even though i dont really know much bout JSF. So my question is: Is it possible to mix Spring MVC with JSF? If it is, is it a good thing to do or theres a better way to do it?
Try to stick with this equations:
Spring MVC + ORM (hibernate) + JSP + Jquery
or
EJB + JSF + RichFaces
It is definitely possible but with lot of effort. It's better to use spring framework only for the DI for services and DAO layer and use JSF for front end components. You can define two controllers with two different mappings say one with jsf and one with do and forward requests accordingly.
JSF is primarily component based MVC framework and probably the first successful event based web technology (analogous to Microsoft ASP .Net).
One can easily integrate with Spring MVC and it is good approach assuming existing business/web-application has been developed on Spring framework.
It is better to go with JSF2+JDBC(or JPA2) on Tomcat7/JavaEE6 certified servers.
JSF+EJB3.1+EclipselinkJPA or Hibernate JPA/your choice of JPA implementation
JSF+JDBC with or without traditional DAO
(1)EJB3.1+JSF2.1/2.2+PrimfeFaces/Tomahawk/Icefaces. Primefaces is one of the best and most popular JSF implementation; because primefaces has got rich UI components and excellent support from forum and nice examples and documentation, inbuilt JQuery support. Few things would be better in Tomahawk adn Icefaces. With JSF2 you can use more than one JSF implementation (i.e. Primefaces & Icefaces). JSF2 is easily pluggable into JDBC, Spring, and other widely used java web technologies.
(2)Just use JDBC+JSF with or without traditional DAOs for small, medium and large commercial web-application projects; because your application would be more easy to develop and maintain, more portable across tomcat and other webcontainers, no need of JavaEE certified (J2EE app servers) servers.
JSF is MVC and best used as View part of MVC
Integrating Spring MVC and JSF 2.1

Resources