| Author |
serialization problems -whether it is a serious matter?
|
Jan Crownman
Greenhorn
Joined: Jan 06, 2011
Posts: 2
|
|
Hi
I'm using Wicket and Maven. Both are relatively new things to me. I'm currently working on a localization, I need a multilingual page.
When I'm building my code I get a warning:
WARN - AbstractPropertyModel - It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems. If you need to access a property of the session via the model use the page instance as the model object and 'session.attribute' as the path.
I'm calling a class DropDownLocale like this:
PropertyModel<Locale> model = new PropertyModel<Locale>(getSession(), "locale");
DropDownLocale selectLanguage = new DropDownLocale("selectLanguage", model, supportedLanguages);
add(selectLanguage);
Does anybody know what I'm doing wrong?
|
 |
Wouter Oet
Saloon Keeper
Joined: Oct 25, 2008
Posts: 2700
|
|
|
Moved to Other Application Frameworks.
|
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
|
 |
Jan Crownman
Greenhorn
Joined: Jan 06, 2011
Posts: 2
|
|
I solved this:
1. LocaleDropDown class
2. Java call on HomePage.java
3. Html
|
 |
 |
|
|
subject: serialization problems -whether it is a serious matter?
|
|
|