我正在使用primefaces 3.5
我正在尝试在facet部分的数据表列中添加selectOneMenu (不能使用列" filterBy"替代解决方案,因为" filterMatchMode"不使用延迟加载,我需要一个clearFilter,showAll功能)
我有4个问题无法解决:
<p:dataTable id="refundOperationLogtbl" var="refundOperationLog" value="#{unusedRefundOperationLogBean.allRefundOperationLogLazyDataModel}"
widgetVar="carsTable"
lazy="true"
paginator="true" rows="#{unusedRefundOperationLogBean.allRefundOperationLogLazyDataModel.pageSize}"
paginatorPosition="bottom"
emptyMessage="# {messages['common.datatable.emptymessage']}"
rowKey="#{refundOperationLog.id}"
resizableColumns="true">
<p:column id="stateColumn" sortBy="#{refundOperationLog.refundOperationState}" style="width:45px">
<f:facet name="header">
<p:selectOneMenu id="menu" value="#{unusedRefundOperationLogBean.selectedState}" immediate="true" style="width:90px" styleClass="ui-column-filter ui-widget ui-state-default ui-corner-left">
<p:ajax id="menuajax" event="change" listener="#{unusedRefundOperationLogBean.filterStates1}" process="refundOperationLogtbl menu" update="refundOperationLogtbl menu"/>
<f:selectItems id="menuitems" value="#{unusedRefundOperationLogBean.refundOperationLogStates}"
var="emp"
itemLabel="#{emp.label}" itemValue="#{emp.value}"/>
<f:converter converterId="RefundOperationLogStateConverter"/>
</p:selectOneMenu>
</f:facet>
<h:outputText value="#{refundOperationLog.refundOperationState.name}"/>
</p:column>