3 Replies Latest reply on Dec 4, 2007 7:31 PM by Pete Muir

    How obtaining data from a select box

    Tim Morgan Newbie

      I'm pretty new to Seam and try to go through the book and the examples.
      No I have a problem. I wonder how I can display data from a database table in a select box which allows me to choose one element and edit this entry.
      I tried


      for the select element

      for the data which works but as I read here several times here <s:selectItems> lacks an itemValue attribute so the value attribute of the rendered option elements can not be set to the id of the displayed data for example.
      I think this is necessary for me if I want to choose one item and use the chosen id as parameter to modify the selected element.

      Does anyone have an idea or an alternative way to display data in a select box and choose an item?