Richface editable table problmes
chanjob Jul 29, 2013 11:53 PMhi, I am using richfaces version:richfaces-api-3.3.2.SR1
My page have a list of report record, it has a checkbox for each record.
The datatable code:
<rich:dataTable
id="resultTable"
columnClasses="rsCol1,rsCol2"
value="#{reportTypeEmailBean.reportTypeEmailList}"
var="report"
border="0"
cellspacing="0"
cellpadding="0"
rowClasses="evenCol, oddCol"
headerClass="rsHeader"
rows="#{reportTypeEmailBean.reportTypeEmaillListMaxRows}"
width="1100"
>
<rich:column>
<f:facet name="header" >
Report Name
</f:facet>
<h:outputText value="#{report.reportName}"/>
</rich:column>
<rich:column>
<f:facet name="header" >
<h:panelGroup>
<div style="float:left; width:53px;display:block; ">
Report<br/>Email<br/>Alert
</div>
<div style="float:left; width:20px;display:block">
<h:selectBooleanCheckbox value="#{reportTypeEmailBean.checkAll}" style="margin-top:16px">
<a4j:support onsubmit="ON_WAITING_STATUS=true;" event="onclick" oncomplete="checkAll(#{reportTypeEmailBean.checkAll})" />
</h:selectBooleanCheckbox>
</div>
<div style="float:left; width:40px;display:block;margin-left:10px;margin-top:4px">
<a4j:jsFunction id="saveFunc" name="save" action="#{reportTypeEmailBean.save}"/>
<a4j:commandButton id="saveBtnCmd" onclick="save()" style="width:40px"
image="#{facesContext.externalContext.requestContextPath}/img/Save-icon.png"
reRender ="saveEmailIndModelPanel"
oncomplete="
Richfaces.showModalPanel('saveEmailIndModelPanel');
"
title="Save"
>
</a4j:commandButton>
</div>
</h:panelGroup>
</f:facet>
<h:selectBooleanCheckbox id="eind" value="#{report.emailBooleanInd}" style="margin-left:57px">
<a4j:support onsubmit="ON_WAITING_STATUS=false;" event="onclick"/>
</h:selectBooleanCheckbox>
</rich:column>
</rich:dataTable>
The datascroller code:
<rich:datascroller for="resultTable" id="ds">
<a4j:support event="onpagechange"/>
</rich:datascroller>
As I change page, sometime the all things works fine; but if I change the page faster.
Sometime the checkbox will uncheck for whole page. I don't know why that would happen and how to avoid.
Please help. Thanks.