I have got an issue with the Menu and Top Menu buttons in the mobile and tablet layout. When the form is submitted it is not working anymore in the URL it is showing URL with the hashtag(#)
this is the topbar coding
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets">
<div id="layout-topbar" class="ShadowGray">
<h:form>
<div id="layout-topbar-indent">
<a href="dashboard.xhtml"><h:graphicImage name="images/LOGO.svg" styleClass="Fleft" library="spark-layout" id="logo" class="Fleft" /></a>
<a href="#" id="mobile-menu-button" class="BordRad3 white ShowOnMobile"><i class="fa fa-bars"></i> Menu</a>
<a href="#" id="mobile-menu-button-gray" class="BordRad3 white ShowOnMobile" ><i class="fa fa-caret-down"></i> Top Menu</a>
<ul id="layout-topbar-menu">
<li><p:commandLink styleClass="Animated05 a CursPointer" actionListener="#{generalImages.goLogin}" style="text-decoration:none;">
<i class="fa fa-sign-out"></i>Logout </p:commandLink></li>
<li class="fa fa-ellipsis-v menu-separator"></li>
<li><p:commandLink styleClass="Animated05 a CursPointer" actionListener="#{generalImages.goHome}" style="text-decoration:none;">
<i class="fa fa-home"></i> Home</p:commandLink></li>
<li class="fa fa-ellipsis-v menu-separator"></li>
<li><a class="Animated05 CursPointer"> <i class="fa fa-user blue"> </i> #{loginBean.username.toUpperCase()} , Welcome <i class="fa fa-chevron-down Fs14 Fright ShowOnMobile"></i></a></li>
</ul>
</div>
</h:form>
</div>
</ui:composition>