I got a dynamic menu on my website, which comes trough options previously update on the database. Inside each options, there's a list of sub-options.
When I click in a sub-option, it should bring the stores for that sub-option from the database. So far it's working perfectly, the issue happens when I reduce the screen size, and it generates a side menu, that hidden menu, which expands when you click on it. In this way, it just stop working, but if I turn back the screen size, the menu starts working again. It only doesn't work when it's on a small screen.
You can check it online at www.portalbid.com (select one option on the main page and the menu will show up)
Follow the code:
<nav id="nav">
<ul id="menuvert">
<ui:repeat value="#{categoriaBean.todasCategorias}" var="categoria" varStatus="status">
<li>
<p:commandLink>
<h:outputText value="#{categoria.titulo}"/>
</p:commandLink>
<ul>
<ui:repeat value="#{categoria.subCategorias}" var="sub">
<li>
<p:commandLink styleClass="featured"
action="#{lojistaBean.redirSubLojas}">
<f:setPropertyActionListener value="#{sub}"
target="#{lojistaBean.subCategoriaSelecionada}"/>
<h:outputText value="#{sub.descricao}"/>
</p:commandLink>
</li>
</ui:repeat>
</ul>
</li>
</ui:repeat>
</ul>
</nav>
I'm using JSF 2.2.13 and PrimeFaces 6.0 Anyone can help me?