繁体   English   中英

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

[英]Primefaces datatable filter event or tap not working in mobile browser (iPhone, iPad & Android)

I am working in jsf web application, here primefaces datatable filter is working fine but same application open in safari browser or chrome browser in mobile (like 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();
})

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM