JamesBranam's Blog
Binding Attributes Again

Hi all,
A couple of weeks ago, I wrote a blog entry about adding binding attributes to components in NetBeans 6.1 Visual Web JSF applications. For most of you out there (those playing around with NetBeans 6.1), this is probably a no-brainer, but some components are easily overlooked when you do this. What I'm talking about precisely is adding a binding attribute to the form component. If you plan on adding any Java code to the form component - and in a lot of cases you will) - you might want to check to see it has a binding attribute. Just go to the JSP Editor and look for the form component. If it has no binding attribute, it will look something like this:

Time to add a binding attribute. Now hold on, before you start clicking all over the Visual Designer trying to add the binding attribute to the form, consider doing it in the Navigator window, where it is easy and crisp (this word just sounded right here). It should look something like this.

There you go. Now you're in business. To check if the binding attribute is in fact there, just go back to the JSP Editor and check the form component again.

The form component is often overlooked when adding binding elements, and if you forget this step, some projects will not work.
Hope this helps.
See you tomorrow.
--James
Posted at 03:45PM Apr 22, 2008 by branajam in NetBeans |