Backing beans, as defined in Core JSF, are beans that maintain references to components in a page. As we point out in the book, sometimes it's necessary to do that; for example, to validate multiple fields at once in a page.

As a general rule, you should use backing beans sparingly because it ties your beans to your components.


david geary

Le Dec 10, 2004, � 9:11 AM, mfaine a �crit :

I'm reading Core JavaServer Faces by David Geary and Cay Horstmann. The
authors sugest using backing beans rarely if ever and when I asked Mr.
Horstmann about it I was never able to get a clear answer to this question:


Isn't the difference academic?. I can't see how you can write a complete
JSP site without mixing some presentation and business logic. Could anyone
explain to me how this is possible?


Thanks,
-Mark

Reply via email to