Re: [Wicket-user] How to change value of a Textfield from popup page

2006-07-24 Thread Eelco Hillenius
For clarity, you could ask your component for it's markup id when it is rendering like this: textField.getMarkupId(); So, it could look like this: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight( 500).setWidth(500); PageParameters p = new

[Wicket-user] How to change value of a Textfield from popup page

2006-07-23 Thread Srinivas Sunkara
Hi All - I am sort of new to Wicket and just trying to get my hands dirty now... ;-)I have a input text field on a page and a link to open a popup page. Once the popup is opened, I would like to make some selections from a pallete and set those selections to the parent input field as text (comma

Re: [Wicket-user] How to change value of a Textfield from popup page

2006-07-23 Thread Igor Vaynberg
you have to do this using _javascript_.call setoutputmarkupid(true) on the textfield and pass this id into the popup page, then have the popup page output this _javascript_ when you want to set the value:window.opener.document.getElementById (id).value='foo';-IgorOn 7/23/06, Srinivas Sunkara