0
我正在使用primefaces 5.0和Weblogic应用程序服务器和JSF2.0。使用下拉列表primefaces数据表清除过滤
问题:如何清除下拉列表在p:datatable中过滤。
我的代码:XHTML:
<p:column rowspan="3" style="text-align: center; width:80px;"
filterBy="#{monitorLookUpdata.status}"
sortBy="#{monitorLookUpdata.status}"
filterMatchMode="contains" filterMaxLength="9" id="statusId"
filterStyle="width:80%;">
<f:facet name="header">
<br/><br/>
<h:outputText value="Status" />
</f:facet>
<f:facet name="filter">
<h:selectOneMenu onchange="PF('monitorLookUp').filter()" class="ui-simple-text">
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
<f:selectItem itemLabel="Open" itemValue="Open" />
<f:selectItem itemLabel="Delivered" itemValue="Delivered" />
<f:selectItem itemLabel="Closed" itemValue="Closed" />
</h:selectOneMenu>
</f:facet>
</p:column>
Java代码:
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("filteredData");