當?cid=XX
位於URL中時,我需要幫助處理過期/不存在的對話。我試圖把如何爲NonexistentConversationException配置錯誤頁面位置?
<error-page>
<exception-type>org.jboss.weld.context.ContextNotActiveException</exception-type>
<location>/faces/index.xhtml</location>
</error-page>
<error-page>
<exception-type>org.jboss.weld.context.NonexistentConversationException</exception-type>
<location>/faces/index.xhtml</location>
</error-page>
但是,這些沒有奏效。我仍然收到錯誤,無法轉發至index.xhtml
。我怎麼解決這個問題?