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