File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF Binding Components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Binding Components" Watch "JSF Binding Components" New topic

JSF Binding Components

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF Binding Components
It's not a secret anymore!