Opening Injected Page in a new tab.

abangkis <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAGqeSzUnuxOASoRBpgwg8J8ywdXQszAOy7ccjPtWYn_me1iPUQ@mail.gmail.com>
Hi,

I have a javascript that trigger a page navigation. It's working perfectly
with the code below.

    @InjectPage
    private AddNode addNodePage;

    @OnEvent("ManageNode")
    @PublishEvent
    Object manageNode(@RequestParameter(value = "param", allowBlank =
false) String param) {
        JSONObject jsonObj = new JSONObject(param);
        long nodeId = jsonObj.getLong("nodeId");
        addNodePage.activate(nodeId);
        return addNodePage;
    }


A new requirement now arrive to open it in a new tab/page instead of
navigating to it. How can i do this from the java code?

Thank you very much.
-- 
http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
twitter : @mreunionlabs @abangkis
page : https://plus.google.com/104168782385184990771

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.