在第二個瀏覽器中使用IFRAME menuBar時,出現com.sun.faces.context.FacesFileNotFoundException。在XHTML中使用IFrame時FacesFileNotFoundException
我在使用其他瀏覽器時出現此錯誤。
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error() that prevented it from fulfilling this request.
-
exception
com.sun.faces.context.FacesFileNotFoundException: /xhtml/auth/faces/xhtml/client/clientImage.xhtml Not Found in ExternalContext as a Resource
com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:209)
com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
com.beo.importexport.filter.AuthFilter.doFilter(AuthFilter.java:64)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.
JBoss Web/7.0.13.Final:
我在一個XHTML頁面中使用了templage。 在模板內部使用IFrame。
iframe由帶有一些菜單項的菜單欄組成。
我的問題是,當登錄到第二個Web瀏覽器時,會話發生變化,因此IFRAME中的SRC將前綴到hardcorded路徑的較早路徑。
下面
<iframe name="contentframe" id="contentframe"
width="100%" height="710px"
src="faces/xhtml/client/clientImage.xhtml"
scrolling="auto"
style="overflow: auto;" >
</iframe>
我的IFRAME SRC標籤爲什麼這個路徑前綴發生在IFRAME SRC?
感謝BalusC, 但我通過將路徑這樣 得到了溶液 - –
@TitusKurian你好。我面臨類似的問題;您是否在託管bean中以某種方式定義了'request',或者它是一些EL表達式?請發表評論嗎? – user390525