GeeCON Prague 2014*
The moose likes Struts and the fly likes Spring-JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Spring-JSF" Watch "Spring-JSF" New topic
Author

Spring-JSF

Luigi Rubino
Greenhorn

Joined: Feb 26, 2004
Posts: 11
I'd like to have some insights about Spring-JSF integration...
(if they will ever integrate well, etc...)

Thanks,
Luigi


Luigi Rubino<br /> <br />SCJP (1.5, 1.4, 1.2), SCBCD (1.3) , SCWCD (1.4, 1.3), SCEA (Part I)<br />MCP
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Luigi Rubino:
I'd like to have some insights about Spring-JSF integration...
(if they will ever integrate well, etc...)


Yes they did integrate well... There is even one Open Source Tool that integrates JSF 1.1 and Spring 1.1 RC2... The following is some description about it...
JSF-Spring provides Spring with a WebApplicationContext containing JSF's managed-beans and integrates it into Spring's context hierarchy. Thus it makes Spring beans available to JSF beans and integrates JSF beans into Spring, providing a more comprehensive (bidirectional) integration, including the ability to use Spring's features within JSF beans. Furthermore, you are able to scope Spring beans in the same way you can scope JSF beans, giving you the additional session and request scopes.


Hope it helps..


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
pjoisha
Ranch Hand

Joined: Mar 06, 2001
Posts: 123
There's also a good article that i came across yesterday

http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html

Hope this helps

PJ
[ September 01, 2004: Message edited by: Prashanth Joisha ]
Luigi Rubino
Greenhorn

Joined: Feb 26, 2004
Posts: 11
THANKS!!!
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Prashanth Joisha:
There's also a good article that i came across yesterday

http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html

Hope this helps

PJ

[ September 01, 2004: Message edited by: Prashanth Joisha ]


Thanks a lot for the link to the great article...

I found it's knowledgable and especially the portion that discusses about the reason why we should use JSF... FYI, I extracted some part of the article down here... Hope others might find it useful...


Why JSF?
JSF is not just another Web framework. The following features differentiate JSF from other Web frameworks:

Swing-like object-oriented Web application development: The server-side stateful UI component model with event listeners and handlers initiates object-oriented Web application development.

Backing-bean management: Backing beans are JavaBeans components associated with UI components used in a page. Backing-bean management separates the definition of UI component objects from objects that perform application-specific processing and hold data. JSF implementation stores and manages these backing-bean instances in the proper scope.

Extensible UI component model: JSF UI components are configurable, reusable elements that compose the user interfaces of JSF applications. You can extend the standard UI component and develop a more complex component, e.g., menu bar and tree component.

Flexible rendering model: A renderer separates a UI component's functionality and view. Multiple renderers can be created and used to define different appearances of the same component for the same client or for different clients.

Extensible conversion and validation model: Based on the standard converters and validators, you can develop customized converters and validators, which provide better model protection.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Spring 1.1RC2 Released's JSF feature:

- basic JSF support in the form of a JSF VariableResolver implementation that is aware of Spring-managed middle tier beans.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341

There's also a good article that i came across yesterday

http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html

Hope this helps

PJ


Thanks GREAT ARTICLE

It shows me how to integrate JSF with the Spring Framework and Hibernate.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Hi
I was trying to use jsf-spring.jar and got error in my log:


SEVERE: Error listenerStart
Sep 2, 2004 11:30:18 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Unless you tell us what the "previous errors" were - including (excerpts from) stack traces - there's no way we can help you.

- Peter
[ September 03, 2004: Message edited by: Peter den Haan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring-JSF