简体   繁体   中英

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. 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".

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. Then there is no need to address this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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