i'm using netbeans 8.1, PrimeFaces 6.0, JSF 2.2 and Payara Server 4.1.1
i have a problem with a menuBar in a layoutUnit...
it is like that layoutUnit has a fixed size...
template.xhtml
Code: Select all
...
<h:head>
<title><ui:insert name="title">Default Title</ui:insert></title>
<h:outputStylesheet library="css" name="users.css"/>
<h:outputScript library="scripts" name="pfcrud.js"/>
</h:head>
<h:body>
<p:growl id="growl" autoUpdate="true" life="5000"/>
<p:layout fullPage="true">
<p:layoutUnit position="north" header="#{myBundle.AppName}">
<!-- Menu here. Also a layout and a way to log a user out -->
<ui:include src="/Desktop/Include/appmenu.xhtml"/>
</p:layoutUnit>
...
Code: Select all
...
<h:form id="menuForm">
<p:menubar>
<p:menuitem value="#{myBundle.Home}" outcome="/index" icon="ui-icon-home"/>
<p:submenu label="#{myBundle.Maintenance}">
<p:menuitem value="#{myBundle.BrandHeading}" outcome="/Desktop/PrimeFacesPages/brand/index" />
<p:menuitem value="#{myBundle.CommentHeading}" outcome="/Desktop/PrimeFacesPages/comment/index" />
<p:menuitem value="#{myBundle.FeatureHeading}" outcome="/Desktop/PrimeFacesPages/feature/index" />
<p:menuitem value="#{myBundle.FeatureTypeHeading}" outcome="/Desktop/PrimeFacesPages/featureType/index" />
</p:submenu>
<p:menuitem value="#{myBundle.Mobile}" outcome="/Mobile/PrimeFacesPages/index" icon="ui-icon-signal"/>
<p:menuitem value="User View" outcome="/Desktop/Users/index" icon="ui-icon-carat-1-ne"/>
</p:menubar>
</h:form>
...
Code: Select all
.ui-growl{
right: 50%;
top: 50%;
}
sorry if the question is stupid but idk why it stopped work fine...
can someone help me please?