Why to integrate JSF with SPRINGS MVC

3 views
Skip to first unread message

shweta sharma

unread,
Jan 16, 2010, 1:51:09 PM1/16/10
to bo...@googlegroups.com
Hi ,
 
 
I  want to know  something about SPRINGS MVC + JSF integartion.
 
I have  searched over net  & heard  from ppl too that  JSF when integarted  with SPRINGS gives best performance
both  of these tech  provide good combination.
 
But as i have  gone through  JSF doc. etc. I came to know it provides the view  part  nicely .
It handle all  form level validations , component  /event based response on server side.
 
But  i am not convience fully  why  SPRINGS  needs to be integrated with JSF.
 
in SPRING MVC framework there is already 

import

org.springframework.validation.Validator;               Interface is provide d that  user can implement .

like this validations can heppen on server side.

then why to  put another layer of  managed bean through faces-config.XML

I have 1 scenario. for example  to prevent  duplicate value being entered into DB user has to develop logic where he has to hit DB to get all values previously enetered.

& compare it with usereneterd value. he can put this logic into either by extendedValidator class of  Springs MVC  or  in case of JSF  the managed bean class.

In both cases user is hitting DB.

Then  how JSF is said to be  reducing the work. why it is said that  JSF is useful to validate form at server side  itself.

I dont see  any reson to integrate  SPRINGS MVC framework with JSF . I guess SPrings is very rich framework that provides a lot  but to utilize it more developer need to

go through it  deeply.

IS there some concept missing in my understandings  or its just to use a new  framework ppl integrate  JSF  with Spings.

 

thanks & regards

Shweta Sharma

 

 

Tushar Joshi

unread,
Jan 17, 2010, 12:45:47 AM1/17/10
to bo...@googlegroups.com
Please check if this link can help you http://www.javaworld.com/javaworld/jw-11-2008/jw-11-intro-to-swf2.html?page=1

We have used the Spring beans instead of managed beans in JSF application, but haven't used Spring MVC with JSF yet

with regards
Tushar

==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE, ZCE, PMP
Software Architect @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com


--
You received this message because you are subscribed to the Google Groups "Bangalore Open Java Users Group- BOJUG" group.
To post to this group, send email to bo...@googlegroups.com.
To unsubscribe from this group, send email to bojug+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bojug?hl=en.


Kamal

unread,
Jan 18, 2010, 12:59:31 AM1/18/10
to Bangalore Open Java Users Group- BOJUG

I don't think people integrate Spring MVC with JSF - they serve the
same purpose. It might be needed in some edge cases like part of your
application is developed in springMVC and another part in JSF and you
want to make them work together.

However it makes sense to use spring framework for you business layer
and use JSF for the web layer - in which case you will need to
integrate spring with JSF.

Spring also has an implementation of JSF called SpringFaces which you
can consider using if you are using spring in the business layer and
want to use JSF (and the associated component libraries like
richfaces, icefaces etc).

Regards,
Kamal
http://springpeople.com/

On Jan 16, 11:51 pm, shweta sharma <shweta...@gmail.com> wrote:
> Hi ,
>
> I  want to know  something about SPRINGS MVC + JSF integartion.
>
> I have  searched over net  & heard  from ppl too that  JSF when integarted
> with SPRINGS gives best performance
> both  of these tech  provide good combination.
>
> But as i have  gone through  JSF doc. etc. I came to know it provides the
> view  part  nicely .
> It handle all  form level validations , component  /event based response
> on server side.
>
> But  i am not convience fully  why  SPRINGS  needs to be integrated with
> JSF.
>

> in SPRING MVC framework there is already  *
>
> import* org.springframework.validation.Validator;               Interface is

shweta sharma

unread,
Jan 18, 2010, 2:13:43 AM1/18/10
to bo...@googlegroups.com
Hi,
 
Thanks Kamal & Tushar for clarifying my doubt.
 
That link is really helpful in understanding how different tech are sewen with eachother.
 
thanks & regards
shweta

Reply all
Reply to author
Forward
0 new messages