Ok I eventually made it work.
I have to use a Model for *both* the provided values, AND the selected
object (sorry, I'm a Wicket newbie).
Thus, by adding a field to the page:
public CompanyConfiguration selectedCompany;
And then:
ChoiceRenderer choiceRenderer = ne
I got a /Unexpected RuntimeException Last cause: Attempt to set model object
on null model of component: form:companiesList/ whenever I select an item in
my DropDownChoice.
I read somewhere that it was because there is no Model set, but there *is*
one (a LoadableDetachableModel) :
ChoiceRe
Is it possible to use an implementation of DataTable (like
AjaxFallbackDefaultDataTable) with unserializable data?
My page throws the usual NotSerializableException, in spite of using
LoadableDetachableModel everywhere I can.
I am tearing my hair out to understand where the problem comes from. Can
A thousand thanks, Sebastian!
Your sample did it!
Juste a last question, out of curiosity (if you have a clue):
Did this exception occur because DataTable, after retrieving the user
objects from the provider, *stores* them somewhere in an inner component?
And so when the Page is serialized, the