掲示板

Selected checkbox goes to unchecked when no record founds using filterMatch

7年前 に Bilal Hussain によって更新されました。

Selected checkbox goes to unchecked when no record founds using filterMatch

New Member 投稿: 14 参加年月日: 17/03/22 最新の投稿
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
7年前 に Juan Gonzalez によって更新されました。

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

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
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!