I have to correct myself: I get the right Button.
But the next question: how can I use the content of the textfield?


final TextField tagTitle = (TextField) new TextField("tagTitle", 
Model.of("")).setOutputMarkupId(true);
        add(tagTitle);
        add(new Button("tagSubmit").add(new 
AjaxFormComponentUpdatingBehavior("onclick") {

            @Override
            protected void onUpdate(AjaxRequestTarget arg0) {
                System.out.println(tagTitle.getModelObject());
            }

        }));





----- Ursprüngliche Mail ----
Von: Peter Arnulf Lustig <uuuuu...@yahoo.de>
An: users@wicket.apache.org
Gesendet: Montag, den 19. Oktober 2009, 13:36:31 Uhr
Betreff: AW: Ajax Send TextField Input to Server without Form / Submit

What do I do with a "click"-button? The User gets a new  TextField when I try 
to add an AjaxFormComponentUpdatingBehavior.
I just want to have a textfield and next to it a button, where it says "save". 
And this should happen without a form.



----- Ursprüngliche Mail ----
Von: Pedro Santos <pedros...@gmail.com>
An: users@wicket.apache.org
Gesendet: Montag, den 19. Oktober 2009, 13:12:34 Uhr
Betreff: Re: Ajax Send TextField Input to Server without Form / Submit

how is it possible to submit TextField Input to the server without having a
Form (and submit) for this task?
yes, you can use an AjaxFormComponentUpdatingBehavior for it

I figured out, that AjaxButton only has onSubmit() Method -- I expected also
something like onClick --
you can use AjaxEventBehavior to handle onClick event

On Mon, Oct 19, 2009 at 8:50 AM, Peter Arnulf Lustig <uuuuu...@yahoo.de>wrote:

> Hi,
>
> how is it possible to submit TextField Input to the server without having a
> Form (and submit) for this task?
>
> I figured out, that AjaxButton only has onSubmit() Method -- I expected
> also something like onClick --
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos





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