How i can open a browser windows using a button in jsf ?

Hi
Thank you for reading my post
how i can open a browser windows using a button in jsf ?
for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
and before opening the window i need to set those two variables.
can some one help me with a solution ?
thank you

Hi Legolas,
Please refer to the answer provided by Chris in the EA forums.
Cheers
Giri

Similar Messages

  • Reg: To open a Browse Window Using Form Builder

    Dear All,
    I am trying to open a browse window using form builder.I am using forms 10g.
    I have user the following code.
    Declare
    l_file_name Varchar2(383);
    Begin
    l_file_name := webutil_file.file_open_dialog( );
    If
      l_file_name Is Not Null
    Then
      If
        :images.Rowid Is Not Null
      Then
        create_record;
      End If;
      client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
    End If;
    End;I have attached the webutil.pll in attached library.
    It shows an error" WEBUTIL Object group not attached to this form".
    Can any one help me how to attach that object group.
    Thankx in advance.
    Cheers,
    Jai.

    write this in your 'Browse' Button's , when_button_pressed trigger
    DECLARE
      filename VARCHAR2(500);
    BEGIN
      filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
      :txtbx3:=filename;  -- Here you will assign to you form's field.
    END;Edited by: Tuts009 on May 10, 2010 5:00 AM

  • Suddenly after running Firefox for years, I cannot open multiple browser windows using Windows XP.

    I have always been able to open more than one browser windows, so I can have my email minimized while doing other tasks on one or more other browsing pages. All of a sudden, I can only open one browsing page. When I try to open a second, I get the red circle with a diagonal slash through it stopping me.
    Can anyone help me?

    Hi,
    The path to the profile would usually be '''My Computer''' > '''?:\Documents and Settings\yourusername\Application Data\Mozilla\Firefox\Profiles\***.default''', if there are no other profiles. If there is another profile, it would be that instead of ***.default. You may have to enable hidden files and folders.
    Please see [http://kb.mozillazine.org/Profile_folder_-_Firefox#Windows this.]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]

  • How to display a pop up window using a button redirect to a page ?

    Hi
    I have a button who redirect to a page of the application and this button passes a few items using the URL parameters
    (Optional URL Redirect).
    I would like to display the new URL page in a pop up window, with the items set properly
    Where do I put the "target = _blank" instruction ?
    Thank you for your answers !
    Regards,
    Christian

    Christian,
    I'm not sure you can use a button like that, at least not without creating a custom button template, but then it wouldn't really be a button anymore. The standard popup function in ApEx is html_PopUp. It's signature is:
    html_PopUp(pURL,pName,pWidth,pHeight,pScroll,pResizable)
    It essentially encapsulates a call to window.open and can be called from a button with:
    javascript:html_PopUp('http://www.google.com');
    If you want to learn more do a Google search on "javascript window.open".
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • How can we close the window using a button in applet?

    I have a close button in my applet which should close the browser from where the application is launched. Can somebody post a sample code for doing the same?

    I'm afraid I don't have any sample code, but I can describe a possible solution.
    1. Retrieve the JSObject via Application.[url http://docs.oracle.com/javafx/2/api/javafx/application/Application.html#getHostServices%28%29]getHostServices().[url http://docs.oracle.com/javafx/2/api/javafx/application/HostServices.html#getWebContext%28%29]getWebContext()
    2. Use the JSObject to manipulate the JavaScript into closing the Window.

  • Opening a browser window with Java

    Is there a way I can open a Browser Window (with a specific html document) from Java? Thanks.

    Use Runtime.exec(cmd) with the following command:
    Under Windows 9x:
       command.com /C" start "urltofile.html"Under other Windows:
       cmd.exe /C [start] "urltofile.html"  (start is needed when url begins with 'http://")

  • How to close Browser by using a button

    I want to close my browser window using a button in ADF JSF Page.
    How it can be done .... ?
    Regards
    MS Arain

    Thanks to all of you i got a hint from your guys which resolve the issue
    however i want to share how i have resolved this issue i may be wrong
    or there may be any easy alternative that is why i am sharing it.
    I adopted the following steps
    1. Add a New Command Button in my JSF Page
    2. Attached a client listener with the command button
    <af:commandButton text="Close &amp; Exit" id="cb8">
    <af:clientListener method="closeWindow" type="action"/> ---// This is the attachment syntax
    </af:commandButton>
    3. Define a closewindow java script as follows
    <af:resource type="javascript"> --// this is how we declare/define java script in ADF
    function closeWindow(actionEvent) {
    window.close();
    </af:resource>
    Regards
    MS Arain

  • Open a browser-window and show an Internetpage of a certain URL

    Is there any class or package with a member, that can open a Browser-window and show an Internetpage of a certain URL?

    open a browser window: not sure you can do that ; though you can try with Runtime.exec() but you will have to choose the browser that should open and if the comp does not have it you're stuffed
    read the content of an URL: i think you can do that with methods of URLConnection class :)

  • Using Firefox 5 in Windows 7, once I have Firefox open, I can no longer open a new window using the start button. How do I fix?

    As I stated, I have Windows 7 on my laptop and have installed Firefox 5. I sometimes like to have multiple windows of the browser open. But, unlike any previous version of Firefox, now when I have the browser open, when I try to open a new window using the Start menu, it will not open one. I have to use Ctrl+N. Why did this change?
    This may seem insignificant but it really hampers my work flow. For one, with other applications, Shift+N is what opens a new window. For two, I've been doing with with my browsers for years now and it's like second nature for me - having to remember that in Firefox it's Ctrl+N is a pain in my tuccus.
    Firefox is my go to browser and I would like it to stay that way. Please find the solution for me! I have tried looking using Tools, Options, as well as looking at my start menu and taskbar options, and no dice.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I print from Gmail, I can't return to my e-mail and have to open another browser window. The back button become inactive.

    While using Gmail, when I print e-mail I can't return to my inbox or any other Gmail option. I am left "stuck" at the print window and have to open another browser window each time and go back into e-mail. Usually, I am still logged in after doing this, but sometimes I have to login to e-mail again. Thanks.

    How are you trying to change it ?
    You should be able to log out of an account by clicking on it at the top left of the store's pages on your computer's iTunes, or via the Store > Sign Out menu option (if you are using a PC and the drop-down menus aren't showing at the top of iTunes then control-B should get them to show). You can then sign in with your own account (the Store > Sign Out menu option should change to a Sign In option) - does that work ?

  • How to open new browser window on click of command button

    Hi,
    We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
    Thanks in Advance,
    Pradeep

    Hi,
    I have to load an applet viewer in the new browser window. I have URL to the PDF.
    I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
    The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
    How do i update the session scope variable using javascript?
    Thanks and Regards,
    Pradeep

  • How we can open pdf files in epic browser in English

    how we can open pdf files in epic browser in English
    message is appearing in epic browser during opening pdf files in browser " The adobreader /acrobat reader is running cannot be used to view pdf files , please exit and try again "

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • When i clink a given link in google than that webpage open in another window. How i can open that page in the same tabe ?

    when i clink a given link in google search than that webpage open in another window. How i can open that page in the same tabe ?

    Hello gogotutu
    In the [https://support.mozilla.org/en-US/kb/awesome-bar-find-your-bookmarks-history-and-tabs#os=win7&browser=fx17 Location bar], type [http://kb.mozillazine.org/About:config about:config ]and press '''Enter'''.
    The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
    In the Search field, type [http://kb.mozillazine.org/Browser.link.open_newwindow browser.link.open_newwindow]
    double-click and put as a value '''1''' , click OK to save it.
    do the same with '''browser.link.open_newwindow.override.external''' , again put '''1''' as a value(it is -1 by default).
    check also, always in about:config, the [http://kb.mozillazine.org/Browser.link.open_newwindow.restriction browser.link.open_newwindow.restriction] and put as value''' 0''' .
    thank you

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to open a panel tabbed window using a button present in the same page

    below is my jspx page where i have two buttons and two panel tabs. I want to open respective panel tabs using respective buttons:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backing_pages_bb.d1}">
    <af:form id="f1" binding="#{backing_pages_bb.f1}">
    <af:panelStretchLayout binding="#{backing_pages_bb.psl1}" id="psl1">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:panelTabbed binding="#{backing_pages_bb.pt1}" id="pt1">
    <af:showDetailItem text="first"
    binding="#{backing_pages_bb.sdi1}" id="sdi1"/>
    <af:showDetailItem text="second"
    binding="#{backing_pages_bb.sdi2}" id="sdi2"
    rendered="true" disclosed="false"/>
    </af:panelTabbed>
    </f:facet>
    <f:facet name="start"/>
    <f:facet name="end"/>
    <f:facet name="top">
    <af:panelGroupLayout binding="#{backing_pages_bb.pgl1}" id="pgl1">
    <af:commandButton text="first"
    binding="#{backing_pages_bb.cb1}" id="cb1"
    action="#{backing_pages_bb.cb1_action}"/>
    <af:commandButton text="second"
    binding="#{backing_pages_bb.cb2}" id="cb2"
    action="#{backing_pages_bb.cb2_action}"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_pages_bb-->
    </jsp:root>
    below is the backing bean created for the jspx page:
    package view.backing.pages;
    import javax.faces.component.UIComponent;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
    import oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout;
    import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
    import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    public class Bb {
    private RichForm f1;
    private RichDocument d1;
    private RichPanelStretchLayout psl1;
    private RichPanelGroupLayout pgl1;
    private RichCommandButton cb1;
    private RichCommandButton cb2;
    private RichPanelTabbed pt1;
    private RichShowDetailItem sdi1;
    private RichShowDetailItem sdi2;
    public void setF1(RichForm f1) {
    this.f1 = f1;
    public RichForm getF1() {
    return f1;
    public void setD1(RichDocument d1) {
    this.d1 = d1;
    public RichDocument getD1() {
    return d1;
    public void setPsl1(RichPanelStretchLayout psl1) {
    this.psl1 = psl1;
    public RichPanelStretchLayout getPsl1() {
    return psl1;
    public void setPgl1(RichPanelGroupLayout pgl1) {
    this.pgl1 = pgl1;
    public RichPanelGroupLayout getPgl1() {
    return pgl1;
    public void setCb1(RichCommandButton cb1) {
    this.cb1 = cb1;
    public RichCommandButton getCb1() {
    return cb1;
    public void setCb2(RichCommandButton cb2) {
    this.cb2 = cb2;
    public RichCommandButton getCb2() {
    return cb2;
    public void setPt1(RichPanelTabbed pt1) {
    this.pt1 = pt1;
    public RichPanelTabbed getPt1() {
    return pt1;
    public void setSdi1(RichShowDetailItem sdi1) {
    this.sdi1 = sdi1;
    public RichShowDetailItem getSdi1() {
    return sdi1;
    public void setSdi2(RichShowDetailItem sdi2) {
    this.sdi2 = sdi2;
    public RichShowDetailItem getSdi2() {
    return sdi2;
    public String cb1_action() {
    // Add event code here...
    return null;
    public String cb2_action() {
    // Add event code here...
    return null;
    Wat method has to be coded inside cb1_action and cb2_action so that respective panels are opened.
    thank u for ur help in advance.

    Hi,
    If the data need to be passed is large, consider using Shared Memeory Objects: Check this doc for reference: How to pass data from ABAP to Web Dynpro ABAP
    Hope this helps u,
    Regards,
    Kiran

Maybe you are looking for

  • WSDL error during generation of  ABAP proxy for web service

    Hi friends, I am getting error during the generation of ABAP proxy object for web service developed in .NET . Error : Proxy generation terminated: WSDL error (<extension> not supported). How to make this WSDL file compatible  for  ABAP proxy. I have

  • Instance names with Oracle Parrallel Server (OPS)

    Hi. I was "reviewing" an Oracle 8 OPS implementation and I noticed that the instances on both nodes have the same name. In another word, the instance on node 1 is named I1 and the instance on node 2 is named I1. While the system appears to work, duri

  • APP for vendors to priority Basis

    Hi, I have a 10,000 vendors in my company  code . In That 500  premier vendors are there . While run F110  for payments system first make payments to 500 premier vendors after that it have to issue remaining vendors . how to make payments priority ba

  • Selecting HP printer crashes in Safari and Mail

    Selecting an HP printer from the print dialog in Safari or Mail crashes those apps; anyone have a solution? Here's a sample crash log: Command: Mail Path: /Applications/Mail.app/Contents/MacOS/Mail Parent: WindowServer [59] Version: 2.1.1 (752.3) Bui

  • Oracle Server Management Error!!!

    Hi all, Can anyone faced this b4? I'm getting an error while logging into Oracle management server!! the OMS service has started.. i've craeted a repository with user OEM and Pwd. XXXXXX but when i try to logging into EMS..it gives incorrect login cr