开发者

Richfaces exception resource not found

开发者 https://www.devze.com 2023-02-11 06:15 出处:网络
I am very new to Richfaces. While using <ui:include> I am getting Exception as Not Found in ExternalContext as a

I am very new to Richfaces.

While using <ui:include> I am getting Exception as

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)

Please help开发者_开发技巧.

Thanks in advance


In my application i have two files in the root of the war-file:

  • template.xhtml
  • navigation.xhtml

I reference navigation.xhtml in template.xhtml by ui:include:

<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>

Maybe you forget to add the / in the beginning of the src parameter

0

精彩评论

暂无评论...
验证码 换一张
取 消