0 Replies Latest reply on Sep 13, 2009 11:14 PM by germandev.net-seam.wje-online.de

    selectBooleanCheckbox & row selection

    germandev.net-seam.wje-online.de

      Hi!


      I am using Seam 2.2 and JBoss AS 5.1.0.GA.
      On a page I'm displaying a data table and want to enable the user to select some rows. This is done by putting a regular selectBooleanCheckbox on each row. The result is saved in a map (while _art is the row variable of the table):



      <rich:column id="colRemove" sortable="false" width="80px">
           <h:selectBooleanCheckbox value="#{aeHome.selMap[_art]}" />
      </rich:column>



      The aeHome object is an EntityHome<X> class. I tried several Scopes (and currently use Conversation) but the result is always the same: The put(..) method of the map (that is a member of the aeHome class) is never called and so no change is being saved.


      I realized that in a similar way, and so don't understand at all why this doesn't work. Might this be a Seam issue (my other example used Seam 2.1) or just an error of reasoning?


      Do you have a better idea how to detec a row selection? The data source of the table is a (dynamic) EntityQuery.


      Thank you so much in advance!