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 < thiag...@gmail.com> 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 <abang...@gmail.com> 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