Folder structure problem

Post Reply
User avatar
Jarciano
Posts: 41
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

12 Jan 2019, 13:57

Hello,
I'm having a big problem, my project has a folder structure which I add each type of .xhtml file to organize the security of access to those folders.

But when creating an example folder (sistema) and put the same .xhtml file that is in the main structure of thema, inside that folder, the page no longer works.

Structure of the links:

It works: http://localhost:8084/ajottaweb/marca.xhtml
Does not work: http://localhost:8084/ajottaweb/sistema/marca.xhtml

Look at the pictures.

Image
Image
Image


https://uploaddeimagens.com.br/imagens/ ... 60aa62450b
https://uploaddeimagens.com.br/imagens/ ... 1d126e38ea
https://uploaddeimagens.com.br/imagens/ ... 79c2102e94
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

aragorn
Posts: 3762
Joined: 29 Jun 2013, 12:38

14 Jan 2019, 08:59

Which outcome attribute does it give an error?
Is it the following link?

Code: Select all

<p:link outcome="/marca">Marca</p:link>
Where is the marca.xhtml? sistema/marca.xhtml or marca.xhtml?

Maybe it can be

Code: Select all

<p:link outcome="/sistema/marca">Marca</p:link>

User avatar
Jarciano
Posts: 41
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

14 Jan 2019, 13:29

Hello,

This test you asked to do has already been done, and the error continues.

Code: Select all

<p:link outcome="/sistema/marca">Marca</p:link>
The code below and class marca.xhtml

Code: Select all

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" template="/WEB-INF/template.xhtml">

    <ui:define name="title">Marca</ui:define>
    <ui:define name="viewname">
        <li>Produto</li>
        <li>/</li>
        <li><p:link outcome="/marca">Marca</p:link></li>
    </ui:define>
    <ui:define name="content">
        <span class="gray">
            <h:form id="formMarca">
                <p:growl id="menssagem" showDetail="true" sticky="false" />  
                <p:panel id="basic" header="Cadastro de Marcas" style="margin-bottom:10px">
                    <div class="ui-fluid">
                        <p:panelGrid columns="5" layout="grid" 
                                     columnClasses="ui-grid-col-1,ui-grid-col-2,ui-grid-col-1, ui-grid-col-5, ui-grid-col-3"
                                     style="border: transparent !important; margin-top:10px">                    
                            <p:outputLabel value="Código:"/>
                            <p:inputText id="idMarca" value="#{marcaMB.marca.idMarca}" disabled="true" size ="12"/>
                            <p:outputLabel value="Marca:"/>
                            <p:inputText id="idDescricao" value = "#{marcaMB.marca.descricao}" size ="50"/> 
                            <p:outputLabel/>
                        </p:panelGrid >

                        <br/>
                        <p:panelGrid columns="4" layout="grid"
                                     columnClasses="ui-grid-col-2,ui-grid-col-2,ui-grid-col-2, ui-grid-col-6"
                                     style="border: transparent !important">
                            <p:commandButton value="Salvar" update="formMarca, menssagem"
                                             icon="fa fa-check Fs14 White" actionListener="#{marcaMB.salvar}"/>
                            <p:commandButton value="Cancelar" onclick="history.go(0); return false;"
                                             icon="fa fa-close Fs14 White"/>
                            <p:commandButton value="Excluir" update="formMarca, menssagem"
                                             icon="fa fa-trash Fs14 White" actionListener="#{marcaMB.excluir}">
                                <p:confirm header="Confirmação" message="Você tem certeza ?" icon="ui-icon-alert" />
                            </p:commandButton>
                            <p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
                                <p:commandButton value="Sim" type="button" styleClass="ui-confirmdialog-yes" icon="fa fa-check Fs14 White" />
                                <p:commandButton value="Não" type="button" styleClass="ui-confirmdialog-no" icon="fa fa-close Fs14 White" />
                            </p:confirmDialog>
                        </p:panelGrid>
                    </div>
                </p:panel>

                <p:dataTable id="tabela" value="#{marcaMB.listaMarca}" var="marca" rows="10" paginator="true" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                             rowsPerPageTemplate="10,20,30,50" emptyMessage="Nenhuma informação..." reflow="true" >
                    <f:facet name="header">
                        <p:outputPanel style="float:left;margin-top: 4px">                            
                            <h:commandLink title="Baixar em Excel" ><i class="fa fa-file-excel-o Fs18 Leaden"></i>
                                <p:dataExporter type="xls" target="tabela" fileName="relatorioMarca" />
                            </h:commandLink><p:spacer width="10" height="5" />
                            <h:commandLink title="Baixar em CSV" ><i class="fa fa-file-text-o Fs18 Leaden"></i>
                                <p:dataExporter type="csv" target="tabela" fileName="relatorioMarca" />
                            </h:commandLink><p:spacer width="10" height="5" />
                            <h:commandLink title="Baixar em PDF" id="marca"><i class="fa fa-file-pdf-o Fs18 Leaden"></i>
                                <p:fileDownload value="#{marcaMB.relatorio}" />
                            </h:commandLink>
                        </p:outputPanel>
                        <p:spacer width="25"></p:spacer>
                        <p:outputPanel style="float:right;margin-top: 4px">  
                            <p:commandLink title="Buscar todas..." style=" color: transparent !important"
                                           actionListener="#{marcaMB.buscarTodasMarca}" 
                                           update="formMarca:tabela" process="@this" >
                                <i class="fa fa-search Fs18 Leaden"></i>
                            </p:commandLink><p:spacer width="5"></p:spacer>
                            <p:inputText id="globalFilter" value="#{marcaMB.nomeSelecionado}" style="width:150px" placeholder="Pesquisar...">
                                <p:ajax event="change" process="@this" listener="#{marcaMB.buscarMarca()}" update="formMarca:tabela" />
                            </p:inputText>
                        </p:outputPanel>
                    </f:facet>
                    <p:column headerText="Código" width="1" sortBy="#{marca.idMarca}">                     
                        <h:outputText value="#{marca.idMarca}"/>
                    </p:column>
                    <p:column headerText="Marca" width="50" sortBy="#{marca.descricao}">                      
                        <h:outputText value="#{marca.descricao}"/>
                    </p:column>                  
                    <p:column style="text-align: center; width:0.5%">                       
                        <li>
                            <p:commandLink title="Editar" style="color: transparent !important" actionListener="#{marcaMB.alterar}" update="formMarca">
                                <i class="fa fa-edit Fs18 Leaden"></i>
                            </p:commandLink>
                        </li>
                    </p:column>                  
                </p:dataTable>

            </h:form>
        </span>

    </ui:define>
</ui:composition>
This same class is outside and inside the folder /sistema/marca.xhtml

When I run the project and access this address:
http://localhost:8084/ajottaweb/marca.xhtml - it works

When I run the project and access this address:
http://localhost:8084/ajottaweb/sistema/marca.xhtml - does not work


Error exit when trying to access /sistema/marca.xhtml

Code: Select all

14-Jan-2019 09:04:14.643 WARNING [http-nio-8084-exec-27] com.sun.faces.application.resource.ResourceHandlerImpl.logMissingResource JSF1064: Não foi possível encontrar ou fornecer o recurso, /sistema/error.xhtml.
14-Jan-2019 09:04:14.644 SEVERE [http-nio-8084-exec-27] com.sun.faces.application.view.FaceletViewHandlingStrategy.handleRenderException Error Rendering View[/sistema/marca.xhtml]
 javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
	at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:174)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMenuItem(BabylonMenuRenderer.java:230)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:76)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeSubmenu(BabylonMenuRenderer.java:151)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:94)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMarkup(BabylonMenuRenderer.java:45)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
	at javax.faces.component.UIComponentBase.encodeEnd(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.render.Renderer.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(Unknown Source)
	at com.sun.faces.application.view.MultiViewHandler.renderView(Unknown Source)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
	at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
	at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
	at javax.faces.webapp.FacesServlet.service(Unknown Source)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.primefaces.babylon.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

14-Jan-2019 09:04:14.807 INFO [http-nio-8084-exec-27] com.sun.faces.context.ExceptionHandlerImpl.throwIt Exception when handling error trying to reset the response.
 javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
	at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:174)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMenuItem(BabylonMenuRenderer.java:230)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:76)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeSubmenu(BabylonMenuRenderer.java:151)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:94)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMarkup(BabylonMenuRenderer.java:45)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
	at javax.faces.component.UIComponentBase.encodeEnd(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.render.Renderer.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(Unknown Source)
	at com.sun.faces.application.view.MultiViewHandler.renderView(Unknown Source)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
	at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
	at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
	at javax.faces.webapp.FacesServlet.service(Unknown Source)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.primefaces.babylon.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

14-Jan-2019 09:04:15.254 WARNING [http-nio-8084-exec-27] com.sun.faces.renderkit.RenderKitUtils.renderHtmlErrorPage JSF1087: Não foi possível gerar a página de erro de Facelets porque a resposta já foi enviada.
14-Jan-2019 09:04:15.254 SEVERE [http-nio-8084-exec-27] com.sun.faces.renderkit.RenderKitUtils.renderHtmlErrorPage javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
 javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
	at com.sun.faces.context.ExceptionHandlerImpl.handle(Unknown Source)
	at javax.faces.context.ExceptionHandlerWrapper.handle(Unknown Source)
	at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
	at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
	at javax.faces.webapp.FacesServlet.service(Unknown Source)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.primefaces.babylon.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Caused by: javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
	at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:174)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMenuItem(BabylonMenuRenderer.java:230)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:76)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeSubmenu(BabylonMenuRenderer.java:151)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:94)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMarkup(BabylonMenuRenderer.java:45)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
	at javax.faces.component.UIComponentBase.encodeEnd(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.render.Renderer.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(Unknown Source)
	at com.sun.faces.application.view.MultiViewHandler.renderView(Unknown Source)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
	... 30 more

14-Jan-2019 09:04:15.333 FATAL [http-nio-8084-exec-27] com.sun.faces.context.ExceptionHandlerImpl.log JSF1073: javax.faces.FacesException obtido durante o processamento de RENDER_RESPONSE 6: UIComponent-ClientId=, Message=Could not resolve NavigationCase for outcome: error
14-Jan-2019 09:04:15.333 FATAL [http-nio-8084-exec-27] com.sun.faces.context.ExceptionHandlerImpl.log Could not resolve NavigationCase for outcome: error
 javax.faces.FacesException: Could not resolve NavigationCase for outcome: error
	at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:174)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMenuItem(BabylonMenuRenderer.java:230)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:76)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeSubmenu(BabylonMenuRenderer.java:151)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElement(BabylonMenuRenderer.java:94)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeElements(BabylonMenuRenderer.java:55)
	at org.primefaces.babylon.component.BabylonMenuRenderer.encodeMarkup(BabylonMenuRenderer.java:45)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
	at javax.faces.component.UIComponentBase.encodeEnd(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.render.Renderer.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at javax.faces.component.UIComponent.encodeAll(Unknown Source)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(Unknown Source)
	at com.sun.faces.application.view.MultiViewHandler.renderView(Unknown Source)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
	at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
	at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
	at javax.faces.webapp.FacesServlet.service(Unknown Source)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.primefaces.babylon.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

aragorn
Posts: 3762
Joined: 29 Jun 2013, 12:38

15 Jan 2019, 10:59

I couldn't replicate this issue. Please check your all outcome values in pb:menu and your xhtml page.

My test;
I created a folder: testFolder

webapp/testFolder/test.xhtml

Code: Select all

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">
                
    <ui:define name="title">Test</ui:define>
    <ui:define name="viewname">
        <li>Test</li>
        <li>/</li>
        <li><p:link outcome="/testFolder/test">Test</p:link></li>
    </ui:define>
                
    <ui:define name="content">    
        Test
    </ui:define>

</ui:composition>
Menus;
<p:menuitem id="om_test" value="Test" icon="fa fa-fw fa-code" outcome="/testFolder/test" />

Also, please change this line in groupedMenu.xhtml
<p:menuitem id="om_error" value="Error" icon="fa fa-fw fa-exclamation-circle" outcome="/error" /> // use '/error' instead of 'error'. Fixed this typo for next version.

User avatar
Jarciano
Posts: 41
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

27 May 2019, 14:17

Hello,

Sorry for my delay in reporting on this problem, and that we had some new work and we left it aside, but I'm returning at full speed, and I did the test and it worked out .. everything ok .. can close the call .. :D

Thanks.
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

aragorn
Posts: 3762
Joined: 29 Jun 2013, 12:38

28 May 2019, 09:11

No problem, thanks a lot for the update!

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest