This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@DataModelSelection always returns the first element  RSS feed

 
Tamas Malatinszki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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?

Thanks,
Tamas
 
laurent nonnenmacher
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Did you find a solution ?

L.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!