Just in case, someone stumbles upon this question, where do you use Primefaces Mobile with jQuery Mobile , here is how I was able to make a workaround, since the decision made here did not work for me.
Basically, I just put the "invisible" tag a , which will trigger the closing of the popup. When the user clicks on another menu item, he executes the javascript click() command aimed at this "invisible" tag a .
<ul data-role="listview" data-theme="c" data-divider-theme="a"> <li data-role="list-divider">Menu</li> <li data-icon="user"> <p:commandLink id="show-member-menu" styleClass="bordercolorddd" value="Members" data-rel="back" onclick="$('#closer').click();" action="#{editROrgUnit.initializeSubordinateList}" update=":main:subordlist" process=":main:subordlist"/> </li> <li class="separator"><p:separator/><a id="closer" href="#" class="closerclass ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b" data-rel="back"/></li> <li data-icon="power"> <p:commandLink value="Logout" action="#{loginBean.logout}" styleClass="bordercolorddd" ajax="true" partialSubmit="true" process="@this" /> </li> </ul>
Fritz source share