• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

@DataModelSelection always returns the first element

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Did you find a solution ?

L.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic