This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes AJAX, JSF and the binding attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX, JSF and the binding attribute" Watch "AJAX, JSF and the binding attribute" New topic

AJAX, JSF and the binding attribute

Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
There is an attribute in JSF called "binding" which allows me to link the JSF component to a method which can be used to programmatically define what that attribute is.

Theoretically I can have a bean in session scope which represents the JSF page state. I can use AJAX to communicate state changes in the browser to the server and thus through the current session to the JSF.

Any experience out there with this sort of stuff? Or any known set of tools to manage this in an easier fashion?

It should be pretty straight forward. Get the Context, get the session get the form bean (managed bean) in session. Tell it what ajax told you tell ajax what it told you and let the client know what just happened.
I agree. Here's the link:
subject: AJAX, JSF and the binding attribute
It's not a secret anymore!