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 PageParameters(targetId, textField.getMarkupId());
add(new BookmarkablePageLink(popupLink, MyPopup.class,
p).setPopupSettings(popupSettings));


And then your popup has:

public MyPopup(PageParameters p) {
  String targetId = p.getString(targetId);
  ...

etc.

Or... instead of a bookmarkable page you could use:

final String targetId = textField.getMarkupId();
add(new Link(popupLink){
  onClick() {
setResponsePage(new MyPopup(targetId));
  }
}.setPopupSettings(popupSettings));

and have

public MyPopup(String targetId) {
  ...


Hope this helps,

Eelco


On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 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';

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 separated values). I have the page and popup with pallete built. Now I was wondering how I can set the selections from the popup to the parent page's input text field. Any help you can offer is greatly appreciated.Thank you so much in advance,-Srinu-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 [EMAIL PROTECTED] wrote:
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 separated values). I have the page and popup with pallete built. Now I was wondering how I can set the selections from the popup to the parent page's input text field. Any help you can offer is greatly appreciated.
Thank you so much in advance,-Srinu
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user