Afaik Popup close link removes the popup page from pagemap.

-Matej

Thomas J du Plessis wrote:
Thanks Igor
That worked fine. What am I missing though with PopupCloseLink? What does it do differently than a window.close() JavaScript command i.t.o. cleaning up?

On 2/2/06, *Igor Vaynberg* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    i havent tried it so i am guessing:

    add an onclick handler to the popuplink markup that would set the
    textfield value on the parent page to whatever it needs to be. so
    your finished output markup for the popuplink can look like this:

    <a href="wicket-generated-url" onclick="put-value-javascript; return
    true;">close</a>

    you will need to use an attribute modifier to build the onclick
    event handler

    -Igor



    On 2/2/06, *Thomas J du Plessis* < [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi all
        I my application, I'm opening a window using PopupSettings.  In
        this window I have a PageableListView displaying a list of
        items.  I'd like to click an item which will close the popup
        window and enter the value of the clicked item into a textfield
        in the opening window.

        I thought of using a PopupCloseLink for each item, which should
        close the window and clean it up properly (hence the
        PopupCloseLink).  However I'm not sure how to get the value of
the clicked item back to the opening document in that case. Normally (before discovering wicket ;)) I'd use JavaScript to
        pop the value back to the opener, but I'm not sure if that's
        possible with the PopupCloseLink.  I could use a normal Link
        component and use the JavaScript, but I like the idea that the
        window doesn't linger around in memory somehwere.

        Any advice would be appreciated.
        Tom







-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to