Re: Opening Injected Page in a new tab.

abangkis <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAGqeSzUz0DhH+Zip=bn+C4DQMCurQG8cG64vgj8ii4CyL64f+A@mail.gmail.com>
Okay. Thanks a lot for the info thiago.

<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>

On Thu, Dec 7, 2017 at 1:35 AM, Thiago H. de Paula Figueiredo <
[email protected]> wrote:

> You have to do this in JavaScript. You cannot open links in a new tab/page
> dynamically (i.e. not using an ordinary <a target="_blank">) from the
> server side.
>
> On Wed, Dec 6, 2017 at 1:11 PM, abangkis <[email protected]> wrote:
>
> > 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>
> >
>
>
>
> --
> Thiago
>



-- 
http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
twitter : @mreunionlabs @abangkis
page : https://plus.google.com/104168782385184990771
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.