• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring-JSF

 
Luigi Rubino
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to have some insights about Spring-JSF integration...
(if they will ever integrate well, etc...)

Thanks,
Luigi
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
pjoisha
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS!!!
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic