Spawning a new browser in hyperlink in java/tomcat

Post Author: passionlessDrone
CA Forum: General
Hello friends -
I'm going crazy trying to reckon a way to spawn a new browser from a hyperlink field with the java info view / tomcat set up.  Based on some recommendations provided for .NET users, I went ahead and modified viewDHTMLReport.jsp with the following line, diretly after the CrystalReportInteractiveViewer was created:
viewer1.setHyperlinkTarget("_blank");
I have confidence this is being called, as I mispelled the function name on my first try and got a 505 returned from Tomcat indicating bad method name, etc.  Tragically, even with a valid method name, the page continues to render 'target="_self" no matter what value is passed in as a hyperlink target.  I have also tried modifiying DHTMLViewer.jsp and ADHTMLViewer.jsp with similar calls directly after the setProductLocale call, but the same results. 
Is there a chance that processHttpRequest in the Viewer just doesn't pay attention to what gets set in setHyperlinkTarget and will return "_self" no matter what? 
It also seems a bit naughty that it appears you have to globally set hyperlinks to either spawn new windows or not.
Any insight or advice is greatly appreciated!
Take care!
-pD

Post Author: passionlessDrone
CA Forum: General
Bump.
Surely someone has either solved this problem or deemed it impossible. 
Thanks!
- pD

Similar Messages

  • Display Integrated Oracle Report in New Browser Window

    Hi All,
    I am using APEX 3.0.1 and Reports Builder 10g and have integrated my Oracle Reports (.rdf) successfully with APEX.
    The trouble is that the report output (in PDF format) is opening in the same browser window as my APEX application and I would like to spawn a new browser window to display the report output.
    The report is being called from a button with a Target of URL and the URL Target is:
    &REPORTS_URL.&module=DEBITNOTE_REP.rdf&destype=cache&desformat=pdf&P_DEBITNOTEID=&P73_DEBITNOTEID.
    Kind Regards,
    Gary.

    Hi Garry,
    Had to do the same thing last week.
    1. Create a javascript function that accepts the report parameters and calls the window.open function for the reports URL
    2. Change the URL on the report button to call this new function
    It might also be worth using a cmdfile (see reports doco) to simplify the URL
    cheers,
    Ron

  • Open hyperlink in a new browser

    Hello,
    All of our crystal reports are posted on Infoview. I need to create a report that would have a hyperlink to a different report also posted on Infoview. I want the second report opened in the new window. What formula should I use to open a second report in the new window?
    Thanks!!
    Olga

    hello all,
    you can do this using opendocument syntax. unfortunately opendocument syntax information is not that common.
    1) please do a search on your system for report_viewers.zip or report_viewer.chm. this is the help file that has the information on opendocument.
    2) once you have opened the chm go to the Search tab and type in opendocument
    3) select "URL Reporting Using openDocument" and press the "opendocument parameters" link
    4) scroll down and there is a "sWindow" parameter and use the value New
    in the chm there are examples on each opendoc parameter....i have pasted this particular page below as well.
    in cr2008 there is an Enterprise Hyperlink wizard which has open in new window as an option.
    there are a lot of things you can do with opendocument:
    a) go to the top of a report page
    b) use an "index" at the top of a report page to go to, for example, groups that start with the letter "G"
    c) go to a specific part of the report or another report
    d) hide the drilldown tabs
    e) hide the toolbar
    etc.
    i will endeavour to blog about this in the near future and have some sample reports.
    here's the info from the chm
    OpenDocument parameters
    There are two implementations of the openDocument function. The exact syntax of the <platformSpecific> parameter depends on your implementation:
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    The first parameter of the link
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?
    The first parameter, as displayed in the example above, must precede all other parameters. After this information, the parameters can appear in any order.
    The parameters of the function are displayed in the following table. The mandatory column indicates whether the parameter is required in the link.
    Note:    The document containing the openDocument link is called the parent document, and it resides on the parent system. The document to which the link points is called the target document, and it resides on the target system.
    Parameter syntax Description of parameter Mandatory? Values accepted for parameter
    sPath
    The name of the Crystal folder and subfolder containing the target document.
    Yes if sDocName is specified and is not unique.
    Crystal folder and/or subfolder:
    [folder],[subfolder]
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports,SubFolder
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sType
    The file type of target document or report.
    Yes
    wid
    rpt
    car
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sDocName
    Document name.
    One of sDocName or iDocID is mandatory.
    Document name.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2005
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    iDocID
    Document identifier.
    One of sDocName or iDocID is mandatory.
    Document identifier.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    Replace 2010 with the document ID.
    Tip:   
    To obtain the document ID, navigate to the document in InfoView, hover your mouse over the document name hyperlink, and look for the ID number in the browser's status bar. You can also obtain the document ID from the Central Management Console.
    sIDType
    Crystal object type.
    Yes if the target is a Crystal report or OLAP Intelligence report (sType=rpt or =car) in an Object Package (otherwise, use sPath and sDocName)
    CUID
    GUID
    RUID
    ParentID
    InfoObjectID (default)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2003&sIDType=InfoObject
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sReportName
    Indicates which report to open if target document is multi-report.
    No (default is the first report)
    Report name for Web Intelligence documents, sub-report for Crystal Reports, pages for OLAP Intelligence reports.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=Salesin2003&sReportName=FirstReportTab
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sOutputFormat
    Indicates the format in which the target document is opened.
    No (default is HTML if the parameter is not specified in the link)
    H (HTML)
    P (PDF)
    E (Excel)
    W (Word)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2003&sOutputFormat=E
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sReportPart
    Indicates which specific part of the target report to open.
    No
    Name of the report part.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2003&sReportPart=Part1
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sPartContext
    In Crystal Reports, a report part is associated to a data context.
    Yes if a value is specified for sReportPart
    Data context of the report part.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2005&sReportPart=Part1&sPartContext=0-4-0
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sInstance
    Indicates which specific instance of the target report to open.
    No (use with sDocName and lsS[NAME])
    User (Link to latest instance owned by current user)
    Last (Link to latest instance for report)
    Param (Link to latest instance of report with matching parameter values)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2003&sReportPart=Part1&sInstance=User
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sReportMode
    For Crystal targets only, indicates whether the link should open the full target report or just the report part specified in sReportPart.
    No (default is Full)
    Only applies if a value is specified for sReportPart
    Full
    Part
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sPath=SalesReports&sDocName=Salesin+2003&sReportPart=Part1&sReportMode=Part
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sRefresh
    Indicates whether a refresh should be forced when the target document or report is opened.
    No
    Y (forces the document's refresh)
    N (note that the refresh on open feature overrides this value)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&sRefresh=Y
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    sWindow
    Indicates whether the target report will open in the current browser window or whether a new window will be launched.
    No
    Same (current browser window)
    New (new browser window is launched)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&sWindow=New
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    lsS[NAME]
    Specifies a value for a single prompt. [NAME] is the text of the prompt.
    No
    A single prompt value.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&lsSSelectaCity=Paris
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    lsM[NAME]
    Specifies multiple values for a prompt. [NAME] is the text of the prompt.
    No
    Multiple prompt values, separated by a comma. If the target is a Crystal report, each value must be enclosed in square brackets. If the target is a OLAP Intelligence report, use the MDX WITH clause (refer to Specifying prompts for OLAP Intelligence report targets).
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=rpt&sDocName=SalesReport&lsMSelect+Cities=[Paris],[London]
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    lsR[NAME]
    Specifies a range of values for a prompt. [NAME] is the text of the prompt.
    Note:    Not supported by OLAP Intelligence
    No
    A range of values for the prompt, separated by a double period (..). If the target is a Crystal report, the range must be enclosed in square brackets and/or parentheses (use a square bracket next to a value to include it in the range, and parentheses to exclude it). If the target is a OLAP Intelligence report, use the MDX WITH clause (refer to Specifying prompts for OLAP Intelligence report targets).
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=rpt&sDocName=SalesReport&lsRTime+Period:=[2000..2004)
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    lsU
    Specifies a URL to which the user is redirected.
    Note:    Not supported by OLAP Intelligence
    No
    A URL.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&lsU=http://www.site.com
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    lsC
    Specifies a contextual prompt if there is an ambiguity during SQL generation (Business Objects and Web Intelligence documents only).
    Note:    Not supported by OLAP Intelligence
    No
    A prompt value that resolves the ambiguity in the SQL generation.
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&lsC=Sales
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter.
    NAII
    Forces the display of the prompt selection page.
    Note:    Not supported by OLAP Intelligence
    No
    Y (all prompts whose values are passed with lsS, lsM or lsR are pre-selected)
    N (displays only the prompts whose values passed with lsS, lsM or lsR)
    Example:
    http://<webserver>/businessobjects/enterprise11/<platformSpecific>?sType=wid&sDocName=SalesReport&iDocID=2010&NAII=Y
    For Java implementations, use desktoplaunch/opendoc/openDocument.jsp in place of the <platformSpecific> parameter.
    For .NET implementations, use InfoView/scripts/opendocument.aspx in place of the <platformSpecific> parameter
    Edited by: Jamie Wiseman on Dec 3, 2009 10:01 AM

  • Open URL from Java in a new browser tab

    Hi OTN,
    Surprisingly can't find the implimintation.
    In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
    Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
    But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
    ADF 11.1.1.4
    Thanks.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Making a hyperlink open the linked page in a new browser window

    Does anyone know if iWeb allows a way to create a hyperlink such that it will open a new browser window rather than navigating away from your site?
    Thanks for any and all help.
    Brian
    www.productionmax.com

    I've scoured the forums. It's just not in the software as of yet. This is best solution I could find:
    http://discussions.apple.com/thread.jspa?messageID=1629842&#1629842

  • Opening a new URL in an existing browser window from a Java application

    I've tried one of the many codes to open a new browser window and it works, but I need something else.
    Is there any way to open a new URL on the same window on a Java desktop application? (Changing the URL on the current browser window without opening a new one, I mean).

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • Opening Hyperlinks in New Browser Window?

    Hi All,
    Does anyone know how to have keynote open a hyperlink in a new browser window? I have exported my keynote presentation to a quicktime moive and posted it on the web.
    However, when someone clicks on one of the hyperlinks it opens the new website in the same browser window. When they click the Back button to go back to my Keynote quicktime movie it starts the presentation/movie over.
    Any help you may have to offer would be GREATLY appreciated! Thank you!

    Hi All,
    Does anyone know how to have keynote open a hyperlink in a new browser window? I have exported my keynote presentation to a quicktime moive and posted it on the web.
    However, when someone clicks on one of the hyperlinks it opens the new website in the same browser window. When they click the Back button to go back to my Keynote quicktime movie it starts the presentation/movie over.
    Any help you may have to offer would be GREATLY appreciated! Thank you!

  • Opening Hyperlinks from PDF in a new browser Window

    We have a web based (ASP.NET) tool to author HTML content. Authors can create/edit HTML content, preview, and save the file as PDF. A 3rd party component- abcpdf is used to convert HTML into PDF. The converted PDF form will be distributed to consumers.
    The PDF typically contains Hyperlinks, text boxes and submit button.
    Clicking the hyper link in PDF should open the HTML in a new browser instance. It should not hijack (overwrite or reuse) existing browser instance that may be active in users computer irrespective of browser setting. Changing the browser setting IE: Internet Option > Advanced > Reuse windows for launching shortcuts is not acceptable by users.
    Please let us know the solution if any

    Hi Sarah ,
    You can right click on the link and choose properties and then in the actions tab you can select the desired action you want .
    You will get a list of various actions specifying how and where do you want to open that link.
    Try this and let us know how it goes.
    Regards
    Sukrit Dhingra

  • New Browser Window from Hyperlinks on PDF created in In Design

    I am creating PDF documents using In Design CS3.  The PDFs have hyperlinks to other PDFs as well as hyperlinks to webpages. The finalized PDF is being accessed through our website as a link on the webpage. The PDF is opening in a new browser window/tab and the hyperlinks are working great.  My problem is this: How do I get it so that the hyperlinks on the PDF open to a new browser window as well.  Currently, when I click a link, it changes the current browser window that the PDF is in.  I want to set this so that anyone, from any computer will have it so that the link opens a new window/tab.

    In Adobe Acrobat (the application, not the .pdf reader) use the Link Tool to edit the hyperlinked text object. Remove the “Open a web link” action assigned by default to handle the hyperlinked text when clicked. Assign a new action to the linked text that will open the hyperlink in a new window.
    Note: The links have to be established each time you create a PDF – they do not carry over from In Design or any other software.
    1.     Access the Link tool (Tools > Advanced Editing > Link Tool)
    2.     Right click on the hyperlinked text and select Properties
    3.     In the Link Properties dialog box click on the Actions tab
    4.     In the middle of the Actions panel in the Actions section click on the Open a web link action listed there to select it.
    5.     Click the Delete button located just below that section in the lower right corner. This removes the action from the list and the Actions section should now be empty.
    6.     In the Add an Action section right above the Actions section click on the Select Action drop down menu and select the Run a JavaScript action from the list.
    7.     Click the Add… button.
    8.     In the JavaScript Editor that opens up, click your cursor in the Create and Edit JavaScripts area, like you would in a word processor to begin typing, and type the following line:
    app.launchURL("http://www.MySampleURL.com/someFolder/somePage.html", true);
    9.     Change the hyperlink text between the quotation marks to your desired URL.
    Ex: app.launchURL("http://www.cnn.com", true);
    Caution:
    1.     The code is case sensitive so make sure you typed app.launchURL NOT app.launchurl or some other case combination.
    2.     Make sure that you have quotation marks around your hyperlink URL.
    3.     Make sure there is a semicolon at the end of the line of code you just typed.
    4.     Make sure that the quotation marks are straight up and down – not on an angle.
    10. Click OK to close the JavaScript Editor dialog box.
    11. Click OK to close the Link Properties dialog box.
    12. Save the .pdf and test your .pdf hyperlink by opening the .pdf document in a browser, click the link and check to see that it opens in a new browser window.

  • How to Open Hyperlink in a New Browser?

    Hi, 
    I have a hyperlink in my report that takes the user to a webpage and from my ASP application, I want the hyperlink to open a new browser session or tab instead of taking over my current session and losing my report.  This will give the users the ability to flip back to the report and open another page if they need to. 
    Interesting how right-clicking the hyperlink has Open in New Tab and Open in New Window greyed out. 
    Windows application works fine and the hyperlinks open in their own tab. 
    Is there a way to encapulate the url from the hyperlink in a javascript popUp? 
    I'm using CRVS2010 in VS2010. 
    Thanks,
    Brian

    Hi Brian,
    On the properties page of the view find the Property HyperlinkTarget, default is set to _self, change it to _blank.
    Have fun
    Don
    PS - Thanks to Dan P. For this.

  • Spawn a new PDF using Java Script within LC Designer

    I am trying to spawn a new PDF file to be created from an existing PDF using Java Script within the LC designer
    I have this example but I can't get it to work
    function createPdf()
        pdf = pdf$();
        pdf.addText('Hello World');
        pdf.writeToFile('c:/temp/hello_world.pdf');
        window.open('file://c:/temp/hello_world.pdf');
    Is it possible to create a PDF like this within LC Designer?

    Hi
    I would like to see if it was possible.  I thought it would be easy, as
    there is a standard batch processing sequence (Print 1st page of all) using
    Java that comes with Acrobat 7.  This allows you to print the first page of
    a number of files that you select when the sequence is run.  Its code is:
    /* Print 1st Page */
    /* This sequence prints the first page of
       each document selected to the default printer.
    this.print
    To my uninformed mind it seemed logical that the same code, slightly
    modified to print all pages, should work from within a form.
    Anyway, if there is a way to choose individual files, I would appreciate
    that.
    Thanks
    Rob

  • Opening up a new browser window in java

    So, i'm trying to open up a browser window to download the mac runtime for java, if the system is a mac. but because of microsoft not letting java to javascript communication i can't do it. anyone got any ideas?
    thanks,
    Pete

    Hi,
    you may check the platform in your applet with
    System.getProperty("os.name"); and then open new browser window with
    getAppletContext().showDocument(url_to_download, window_name);Regards,
    Martin

  • Access Java class in my JSP/JSF page and conditionally open a new browser

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • Spawning a new process from a java application

    Hi,
    Was wondering if there is any way to spawn a new java application (not as a Thread) from a running application?
    ie, class A and class B are both applications: both have public static void main() methods, and i want class A to spawn a class B application in a separate console window
    I have tried the samy by using java.lang.Runtime and java.lang.Process class but I could not satisfy myself.
    Do you guys have any idea...??

    Hi,
    I tried as you instructed. See, there is one batch file named s.bat in the current directory and I am trying to run my application which in turn executes following command in Runtime.getRuntime().exec() method,
    start command /k s.bat
    on execution of this line it throws IOException as,
    Executing : start command /k s.bat
    java.io.IOException: CreateProcess: start command /k s.bat error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at RuntimeTest.main(RuntimeTest.java:17)
    line no. 17 goes like this,
    Process p = Runtime.getRuntime().exec(cmd);
    Am i wrong at any strage or what..?? I suggest you also try to do the same. I am working on Windows NT 4.0 platform. It may be more restrictive....?? I don't know exact reason why it is not allowing me to do so???
    Any comment??

  • Open new browser window from Hyperlink in BIP PDF output report?

    Hello,
    Is there a way to open a new browser window from Hyperlink in PDF report?
    Thank you all in advance.
    MT

    Dear Friend,
    It is not supported for PDF Report. But below links helps you, to accombish this task in PDF report.
    [url http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html]http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html
    Thanks & Regards
    Ahamed Rafeeque Cherkala

Maybe you are looking for

  • N:1 Mapping.

    Hi All, Say I am Collecting IDOC's of similar type into One using BPM So In my N:1 mapping,as my Source and the target messages are the same I would just change the Occurence of the source messgage to unbounded i.e SourceMESSAGE1 (0-Unbounded) -Targe

  • Interface Determination causing issue in Receiver Determination

    Hi I am having an issue with interface and receiver determination as follows: - Inbound message may be sent to two receivers. - Message gets sent to first receiver, fails during interface determination. There are multiple inbound interfaces found bas

  • Search on ipod fifth generation is false

    on the apple website it has a demo of an ipod with a search feature and i upgraded my itunes and ipod and it still does not have that feature. fifth generation   Windows XP Pro  

  • Icons... suddenly some are different....

    I use Dreamweaver by Adobe.  I noticed recently that all my .htm icons have the Opera (Browser) icon assigned to them.  If I switch the view setting to "Icons" they go away, but I prefer the list view or Cover flow view.  Anyway to revert to the old

  • Where can I download the Linksys TFTP.exe utility?

    Hello everyone, I am trying to upgrade this router I've got and was wondering if anyone knew where to get the Linksys TFTP.exe utility.  Apparently Linksys have decided to re-organize their public FTP and the file is no longer anywhere to be found.