Open a new popup

Hi,
I am trying to open a popup window in the onclick event of the <h:commandLink> I also have a action event that sets the values in the managed bean to be used by the popup window. But as onclick is fired before action event, the first time my popup does not show any values. From the second time onwards it shows the Step-1 data values.
How do i solve this?
Here is the Sample code
site_main.xhtml:
<h:commandLink value="Edit" action="#{siteSelector.setCustDetails}" onclick="openCustomerDetailsEditWindow()">
<f:param value="#{customer.CustNumber}" name="custNumber"></f:param>
</h:commandLink>
Regards
Kalyan

hi ,
<h:commandLink id="editLink" action="add" >
<h:outputText value="Edit"/>
<f:param name="roleId" value="#{roleForm.pkRoleId}"/>
</h:commandLink>
And in the bean , in custructor u set the values to be set.
i've worked on it and its working.
Hope it may find the solution

Similar Messages

  • Urgent help on opening a new popup window when clicking on h:comandButton

    Hi All,
    I am working on a JSF application.I got a requirement where i need to Open new popup window when the user clicks on <h:commandButton>. Here is my sample code.
    <h:panelGroup>
    <h:commandButton onclick="window.open('/gwp/pages/client/auto_id_card_proof.jsp','PrintIDCards','top=30,left=0,width=800,height=600, scrollbars=1')"
    value="#{ClientLabels['PrintAutoIdCard.PrintProofOfInsurance']}" immediate="true"/>
    </h:panelGroup>
    Iam getting an error message in the new popup window as below when i click on the commandButton.
    JSP Processing Error
    HTTP Error Code: 404
    Error Message:JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp
    Root Cause:java.io.FileNotFoundException: JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:293)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:266)     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    Any help will be highly appreciated.
    Thanks
    Vijay

    Please, urgency is your own problem and thus irrelevant to us. This way you are seemingly putting pressure to us, which is rude.
    At any way, a 404 simply means that the URL is wrong.

  • Open a new popup window in OTL Create timecard page

    I am have created a new item called button on the create timecard page in OTL. when i click on the button it opens up a new window which runs a function in it. I want to set the properties of the new window like remove toolbar,location and menubar. when i set the properties in Target Frame I dont see any change in window style.
    The proerties of the button are
    Item Style Button
    Property Value
    *ID BIO_PROJ
    Access Key
    Additional Text
    Admin Personalization truefalse
    Attribute Set
    CSS Class
    Comments
    Data Type VARCHAR2DATEDATETIMENUMBERBOOLEANCLOB
    Destination Function :BIO_PROJ_INFO
    Destination URI :OA.jsp
    Disable Server Side Validation truefalse
    Disabled truefalse
    Export View Attribute
    Extends
    Horizontal Alignment centerleftrightstartend
    Prompt
    Rendered truefalse
    Scope
    Target Frame =javascript:window.open("","Last 10 Projects","location=0,toolbar=0,menubar=no")
    View Attribute
    View Instance
    Warn About Changes truefalse
    Please help
    Thanks

    What I usually do in this case is place a javascript function at the end of the processRequest method:
    String function = "function openWindow(pageUrl,windowName){window.open(pageUrl,windowName,'width=725,height=520,menubar=no,location=no,toolbar=no,scrollbars=yes,resizable=yes');}";
    pageContext.putJavaScriptFunction("openWindow",function);
    The I can put the destination of a link or button as javascript:openWindow(url,name)

  • Opening a new window by clicking icon on the tableview

    I would like to open a new popup window to show data by clicking an icon on one tableview. This data is kept in an internal table passed by a parent controller. Is there any example provided? (I am not familiar with the javascript language)

    You will not be able to get the index of the row which is being clicked by this method.  As the OnClientClick Event is processed on the client side, and the index is selected on the server side.
    For this you need to do some changes.......
    in the table tag populate this event <b>onSelect  = "<OnSelect>" </b> this event.
    Now use a flag, let it be SHOW_POPUP.
    Now in the event handling capture the selection event of the table.
    IF EVENT->EVENT_NAME = 'tableView' AND
                       EVENT->EVENT_SERVER_NAME = 'onSelect'.
      TV ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST
                                        NAME    = 'tableView'
                                      ID      = '<tableID' ).
      IF TV IS NOT INITIAL.
        TABLE_EVENT = TV->DATA.
        ROWINDEX = TABLE_EVENT->ROW_INDEX.
        READ TABLE <Table Name> INDEX ROWINDEX into WA.
        Key = WA-<VALUE>.
        clear SHOW_POPUP.
        IF Key IS NOT INITIAL.
        SHOW_POPUP = 'X'.
        ENDIF.
      ENDIF.
    ENDIF.
    Now in the LayOut Page Write This Script In Between Form Tag in the begning only.
    <%
    if SHOW_POPUP EQ 'X'.
    %>
    <script>
    function call_help(name)
       var result = window.open(name,"helpWindow", "status=no, menubar=no width=730,height=550");
       result.moveTo(100,40);
    </script>
    <%
    endif.
    %>
    And in between <FORM> Tag Call This Function Like
        <script>
    call_help("<page Name.htm>?Key=<%= Key %>");
        </script>
    Do not use these code as u were using earlier
    onCellClick = "onCellClick"
    <htmlb:link id = "link"
    onClientClick = "return popitup('mat_move.do?key=11')">
    </htmlb:link>
    Do Remember to clear the SHOW_POPUP Flag on request of the page at each time.
    I think This will definitely help you , If you find any problem do revert back....

  • Opening a new window after computations and validations

    Hi all
    I want to open a new popUp window after a submit button is clicked but this window should open only after all the validations assosiated with this button are executed. Please note that, I want to open this window before the process associated with this button can fire
    Any thoughts??
    Message was edited by:
    Shantanu

    Heres what I did
    I created a process called status bar to execute on submit and after computatuions and validations. This process contained the javascript to launch my new popup. This is the first process in after submit catagory. Logically it is supposed to execute before any other process but the problem is ...
    The status bar process is not executing on submit after computations and validations.I tried changing its process point to before computations and validatuions. No problems on before computations and validations if I have some validations error on that page. But if everything is validated in this case as well, We don't get the status window.
    If this is any help, here r the contents of the process in question :
    htp.p('<script language=javascript>');
    htp.p('function statusbar(page)');
    htp.p('{');
    htp.p('url = "http://flexfareserver:7777/pls/apex/f?p=101:" + page + ":&APP_SESSION.";');
    htp.p('win = window.open(url,"","Scrollbars=0,resizable=0,width=600,height=500");');
    htp.p('}');
    htp.p('statusbar(4)');
    htp.p('</script>');
    rout(11);
    end
    Notice the last statement in the process. This is a call to an external procedure called rout. This executes fine but just the htp.p is giving me problem, only in the particular case I spotted out.
    Please help

  • What is the preferred way to open a new url in a new window/popup?

    Hi Guys,
    I have an application that requires me to show another URL (Fedex tracking number) once a button is clicked.
    what is the preferred way to do it?
    Should I open a new browser or a popup?
    I would appreciate if you have a code example I can use.
    Thanks,
    Itay

    hi,
    For opening a URL , you could also close previous window and open a new browser.
    Follow the steps :
    -> make an outbound plug in your window.
    -> Add URL of type string as a parameter for your outbound plug.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of win from view wont b psbl).
    Write the below mentioned code to call a URL  in the OnAction of button :
    DATA lo_zexit TYPE REF TO ig_zexit .
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    here replace ig_zexit with your  ig<applicatin name>.
    Other way around is using Code Wizard ( control _ F7).
    Write the below code in the onaction of button :
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    You can choose any way whichever suits your requirements.
    I hope it helps.
    Thanx.

  • How to open a new JSP as a Popup

    Hello everybody,
    I have quite some experience working with java web dynpros, however I now have a requirement to work on an existing JSP page to add some new functionality, and I'm  a little bit lost since this is the first time I work with JSPs in SAP portal.
    What I need to do is that when an user clicks on a button on page1.jsp, a new jsp (that didn't exist before, since I've just created it) called page2.jsp has to open as a popup with a selection list. After the user selects a value from this list, this value has to be sent to an input field in page1.jsp.
    I've can do this in regular JSPs running on tomcat, with no problems ;).... However, when I try to do this in SAP portal, I get an error and the following exception in the logs, when I click on the button in page1.jsp:
    com.sapportals.portal.prt.runtime.PortalRuntimeException: iView not found: page2.jsp
    at com.sapportals.portal.prt.deployment.DeploymentManager.getPropertyContentProvider(DeploymentManager.java:1937)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:222)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)
    at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:387)
    I'm not sure what I have to do to fix this... do I need to ask the portal guys to create a new iview for the new jsp and treat it as a new app? Or is there a simplier solution?
    Any help will be greatly appreciated, and of course points awarded accordingly
    Cheers!

    Hi Ventsi,
    Sure, it is:
    In page1.jsp I use this code to open the pop-up:
    <td>
    <input type="text" name="details" value="">
    </td>
    <td align="center">
    <input type="button" name="choice"
    onClientClick="window.open('page2.jsp','popuppage','width=850,toolbar=1,
    resizable=1,scrollbars=yes,height=700,top=100,left=100');" value="Open">
    </td>
    In page2.jsp I use this code:
    I have this javascript function for passing the value to page1.jsp:
        function setValue (s){
            window.opener.document.getElementById('details').value = s;
            window.close();
    that i call using this line:
    javascript:window.setValue('test')
    and this is the code of the portalapp.xml, but I'm not sure if there's anything missing or wrong here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="Page1">
          <component-config>
            <property name="ClassName" value="com.test.firstapp"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/page1.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
          </component-config>
          <component-profile>
            <property name="SAP_MANDANT" value=""/>
            <property name="SAP_USER" value=""/>
            <property name="SAP_PASSWORD" value=""/>
            <property name="SAP_LANGUAGE" value=""/>
            <property name="SAP_HOST" value=""/>
            <property name="SAP_SYSTEM_NUMBER" value=""/>    
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Please let me know if you need more information regarding the code.
    Cheers!
    Edited by: amore82 on Apr 1, 2010 8:18 PM

  • Getting popups in Firefox every time I open a new tab, usually with some relvance to past browsing content

    Some are for Walmart, some are for Best Buy, and lots of others I can't remember exactly what they were. A few seconds after I open a new tab, an audio message will begin to play, followed by a popup window that is a sales pitch.

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • How do I re-order popup-menu (open in new tab to the top)

    Popup-menu is reordered to have share-option at the top in the new version of android browser.
    How do I change the open in new tab-option to be the topmost option?

    Hi mtolvane,
    Currently in the customize options of Firefox for Android, this is not a feature. I would recommend requesting the feature in a bug.
    [https://bugzilla.mozilla.org/show_bug.cgi?id=1025326] I filed this bug.

  • Open a browser popup in a new process

    Hi,
    I am opening a browser popup using window.open in javascript and that popup is running in the same process. Due to which, when i close the process, both the popup and main window are closed. My concern is to open a popup in a new process, so that killing popup's process shouldn't kill the main window's process and vice versa. How can i accomplish this. Please post a solution if anyone knows.
    Thanks in advance.
    Regards,
    Venky.

    public void showDocument(URL url)
    Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.
    Parameters:
    url - an absolute URL giving the location of the document.
    Applet must be running in a browser for this to work. More information at this website
    http://java.sun.com/j2se/1.4.1/docs/api/

  • Commandlink not opening in new window(browser) tried with popup

    Hi,
    stdURL=StandardURLData backingbean in faces-config
    viewerLink= having some URL ex: http://www.oracle.com
    stdName= some string say "oracle" if we click it redirects to "http://www.oracle.com"
    <af:commandLink action="#{stdURL.retrieveViewerLink}" >
    <af:setActionListener from="#{stdURL.viewerLink}"
    to="#{stdURL.url}"/>
    <af:outputText value="#{stdURL.stdName}"/>
    </af:commandLink>
    public String retrieveViewerLink(){
    String strURL="";
    try{
    FacesContext.getCurrentInstance().getExternalContext().redirect(getUrl());
    }catch(Exception e){
    System.out.println("Entered inside Viewer Link EXCEPTION BLOCK*************************************");
    return null;
    public void setUrl(String url) {
    this.url = url;
    public String getUrl() {
    return url;
    everything is working fine. But problem is when click on "oracle" name it is opening in same page.
    i want this url should open in new page.
    i tried with popup but it is not working.
    tried like,
    <af:commandLink action="#{stdURL.retrieveViewerLink}" >
    <af:setActionListener from="#{stdURL.viewerLink}"
    to="#{stdURL.url}"/>
    <af:outputText value="#{stdURL.stdName}"/>
    </af:commandLink>
    <af:showPopupBehavior triggerType="click" align="afterEnd" popupId="test"/>
    <af:popup id="test" clientComponent="true" launcherVar="source">
    <af:dialog type="none" contentWidth="200" contentHeight="200">
    <af:panelGroupLayout>
    <h:panelGrid rules="rows">
    test
    </h:panelGrid>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    i tried with "usewindow=false" also.
    thanks in advance
    regards,
    sandeep

    Hi,
    yeah first i used golink only. it is working fine.
    But i have other requirement, im using export to excel option, their wt happening is,
    ex: abc , xyz... are 2 values.
    say "abc" is an hyperlink.
    that time "abc" is not placing in excel, only xyz (without hyperlink) going to excel.
    Now, i rectifiyed this problem with commandlink, everything is working fine (redirecting and export to excel)
    but i want to open this link in NEW WINDOW.
    thanks in advance.
    regards,
    sandeep

  • Why is Firefox opening a popup every time i open a new tab and even when i start Firefox?

    Every time i open a new window or new tab im getting a popup with the Firefox logo at top left corner of the popup!
    == This happened ==
    Every time Firefox opened
    == not sure

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I've got every time when i open a new site a popup how to remove this

    i've etting evry time when i open a new site a popup? how to remove this pls

    Click here and follow the instructions, or if desired, run Adware Medic; you don't need to download it or any other software to resolve this issue, but may find it easier to do so. Clicking on the second link will normally start downloading it immediately; if you get an error message instead, see this page.
    While Adware Medic is safe to use(it was created by a longtime contributor to these boards), you should avoid downloading software from sources other than the Mac App Store and the developer’s website; this was probably how the adware producing them got onto the computer.
    (116996)

  • Ever since I downloaded the new version a few days ago I get full screen popup ads whenever I try to open a new site. It's INCREDIBLY annoying, and sometimes there is no icon to close them. WHY, why would Firefox allow this?

    I don't HAVE any more details. Whenever I open a new site, I get (so far) one of two full screen advertisements. Most of the time there is the word "Skip" in the upper right hand corner, but on occasion that is not there, and there no way to get beyond the ad screen except to go into what they are trying to sell you. It is imposing and obnoxious to the nth. This has only happened since I downloaded the latest version (I think the BETA 4) 3 days ago. If this can not be resolved, I want to go back to the older version.
    Thanks,
    Kathryn

    The Firefox pop-up blocker is usually very effective for blocking pop-ups generated by websites, but it sounds like you may have picked up some Malware that is generating those pop-ups from you own PC.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html

  • How can I force a popup to open in a new tab instead of opening a new window?

    I want to keep any links that I click from opening a new window, ie. if I click on a link in an open tab that opens a new window, I want it to open in a new tab instead. I am on Firefox 5.0.

    You can look at the browser.link.open_newwindow prefs on the about:config page.
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction (0)
    * http://kb.mozillazine.org/browser.link.open_newwindow (3)
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

Maybe you are looking for

  • PO Print out Issue place

    Hi.. My client raises the PO at Jaipur for their plant which is at Mumbai...All the goods will be delivered at mumbai.. but in the print out of PO..my client wants to print the address of the PO issued place..like in this case..PO issued place is jai

  • Cover Flow in Finder (Not Showing Photo)

    Hello, In my Finder window, it is no longer showing the actual photo in the "cover flow". I can still press spacebar and it will preview the photo for me, however, when I'm using cover flow to browse through photos, documents, pdf's, it no longer sho

  • How to activate process variant in prod

    hi,   When i am activating a newly transported process chain in PRODUCTION,i got the error : Process variant ATTRIBWAIT EVEN_44W1TMZUNLBVJO1F6MF9GFNT6 does not exist in version A. How do i activate the process variant ?.Its a wait process between the

  • HT1414 computer is not recognizing iphone

    I bought 2 iphone 4's from a friend.  I fixed the screens and am trying to give them to other friends.  Only problem is that neither of them will connect to my Macbook (itunes)   they are not registering at all.  I don't know if it has anything to do

  • [bsp:findAndReplace] tableView & Iterator

    Hi, I am currently struggling with the use <bsp:findAndReplace> in Iterator in order to add a JavaScript event for a personalized tooltip display. I am using the Bee Table: findreplace_bee = cl_bsp_find_and_replace=>factory( find    = '<a'