If I understand, you need to use the value of the text field on the page on your modal panel. Pass it as parameter to the modal panel, as constructor parameter for instance. add( new AjaxButton(""){ onSubmit(requestTarget){ (...) modal.setContent(new ModalPanel("", textField.getValue()); (...) } });
On Mon, May 17, 2010 at 3:12 PM, Pablo Borges <pablosbor...@gmail.com>wrote: > I have a page that has a text field and a button. clicking the button opens > a modal panel. How do I get when I click an item in the modal panel the > value is set in the text field on the screen that called the modal panel? > Examples are welcome. > Thanks > -- Pedro Henrique Oliveira dos Santos