0
我正在使用@ConverstationScoped bean,我想爲您手動更改cid參數的情況創建一個漂亮的錯誤頁面。NonexistentConversationException將cid參數傳遞給錯誤頁面,導致錯誤頁面失敗
<error-page>
<exception-type>javax.enterprise.context.NonexistentConversationException</exception-type>
<location>/nonExistentConversation.xhtml</location>
</error-page>
<error-page>
<exception-type>org.jboss.weld.context.NonexistentConversationException</exception-type>
<location>/nonExistentConversation.xhtml</location>
</error-page>
的問題是,在CID參數傳遞給錯誤頁面,而這些錯誤頁面也失敗,因爲他們無法找到談話,這使他們的默認異常頁面。
這個問題的最佳解決方案是什麼?創建過濾器,自定義處理程序和其他?