wow. Thank you! That's helped a lot!
.getValue() is the key to success if you use setDefaultFormProcessing = false!
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 17:04:57 Uhr
Betreff: Re: why is the model empty?
Well,
mhmhm! I got this "design pattern" from
http://cwiki.apache.org/WICKET/conditional-validation.html
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:56:38 Uhr
Betreff: Re: why is the model empty?
Did you look at the ja
ok! Line 148 is interesting.
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:50:31 Uhr
Betreff: Re: why is the model empty?
Well, again, the only way for me to help you more is to supply a quickstart
that reproduces t
I am submitting a textfield in a form to wicket. Just the standard HTTP Post --
And everywhere it functions well -- I just can't get it why it won't function
there.
And I don't utilize any JS (Ajax etc.) for that task! It's weird.
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users
"sets the value of the textfield programmatically
on the page, and submits the form, the model should be updated by the time
he gets to this onSubmit method."
How do you mean that? I think wicket sets the model automaticly because the
model is attached to the component.
- Ursprüngliche M
I tried it also with
final IModel tagTitleModel = Model.of("");
(..., tagTitleModel)
But it won't work!
- Ursprüngliche Mail
Von: Ernesto Reinaldo Barreiro
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:24:16 Uhr
Betreff: Re: why is the model empty?
Sorry
Does it maybe have something to do with my custom validation?
I use setDefaultFormProcessing(false); because I have more submit buttons on
one form
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:20:09 Uhr
Betreff: R
hey martijn -- But there is a string submitted!
Actually it must be printed! But it is null.
Is the final declaration correct?
- Ursprüngliche Mail
Von: Martijn Dashorst
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:06:22 Uhr
Betreff: Re: why is the model em
yes! I temper the data! And it is posted to the server!
- Ursprüngliche Mail
Von: Jeremy Thomerson
An: users@wicket.apache.org
Gesendet: Dienstag, den 20. Oktober 2009, 16:04:21 Uhr
Betreff: Re: why is the model empty?
Look at the HTTP request - is the value getting submitted?
--
Jer