Well, again, the only way for me to help you more is to supply a quickstart
that reproduces this.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Oct 20, 2009 at 9:49 AM, Peter Arnulf Lustig <uuuuu...@yahoo.de>wrote:

> 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 <jer...@wickettraining.com>
> An: users@wicket.apache.org
> Gesendet: Dienstag, den 20. Oktober 2009, 16:40:45 Uhr
> Betreff: Re: why is the model empty?
>
> Yes - that's what I'm saying.  On the webpage, presumably with JS, he is
> saying that he is setting the value of the text field.  Then when it's
> submitted, Wicket should update the model before he gets to onSubmit
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Tue, Oct 20, 2009 at 9:31 AM, Peter Arnulf Lustig <uuuuu...@yahoo.de
> >wrote:
>
> >
> >
> > "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 Mail ----
> > Von: Jeremy Thomerson <jer...@wickettraining.com>
> > An: users@wicket.apache.org
> > Gesendet: Dienstag, den 20. Oktober 2009, 16:28:31 Uhr
> > Betreff: Re: why is the model empty?
> >
> > That's not an immutable model.  It's equivalent to new Model<String>("")
> -
> > which is fine for this use.  Assuming the text field and the button are
> > within a form, and that he 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.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Tue, Oct 20, 2009 at 9:24 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Sorry but when is the model object update?
> > > final TextField<String> tagTitle = new TextField<String>("tagTitle",
> > > Model.of(""));
> > >
> > > just creates and in-mutable model? Or,  am I missing something?
> > >
> > > Best,
> > >
> > > Ernesto
> > >
> > > On Tue, Oct 20, 2009 at 3:17 PM, Peter Arnulf Lustig <
> uuuuu...@yahoo.de
> > > >wrote:
> > >
> > > > hi,
> > > >
> > > > in the submit logic the getModel().getObject() is an empty string
> > > although
> > > > I set it via textfield:
> > > >
> > > > final Button tagSubmit = new Button("tagSubmit", Model.of("")) {
> > > >            @Override
> > > >            public void onSubmit() {
> > > >                    tagTitle.getModel().getObject() // it is empty!!
> > > >                }
> > > >            }
> > > >
> > > >        };
> > > >
> > > >
> > > > that's the textfield:
> > > >
> > > > final TextField<String> tagTitle = new TextField<String>("tagTitle",
> > > > Model.of(""));
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to