Fórum

Selected checkbox goes to unchecked when no record founds using filterMatch

Bilal Hussain, modificado 7 Anos atrás.

Selected checkbox goes to unchecked when no record founds using filterMatch

New Member Postagens: 14 Data de Entrada: 22/03/17 Postagens Recentes
I'm using filter on datable and have used all filterMatchMode. When i enter data on filter fields when records found checkbox remains as before in list but when no records found then checkbox goes to unchecked.Code is given below:
<p:dataTable widgetVar="usersTable" id="recieverUserList"
reflow="true" scrollable="true" scrollHeight="430"
value="#{UserReciepentController.recieverVo.reciepentList}"
var="user" styleClass="ptable" rowIndexVar="rowIndex">

<p:column headerText="Name" style="width:40%;"
filterBy="#{user.recieverName}" filterMatchMode="contains">
<div>
<h:outputText value="#{user.recieverName}" />
</div>
</p:column>

<p:column headerText="Email" style="width:50%;"
filterBy="#{user.recieverEmail}" filterMatchMode="contains">
<div>
<h:outputText value="#{user.recieverEmail}" />
</div>
</p:column>

<p:column headerText="Designation" style="width:40%;"
filterBy="#{user.recieverDesignation}" filterMatchMode="contains">
<div>
<h:outputText value="#{user.recieverDesignation}" />
</div>
</p:column>

<p:column headerText="Location" style="width:20%;"
filterBy="#{user.location}" filterMatchMode="contains">
<div>
<h:outputText value="#{user.location}" />
</div>
</p:column>

<p:column headerText="Department" style="width:20%;"
filterBy="#{user.recieverListName}" filterMatchMode="contains">
<div>
<h:outputText value="#{user.recieverListName}" />
</div>
</p:column>

<p:column style="width:40%;">
<div>
<p:selectBooleanCheckbox value="#{user.userSelected}" />
</div>
</p:column>
</p:dataTable>
thumbnail
Juan Gonzalez, modificado 7 Anos atrás.

RE: Selected checkbox goes to unchecked when no record founds using filterM

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Hi Bilal.

Do you think this is a problem in Liferay Faces? Can you check if this is expected behavior by testing in a plain webapp (non portlet environment)?

Thanks!