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) :

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

2009-09-29 Thread Pedro Santos
You need to find if the component who throw the exception is the same agent constructed with lines you report and on what moment the component lost his model. On Mon, Sep 28, 2009 at 11:28 PM, Sam Barrow s...@sambarrow.com wrote: I'm getting this exception: java.lang.IllegalStateException:

Attempt to set model object on null model of component

2009-09-28 Thread Sam Barrow
I'm getting this exception: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:agent The only reason i can find is that the field has a null model, but i added a new Model() to the field and im still getting it DropDownChoiceAgent agent = new

Attempt to set model object on null model of component when submitting a form

2008-09-16 Thread Azzeddine Daddah
Hi, I've the following code: private static final ListString SEARCH_DOMAINS = Arrays.asList(AA, BB); ... private void addSearchForm() { Form searchForm = new Form(searchForm); searchForm.add(new DropDownChoice(searchDomain, SEARCH_DOMAINS)); searchForm.add(new

AW: Attempt to set model object on null model of component when submitting a form

2008-09-16 Thread Stefan Lindner
Your DropDownChoice element has no Model so the submit code does not know where to store your selection. Add a new ModelString() to it's constructor. -Urspr√ľngliche Nachricht- Von: Azzeddine Daddah [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2008 15:01 An:

Re: Attempt to set model object on null model of component when submitting a form

2008-09-16 Thread Azzeddine Daddah
Thanks Stefan :) On Tue, Sep 16, 2008 at 3:04 PM, Stefan Lindner [EMAIL PROTECTED] wrote: Your DropDownChoice element has no Model so the submit code does not know where to store your selection. Add a new ModelString() to it's constructor. -Urspr√ľngliche Nachricht- Von: