I am trying to figure out what is the advantage of using JSF with spring MVC apart from set of different UI component that JSF implementation provides? Both are MVC and both have different perspective navigational handling (in way both are simple to understand). Suppose I go with JSF and Spring MVC together in my application, what are the benefit that would get for design, implementation and maintenance?
They are both MVC, but JSF is component oriented, while Spring MVC is action-based.
You can best look up what those terms exactly mean yourself, but in short JSF allows a UI to be composited of high level visual building blocks (sliders, panels, progress bars, etc).
Spring MVC doesn't say that much about the actual UI. It emphasis a controller, which you map to a URL path and its parameters. After processing you direct/forward to something that renders a view (typically a JSP, but lately Thymeleaf is often used).
JSF is a part of Java EE, which also comes with a framework that has somewhat of the "class-to-URL" binding aspects of Spring MVC; JAX-RS. JAX-RS itself is neither an MVC nor request-based web framework though, but a web-services framework.
Using two different web frameworks in one app is very confusing and I can't recommend this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With