我是Richfaces的新手。
在使用<ui:include>时,我得到了异常,因为
Not Found in ExternalContext as a
Resource
com.sun.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:116)
com.sun.facelets.impl.DefaultFacelet.getRelativePath(DefaultFacelet.java:216)请帮帮忙。
提前感谢
发布于 2011-02-16 18:46:08
在我的应用程序中,war文件的根目录下有两个文件:
我通过ui引用template.xhtml中的navigation.xhtml :包含
<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
...
<ui:insert name="navigation">
<ui:include src="/navigation.xhtml"/>
</ui:insert>
...
</html>也许您忘记在src参数的开头添加/
https://stackoverflow.com/questions/5013815
复制相似问题