File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF component binding does not get updated correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF component binding does not get updated correctly" Watch "JSF component binding does not get updated correctly" New topic
Author

JSF component binding does not get updated correctly

Stephen Ma
Greenhorn

Joined: Sep 21, 2003
Posts: 7
My JSF code:



The method getT1CategoryList in the backing bean that gets executed when I select from the selectOneMenu updates the columns attribute as well as the formElements attribute. Problem is, the getFormElements method does not get called. It makes no sense...the getColumns method gets called, so the panelGrid's column is updated correctly, but the binding formElements doesn't get updated.

Any help would be greatly appreciated!


Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?threadID=5362316
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
Stephen Ma
Greenhorn

Joined: Sep 21, 2003
Posts: 7
noted
Tom Fulton
Ranch Hand

Joined: Mar 30, 2006
Posts: 94
Can you post the information on the property you are connected to with the binding? Value and binding mean two different things...value is used to represent the "contents" of a control, while binding is used to refer to an instance of the class of the control itself. For example, for a <h:selectBooleanCheckbox> control, value would be associated with a boolean property, while binding would be associated with a UISelectBoolean instance. This gives you access to the control itself, in the case of binding, and direct access to its contents, in the case of value.

My guess is that it's not calling the method, because the binding is connecting to an inappropriate type of reference. You might very well have the method name right, but returning the wrong type of object.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF component binding does not get updated correctly
 
Similar Threads
actionlistener for selectBooleanCheckbox doubt?
AJAX part in jsp is not functioning with IE 6.0
Error while working with JSF SelectOneMenu and JSTL forEach Tag
h:selectOneMenu problem with bean actions
Ajax Listener does not get called properly