• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF - Spring: In netbeans

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Netbeans 5.5.1 + visual web pack. I have tried on a sample application creating a web page with JSF. It was quite handy with all those graphical drag and drop support. (sessionbeans, requestbeans, applicationbeans).

Now, For the architecture of our application we are using Hibernate at DB level, Spring at middle layer and JSF and UI end. Now I am unable to get how will i bind the values that are coming from UI (JSF) in the controllers of Spring for further use. Will i have to do some thing sessionbean or something else.
 
James McCluskey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forgive me if I've misunderstood your question...

I think you need to inject a spring configured service object into your JSF bean, something like this (sorry for the clunky example):



How to get Spring to actually set up the ApplicationContext and do the injection of the service object? Full information in the Spring User Guide at http://static.springframework.org/spring/docs/2.0.x/reference/webintegration.html#jsf

Cheers, Jim.
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, thanks for help. But i am talking about in a bit NetBeans context.

I can get the sessionbean from the JSF UI via binding the fields using NetBeans Visual IDE, now i really can not get a way that i can INJECT/BIND data from that sessionbean to the controller of spring or that sessionbean directly represent thing to NetBeans sessionbean binding object for JSF.
 
James McCluskey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah sorry, I'm IDE-phobic I'm afraid so I can't help there.

Out of interest, what do you mean by Spring Controller?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!