Re: LoadableDetachableModel and Attempt to set model object on null model of component

2013-06-14 Thread Baptiste75
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:

LoadableDetachableModel and Attempt to set model object on null model of component

2013-06-14 Thread Baptiste75
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) :

DataTable and unserializable data

2013-06-21 Thread Baptiste75
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

Re: DataTable and unserializable data

2013-06-21 Thread Baptiste75
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