我想使用数据表(PrimeFaces)的“ filteredValue”属性中的“ setter”函数来应用自定义过滤逻辑...问题是,setter函数始终接收空值,如果我使用要过滤的值集合,过滤操作不会反映在数据表中!。
publiv void setFilteredOrg(List filteredOrg) {
// filteredOrg always null
// I apply custom filtering against the value
return the filtered collection but the UI isnt filtered
}
希望我能使自己理解;我担心粘贴代码...但是我可以看看它是否令人困惑...
customFilter是您定义的javascript函数
function customFilter(itemLabel, filterValue) {
//return true to accept and false to reject
}