Get a list of objects whith boolean parma as checkbox from a p:dataTable
===

I have a problem that I deal with these two weeks in Jee with JSF and primeFaces, so please help me, I have a list of users that I display via a datatable in a jsf file, each user has a some attributes ( first name, last name ...) and a boolean attribute "deletee", I want to get the value of this boolean attribute but I can't I tried every thing that I found here and in other forums and tutorials;


the problem that I have is that the value of the checkboxes is always "false",

 this is a part of my jsf.xml file:

    <h:form>
    		<h:outputText value="USER's rights list: "></h:outputText>
    		<p:dataTable id="users" var="user" value="#{userMB.userListe}" style="width: 10%">
    			<p:column>
    				<f:facet name="header">
    					<h:outputText value="FirstName" />
    				</f:facet>
    				<h:outputText value="#{user.firstName}" />
    			</p:column>
    			<p:column>
    				<f:facet name="header">
    					<h:outputText value="LastName" />
    				</f:facet>
    				<h:outputText value="#{user.lastName}" />
    			</p:column>
    			
    			<p:column>
    					<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">  
    					<h:outputText value="Delete " />  
    					<p:selectBooleanButton value="#{user.deletee}" onLabel="Yes" offLabel="No" offIcon="ui-icon-close" onIcon="ui-icon-check" />
    					</h:panelGrid> 				 	
    			</p:column>
    		</p:dataTable> 
    		<td><p:commandButton id="getCheck" value="Add" action="#{userMB.getCheck}" ajax="false"/></td>	     	
    	</h:form>

a part of my backing bean :

    public List<UserDomain> getUserList() {
    		userList = new ArrayList<UserDomain>();
    		userList.addAll(getUserService().getUsers());
    		return userList;
    	}
    public void setUserList(List<UserDomain> userList) {
    		this.userList = userList;
    	}

my backing bean is `@ManagedBean(name="userMB")@ApplicationScoped`

the `UserDomain` class contains user attrubutes and their getters and setters, a part of it is :

    private String firstName;
    private String lastName;
    private boolean deletee;
    // with getters and setters 


note that I can display the liste of users, the problem is only that I can't get the value of the checked checkboxes that each user have, I event try to get the value of each user alone but nothing works as it should : 

    <h:form>
    		<h:outputText value="USER's rights list: "></h:outputText>
    		<p:dataTable id="users" var="user" value="#{userMB.userListe}" style="width: 10%">
    			<p:column>
    				<f:facet name="header">
    					<h:outputText value="FirstName" />
    				</f:facet>
    				<h:outputText value="#{user.firstName}" />
    			</p:column>
    			<p:column>
    				<f:facet name="header">
    					<h:outputText value="LastName" />
    				</f:facet>
    				<h:outputText value="#{user.lastName}" />
    			</p:column>
    			
    			<p:column>
    					<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">  
    					<h:outputText value="Delete " />  
    					<p:selectBooleanButton value="#{user.deletee}" onLabel="Yes" offLabel="No" offIcon="ui-icon-close" onIcon="ui-icon-check" />
    					</h:panelGrid> 
    				 	<p:commandButton value="Submit" update="display" oncomplete="dlg.show()"/>
    					
    					<p:dialog header="Selected Values" modal="true" showEffect="fade" hideEffect="fade" widgetVar="dlg">  
    					<h:panelGrid columns="1" id="display">  
    				    <h:outputText value="Rights :#{user.deletee}" />
    				    </h:panelGrid>  
    					</p:dialog>  
    			</p:column>
    		</p:dataTable> 
    	</h:form>