java.io.NotSerializableException: org.omnifaces.taghandler.Converter

后端 未结 1 2105
悲哀的现实
悲哀的现实 2021-01-23 03:43

I would like to use OmniFaces ListConverter as my converter on PrimeFaces autocomplete. Unfortunately the following exception pops out when I tried

相关标签:
1条回答
  • 2021-01-23 04:14

    This is a bug in MyFaces. I can't tell which MyFaces version exactly contains the fix, but I can tell that this construct works fine in at least MyFaces 2.1.12. However, upgrading MyFaces in WebSphere might not be a trivial task (technically and bureaucracy).

    Your best bet is to tell MyFaces to not serialize the whole view state in session, but instead keep it in memory and hold a reference (like as Mojarra by default does). You can do that via the following context param in web.xml:

    <context-param>
        <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param‌​-name>
        <param-value>false</param-value>
    </context-param>
    
    0 讨论(0)
提交回复
热议问题