Primefaces数据表过滤事件或点击在移动浏览器(iPhone,iPad和Android)中不起作用



我在jsf web应用程序中工作,这里的primefaces数据表过滤器工作得很好,但在safari浏览器或chrome浏览器中打开的应用程序是相同的(如iPad、iPhone和Android(。

我得到的问题是,Primefaces数据表过滤器触摸事件不起作用。只有一次点击数据表过滤器键盘出现,但我再次点击过滤器键盘没有出现。

因此,数据表在jsf web应用程序中运行良好,但在移动浏览器中不起作用,即如果我们在浏览器中打开同一个web应用程序,则过滤器事件不起作用。

移动设备中的数据表筛选事件是否有任何限制?

我在xhtml中使用了以下数据表代码:

<p:dataTable id="dtCompList" widgetVar="companyListTable" paginator="true" value="#{companyListService}" filterEvent="keyup" filteredValue="#{companyListService.filteredComapnies}" var="comp" paginatorAlwaysVisible="true"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rows="50" class="fixed-scrollbar"
selection="#{companyListService.selectedComapnies}" emptyMessage="No companies found." 
draggableColumns="true" style="margin: -10px!important;" multiViewState="true"
rowsPerPageTemplate="50,100" tableStyle="table-layout:auto; " resizableColumns="true" resizeMode="expand" lazy="true" >

我为jsf web应用程序使用了以下版本,Primefaces 6.2版

我刚刚添加了这样的代码,它正在中工作

$('.ui-column-customfilter').on('click', function () {
$(this).find('input[type=text]').focus();
})

最新更新