Working with Backing Beans in JDeveloper - The Right Way

Posted by shay.shmeltzer on Oracle Blogs See other posts from Oracle Blogs or by shay.shmeltzer
Published on Tue, 30 Mar 2010 09:22:38 -0800 Indexed on 2010/03/30 17:34 UTC
Read the original article Hit count: 596

Filed under:
|

One nice feature that was in JDeveloper for a long time is the ability to automatically expose every component on your JSF page in a backing bean. While this is a nice "work saving" feature, you shouldn't be using this one in most cases.
The reason is that it will create objects in your backing bean code for a lot of items you don't actually need to manipulate, making your code bigger and more complex to maintain.

The right way of working is to expose only components you need in your backing bean - and JDeveloper makes this just as easy through the binding property in the property inspector and the edit option it has.

Here is a quick video showing you how to do that:

© Oracle Blogs or respective owner

Related posts about jsf

Related posts about bean