Menus with FlowScope Elements in the JSF Template

I have the following menu in which all menuItem launch different views that use FlowScope.

On my homepage ex: " http: // localhost: 8080 / abc " I can start any thread from MenuItem. But when I get into one thread, I get an error message: NavigationCase could not be solved for the result: view-all

If I change from result to action in the menuItem element, I can enter the view, but if I try to start another, I cannot.

Here is my menu:

<h:body>
    <div id="page">
        <div id="header">
            <ui:insert name="header">
                <h:form>
                    <p:menubar id="menu">
                <p:menuitem>
                    <h:link>
                        <h:graphicImage name="fme.png" height="50" />
                    </h:link>
                </p:menuitem>
                <p:submenu label="Colaborador" icon="ui-icon-document">
                    <p:menuitem value="Criar Colaborador" action="create-colaborator" />
                    <p:menuitem value="Editar Colaborador" action="create-colaborator" />
                    <p:menuitem value="Listar Todos" action="view-all" />
                </p:submenu>
                <p:submenu label="Relatorio" icon="ui-icon-document">
                    <p:menuitem value="Relatorio" action="exportar-relatorio" />
                </p:submenu>

                <p:menuitem style="margin-right:600px">
                    <h:link>
                        <h:graphicImage name="swiss.png" height="40" />
                    </h:link>
                </p:menuitem>
            </p:menubar>

                </h:form>
            </ui:insert>
        </div>
        <div id="contentWrap" class="ui-fluid">
            <div id="content">
                <ui:insert name="content"></ui:insert>
            </div>
        </div>
        <div id="footer">
            <ui:insert name="footer">
                Um produto de FME em parceria com a SwissContact. 
            </ui:insert>
        </div>
    </div>
</h:body>
+4
source share

Source: https://habr.com/ru/post/1688963/


All Articles