Hy List,

i've an Problem using a h:selectBooleanCheckbox inside an MyFaces Datatable.

The Datatable is constructed like that:

--- cut ---
               <t:dataTable
                   var="data"
                   value="#{services.allUsers}"
                   styleClass="standardTable"
                   headerClass="standardTable_SortHeader"
                   footerClass="standardTable_Footer"
                   rowClasses="standardTable_Row1,standardTable_Row2"
                   preserveDataModel="true"
                   sortColumn="#{services.sort}"
                   sortAscending="#{services.ascending}"
                   preserveSort="false">
               >
--- cut ---

inside the Columnlist i Use an selectBooleanCheckbox

--- cut ---
                   <h:column>
<f:facet name="header"><t:commandSortHeader columnName="anzahl, last_visit, reg_date, id" arrow="false"><h:outputText value="#{msg.data_markierung}" /></t:commandSortHeader></f:facet> <h:selectBooleanCheckbox value="#{data.markierung}" disabled="#{data.disabled}" valueChangeListener="#{services.toggleMarkierung}" >
                           <f:facet name="asdf"  />
                       </h:selectBooleanCheckbox>
                   </h:column>
--- cut ---

first i used it without the Valuechangedlistener, but inside the Managed-Bean i was not able to filter out the Datalines marked on. So i tought about to get an ValueChangedListener and work with this event, but there i was not able to identifa the Line of the Datatabe marked the Checkboxes.

My Problem is, i show with this Datatable Lines of Data, and the selectBooleanCheckbox is to Mark Lines and delete that. So i can Mark several Lines and klicking to an ActionListener (Commandbutton) and my ManagedBean reads the Date, and deletes the Lines previosly marked.

I hope you can understand my Mail *gg*

Robert


Reply via email to