wood burning stoves 2.0*
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 8 in Action this week in the Java 8 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
Author

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: http://aspose.com/file-tools
 
subject: AJAX, JSF and the binding attribute
 
Similar Threads
Which Binding Type Do You Prefer And Why
Example to make JSF work with DWR
AJAX, JSF and security
How do I update a bean value from an AJAX call?
Datatable Refresh Issue