aspose file tools
The moose likes JSF and the fly likes JSF - Spring: In netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF - Spring: In netbeans" Watch "JSF - Spring: In netbeans" New topic
Author

JSF - Spring: In netbeans

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 225
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.


The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
James McCluskey
Greenhorn

Joined: Aug 23, 2007
Posts: 10
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

Joined: May 11, 2006
Posts: 225
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

Joined: Aug 23, 2007
Posts: 10
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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSF - Spring: In netbeans
 
Similar Threads
Facelets Error
I face some problem with any kind of jee framework. Think my learning process is not ok.
Prefer Seam over Spring
JavaServer Faces prerequisites and features
JSF with Spring MVC