This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Advantages and disadvantages of using JSF+Spring integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Advantages and disadvantages of using JSF+Spring integration" Watch "Advantages and disadvantages of using JSF+Spring integration" New topic
Author

Advantages and disadvantages of using JSF+Spring integration

Zainab Haf
Greenhorn

Joined: Sep 17, 2012
Posts: 11
Hi
Can anyone help me out that what are the main benefits and problems of using spring with JSF 2 over using standalone JSF 2 applications since JSF and spring itself are separate complete frameworks. How the use of their integration is useful?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

Spring is actually a whole collection of frameworks. Spring-web is the one that is most equivalent to JSF.

On the whole, I prefer to use JSF for web form-related facets of my webapps. It is more straightforward and is more supportive of reusable (POJO) components. However, I do have an app or 2 that use Spring to generate specialized output such as XML while still using JSF for the vanilla UI stuff.


Customer surveys are for companies who didn't pay proper attention to begin with.
Zainab Haf
Greenhorn

Joined: Sep 17, 2012
Posts: 11
So what do you suggest its better to use JSF only or application with JSF and spring integration when your form data is linked to database queries and procedures (i.e having dao and service layer)?
Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

Zainab Haf wrote:So what do you suggest its better to use JSF only or application with JSF and spring integration when your form data is linked to database queries and procedures (i.e having dao and service layer)?
Thanks


No. Spring-web is not directly related to database queries. That's Spring-persistence, and I inject Spring persistence service beans into my JSF backing beans all the time.

I was just saying that JSF is not well-suited to non-HTML, non-form output such as XML output, so I have used Spring-web for stuff like that.
Zainab Haf
Greenhorn

Joined: Sep 17, 2012
Posts: 11
Thankyou Tim Holloway for guidance.It was really helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantages and disadvantages of using JSF+Spring integration
 
Similar Threads
Spring vs JSF
Books on JSf and Spring integration.
Spring Framework and JSF
[Spring Web Flow 2] Integration with JSF
What else is Spring good for?