jsf结果错误但未声明

时间:2014-06-03 08:36:04

标签: jsf

我的jsf页面显示错误

unable to find matching navigation case with from view id for action 'index'
unable to find matching navigation case with from view id for action 'login'

但我从未声明任何结果索引和登录,即使是从faces-config。 但它在每一页都显示

这是我的jsf

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 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"
xmlns:lcg="http://www.lassitercg.com/jsf">
<f:metadata>
<f:viewParam name="id" value="#{bean.bean_id}"></f:viewParam>
<f:event listener="#{bean.init}" type="preRenderView"></f:event>
</f:metadata>
<h:head>
</h:head>
<h:body>
<ui:composition template="../layout.xhtml">
    <ui:define name="content">          
        <h:form id="form_id">
            <h:messages id="form_messages" style="color:red;margin:8px;"></h:messages>              
            <p:commandButton value="submit" action="#{bean.submitForm}"></p:commandButton>
            <p:button outcome="cancel" value="Cancel"></p:button>
        </h:form>
    </ui:define>
</ui:composition>
</h:body>
</html>

0 个答案:

没有答案