GeeCON Prague 2014*
The moose likes JSF and the fly likes Richfaces suggestion box not setting correct values on server bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces suggestion box not setting correct values on server bean" Watch "Richfaces suggestion box not setting correct values on server bean" New topic
Author

Richfaces suggestion box not setting correct values on server bean

Roger manning
Greenhorn

Joined: May 02, 2011
Posts: 6
Hi,

I'm using richfaces 3.0.1 or very close to that in conjunction with seam
I have a problem with a suggestionbox component not seeming to have a selected value when an action event is called on the backing bean.
The list gets populated fine from the called suggestionAction method on the backing bean, so I see the list, can select a value and it gets populated back into the inputText component.
But the problem is when the setPropertyActionListener fires and calls the method on the bean the passed value to the method is ALWAYS null.

In my xhtml :-


I tried removing the usingSuggestObjects="true" bit and that made no difference either.
When I select a choice, the selectedAddress method on the backing bean gets called but the passed value is ALWAYS null.
What am I doing wrong so the selected object isn't getting passed back to the backing bean?
Here's the backing bean code :-



ps. I know its tempting to say : 'upgrade to latest rich faces version' as a fix all solution to this, but its not currently possible in our environment.
But if someone knows there's a known issue with 3.0.x of rich faces and above then please post where the issue is so I can try and justify the upgrade with the bosses.

Cheers
 
Don't get me started about those stupid light bulbs.
 
subject: Richfaces suggestion box not setting correct values on server bean