if you model dynamic?

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


-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to