Generally speaking, backing beans serve as adapters between JSF views and your business logic (which is usually in some other class -- in your case, EJBs). So, I tend to think think of them as part of the controller, especially since they can have direct references to UI components, which definitely isn't something you would do in the model. In your case, I think that's the role they're playing in your application, because they're delegating to EJBs.
That being said, JSF's interaction with backing beans is pretty flexible, so you could actually use them more as model code, and I believe that's the approach JBoss Seam takes... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kito D. Mann ([EMAIL PROTECTED]) Author, JavaServer Faces in Action http://www.virtua.com - JSF/Java EE consulting, training, and mentoring http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info > -----Original Message----- > From: numpsy beelzebub [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 20, 2006 7:44 PM > To: [email protected] > Subject: shale / jsf mvc problems > > i tried to understand the context of mvc on which shale is > built if we use ejb 3.0 as models with business logic... > > if i try a button a action will called. mostly an method in > my backing bean. > > tthis prepares data for ejb and afterwards method gives back > etc navigation case... > > so is the action called also model! >
