@DataModelSelection always returns the first element
posted 9 years ago
I just started to use Seam, and now I have a very weird issue with it. I'm using an entity (called Country), an action bean (called CountryAction) and a xhtml file which contains a h:selectOneListBox component.
Here is the entity:
This is the xhtml file:
And this is the action bean:
The problem is when I'm selecting a value from the selectOneListBox the selected item always will be the FIRST element of the countrys list. I've tried to use entities instead of SelectItem objects, but the failure was the same. There is no any error message, it's just works wrong. I'm using JBoss 4.2.2 and Seam 2.0.1 with JSF 1.2.
Is there anyone else who had the same issue before?