This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Richfaces suggestion box not setting correct values on server bean
posted 5 years ago
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.