Hi,

AjaxLink uses AjaxEventBehavior behind the scenes. This behavior doesn't
send any parameters with the request.
You need something like AjaxFormComponentUpdatingBehavior to send form
elements' value to the server or use dynamic extra parameters by overriding
#updateAjaxAttributes().

P.S. Please subscribe to the mailing lists. You ask questions often and all
this moderation just slows down the delivery. Also the code snippets are
not sent by Nabble.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Oct 12, 2016 at 5:07 PM, Iamuser <superbiss...@gmail.com> wrote:

> Hi,
>
> I have a form backed by a model.
> In this form I have and editable textfield and a image.
>
> When clicking on the image I just need to write the value inserted in the
> textfield to the console.
>
> However, it does never display the updated value in the textfield.
>
> Here is the html:
> <img src="images/test.gif" name="btnSave" /> <#>
>
> Here is the Java code:
>
> AjaxLink<MyBean> testLink = new AjaxLink<MyBean>("testLink", getModel())
>                         {
>                                 /**
>                                  *
>                                  */
>                                 private static final long serialVersionUID
> = 1L;
>
>                                 @Override
>                                 public void onClick(AjaxRequestTarget
> target) {
>                                         System.out.println("test link 1" +
> getModelObject().getName());
>                                 }
>                         };
>
> Could you please tell me a solution?
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/AjaxLink-cannot-see-updated-model-values-tp4675743.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to