简体   繁体   English

Primefaces菜单栏在移动浏览器中不起作用

[英]Primefaces Menu bar not working in Mobile Browsers

Primefaces menu bar in a JSF application can not be accessed in any of the Mobile Browser in Android. 无法在Android的任何移动浏览器中访问JSF应用程序中的Primefaces菜单栏。 Clicking the top level submenu do not bring the dropdown? 单击顶层子菜单不带下拉菜单? How Can I change that? 我该如何改变?

At your p:menubar tag adds the property autoDisplay="false". 在您的p:menubar标记处添加属性autoDisplay =“ false”。

Exemple: 例:

<p:menubar autoDisplay="false">

This will make the submenu don't show up when mouse hover, just by mouse click. 鼠标悬停时,仅通过单击鼠标,将不会显示子菜单。 And at mobile this will work also. 在移动设备上,这也将起作用。

I used separate pages for mobile access using PrimeFaces Mobile. 我使用PrimeFaces Mobile将单独的页面用于移动访问。 Then there is no need to address this issue. 因此,无需解决此问题。

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

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