Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Binding Components

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know how to bind the component value to an implicit object. I also would like to know
how to bind the component instance to a bean property. Please advise. Any ideas, suggestions, resources, links highly appreciated. Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Binding is done too much by JSF programmers. I think maybe it was the only option available when JSF was still being developed, but now there are better ways. Also, from what I can see, some "JSF GUI designer" apps make it easy on themselves by using binding instead of property references.

Property references are better than binding in most cases. For one thing, they require simpler (POJO) interfaces without the need for specialized platform-specific coding.

Where binding does prove useful is in cases where you want the backing bean to dynamically modify basic page layout and control properties. I've only done a few apps like that in over 5 years of working with JSF.

However, if you need specific info on how to use binding, most decent JSF books will provide examples. Kito Mann's "JSF in Action" does.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic