Wicket wants to serialize my Panel

狂风中的少年 提交于 2019-12-06 08:10:44

Wicket serializes many things into the session as part of its approach to dealing with clustering.

Just about everything in Wicket (eventually) extends Component which implements IClusterable which extends Serializable. So components such as panels that created in Wicket need to be serializable.

A common practice is to create LoadableDetachableModel classes wrapping your normal business objects with logic that stores only a key in session and reloads using that key.

If you use such models as fields in your components instead of the full business objects you'll strain the session memory much less.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!