I have a problem with url refreshing after clicking on a menuItem.
I have a dataTable with the following dropdown menu with two menuItems:
<h:form id="form1">
        <p:dataTable id="singleDT" var="emp" value="#{adminBean.employees}"
            selectionMode="single" scrollable="true"
            selection="#{adminBean.selectedEmployee}" rowKey="#{emp.id}">
            <f:facet name="header">Employees
            <h:form>
                    <p:growl id="growl" showDetail="true" />
                    <p:menuButton value="Add new Employee">
                        <p:menuitem value="Add Hourly" url="/faces/addHourly.xhtml" icon="ui-icon-plus"/>
                        <p:separator />
                        <p:menuitem value="Add Flat" url="/faces/addFlat.xhtml" icon="ui-icon-plus"/>   
                    </p:menuButton>
                </h:form>
            </f:facet>
...
...
...
The problem is that when I click for istance on the Add Hourly menuItem, I can get to the addHourly.xhtml page correctly, but when I come back to my main page, the address bar of browser remains with the url /faces/addHourly.xhtml so if I refresh the page I always go to /faces/addHourly.xhtml.
How can I solve the problem?
