JSF backing bean should be serializable?

后端 未结 3 1156
慢半拍i
慢半拍i 2020-11-29 01:31

I\'m getting these messages:

[#|2010-07-30T11:28:32.723+0000|WARNING|glassfish3.0.1|javax.faces|_ThreadID=37;_ThreadName=Thread-1;|Setting non-seria

3条回答
  •  我在风中等你
    2020-11-29 01:33

    Yes, Backing Beans / Managed Beans are basically meant to persist the state of the view, so it should be implemented serialization, but UI Components may not allow it to serializable and JSF Runitime will show you errror/ warning message. one thing you can do is mark such component transient in your MBeans.

    Thanks.

提交回复
热议问题