selectBooleanCheckbox action not working

399 views Asked by At

Using seam I have a list of users that I display in a table. I have a checkbox in the table for each user. I want to be able to check the box and have it perform an action. Right now the action is just to print to the screen but checking the box does nothing. What am I doing wrong?

The Page...

 <form id="myTableForm">
            <h:dataTable id="userList"
                         var="_myUser"
                         value="#{emailUser.emailList}"
                         rendered="#{not empty etemVwUsersList.resultList}">
                <h:column>
                    <f:facet name="header">Add</f:facet>


                        <h:selectBooleanCheckbox value="#{_myUser.getEmail}" id="ID-#{_myUser.id}">
                            <a:support event="onclick" actionListener="#{emailUser.selectUser}"
                                action="#{emailUserList.selectUser}"/>
                        </h:selectBooleanCheckbox>              
                </h:column>

UserList returns a list of emailUsers and has a method "selectUser" to look up the user to change

User is just an object with name, id, etc but is not tied to the database

0

There are 0 answers