• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF Binding Components

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic