You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lxw_first <lx...@hotmail.com> on 2012/04/23 17:59:30 UTC

about the modalwindow in the wicket

I have a question in trying to change the label content in the ModalWindow.
There is a label in the ModalWindow. The ModalWindow extends the Panel. 
How to change the content of the modalwindow when the content ofthe
textfield changed?
Anyone can help me?


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4580873.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: about the modalwindow in the wicket

Posted by lxw_first <lx...@hotmail.com>.
Hi,I follow you code,but the error is still exists。

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4586074.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: about the modalwindow in the wicket

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

On Mon, Apr 23, 2012 at 6:59 PM, lxw_first <lx...@hotmail.com> wrote:
> I have a question in trying to change the label content in the ModalWindow.
> There is a label in the ModalWindow. The ModalWindow extends the Panel.
> How to change the content of the modalwindow when the content ofthe
> textfield changed?

textField.add(new AjaxFormComponentUpdatingBehavior("onchange") {
  @Override public void onUpdate(AjaxRequestTarget target) {
     label.setDefaultModelObject("A new value");
     target.add(label);
  }
});

> Anyone can help me?
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4580873.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org