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

Similar Messages

  • Why can I not open a new window but I can open new tabs in V3.6.16?

    I am running Firefox 3.6.16 on both my PC and my laptop. The program works fine on my PC, I can open both new windows and new tabs. However, on my laptop I can not open a new window. Tabs open just fine, but when I try to open a new window nothing happens. Also, when I close the program after trying to open a new window the program is still running but I have no Firefox window to work in and therefore have to go through the Task Manager to end the program. And when I re-open it, I get asked if I want to restore the session or start a new session. Is there a way to

    '''Un-install''' the '''''Ask Toolbar''''' until Ask fixes the problem with their toolbar:
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on

  • The wheel click button does not open a new window since the latest update (9.0.1)

    Hi
    I just want to report this bug in hope it will be fixed asap
    The wheel click button does not open a new window since the latest update (9.0.1)
    Thank you

    Middle-click or click the scroll-wheel on a hyperlink has always opened a '''new Tab'''. Any chance you had an add-on that changed that action, and now that add-on is disabled or incompatible?

  • Command click in Yosemite does not open a new window

    Command click in Yosemite does not open a new window.  ??

    Is the checkbox in this screenshot checked for your Finder preferences.  If so uncheck it and try again.

  • Firefox will not open a new window for a website when it is supposed to and then will not close properly. I have un-installed and re-installed and problem persists, why? How is it solved?

    When I go on to some websites and click on certain things it wants to open a new window to display the information etc.
    I.E. On an agency job search site I click to do a detailed job search which should open in a new window, but this will not happen now on my Firefox.
    Firefox was working perfectly ok on Saturday 11th September but for some unknown reason has acted up since Sunday.
    There have been no Windows updates which could effect this and the laptop is otherwise working perfectly ok.
    Nothing has changed from Saturday Night to Sunday Night that I can see.
    I have even tried to do a system restore to solve the problem but with no success.

    I also have this problem. I cannot open links from a discussion board I frequent nor can I open links from my email. Also after opening my email, I cannot go to any other sites except my home page. I can then go no where else.
    When I close Firefox and try to reopen it, it does nothing! I have to bring up the Task Manager and end the Firefox process before I can get back in.
    To the best of my knowledge, this problem started with the new update to Ver. 3.6.9. I am running Windows XP Media Center 2005

  • AF Table-CommandLink and Open in New Window issue

    I am using af:table to display the result set and inside the af:table i use af:commandLink to display the link to users. When the user clicks the individual link , user will go to the correponding detail page which is working fine.
    But the problem is if i right click the commandLink from the browser and click "Open in New Window" in IE or "Open Link in New Window" . it opens a new window and displays the same page instead the detail page.
    My requirement is when user click the link user should see the corresponding detail page - which is working fine now.
    But when user clicks open in new window from browser in the new window user should see the corresponding detail page. How do i accomplilsh this scenario.
    Any help would be highly apprciateable..

    Hi Frank, thanks for the quick reply. But if u think of the end user, most of user always right click and click open in new browser to see the details. so that they can stay the results page. ..
    Do you mean, any link navigation in ADF faces, dont work if we click "open in new window"?

  • Under Windows 7, 64-bit, Firefox intermittently will not open a new window - all I get is a grey screen, with a tiny part of my homepage displayed in the top left corner of the screen.

    The problem began after a recent Firefox update. Occasionally, when I try to open a new Firefox window, all I get is a grey screen with a tiny section of my homepage visible in the top left corner of the screen. NOTE: Firefox stores all of these aborted attempts, as, whenever I close it and then re-open it, the first time I open a new window it automatically opens all of the windows that had originally failed to open.
    == This happened ==
    Every time Firefox opened
    == on or about June 26, 2010

    Got the exact same problem aswell, finally fed up with it now as i just started up firefox and 14 new windows opened because of this bug, luckily my computer can handle them but someone with a slower processor it would have been a nightmare, needs fixing ASAP.
    Reverting back to 3.6.3 until this issue is solved. (link for anyone wanting to do the same below)
    http://www.filehippo.com/download_firefox/7345/

  • WebDynpro ABAP iView not opening in new window

    Hi,
       I have created an iView for a WebDynpro ABAP application and I am having a link in a home page from where the iView should open in a new page. I have set the properties "Launch in new Window" and "Show open in new window option" of the iView but still it doesn't open up in a new window.
        Can someone suggest me what's going wrong?
        Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Volker,
       Thanks for your reply.
       I think, I have set the properties of the iView right. I have tried with all the options for the property "Launch in new window" property of the iView but it didn't work.
       "By home page framework" I mean that the link of the iView in portal has been created using the "Home page framework" i.e. from "SPRO" transaction in the backend.
       Please let me know if you need any other input from me.
    Regards
    Mukesh

  • Firefox will not open a new window How do I fix it?

    When on a web page, If I right click and choose "Open In A New Window", it will open a new window but the window is always blank. I can copy the address and paste in in the new window and it will then take me to the web site but will not automatically open and take me to the site. Is there a fix for this?

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • URL Iview is not open a new Window in FireFox

    Hi Guys,
    After we upgrade our portal to NW 7.0 EHp2 SP6 , we can not open the URL Iviews in Firefox.
    It looks like can't force the iview to open a new window and instead it open a new tab , Any suggestion?
    Thanks,

    Hi Mar,
    To me, the PAM mentioned Firefox 3.5 is not recommended for NW 7.0 Ehp2 - Firefox 3.6 is supported for NW 7.0 Ehp2 starting with SPS6.
    Anyway, if it works in IE & Safari, I don't think it has anything to do with the portal; it's something in Firefox settings.  As mentioned before, did you check the option to open new links in new windows? Also, please checkSAP Note 1296463 and its related notes about browsers to see if there's something relevant to your case.
    Regards,
    Dao

  • Links will not open in new window from iPad but work in IE on desktop.

    I am trying to set some links to open in a new tab but for some reason they just keep opening in the original tab. External links work fine but when I try to make another page from my website open in new tab, it will not work.
    I have looked at the code and it all looks fine.
    <a class="nonblock nontext shadow rounded-corners clearfix grpelem" id="u105617-9" href="metro_tweets.html" target="_blank"><!-- content --><p id="u105617"> </p><p id="u105617-2"> </p><p id="u105617-3"> </p><p id="u105617-7">Metropolitan<br/>Region TWEETS</p></a>
    I have also ticked the box that says "open the link in a new window or tab".
    Any ideas what the issue could be? It has worked before so I am sure it can be done.
    Would it have anything to do with the site hierarchy?
    Cheers
    Garry

    Hi Aish,
    Thanks for the quick reply.
    I had a feeling you would ask me those questions so I'll give you a bit more background of what I am doing.
    I have created a locally accessed web app as part of project I am working on at Universty. It is a mockup of an iPad app that I will eventually build, although it is fully functional in it's web app state. For this reason it is not hosted on any web server but instead transferred to the iPad via DiskAid and accessed from Mercury Browser.
    Mercury browser is the only browser that I have found that can display html files from within it's own file storage and make it look like it is being served from a server. Safari browser will not let you do this and the only other browser that I found that could do it has been discontinued (Terra Browser).
    Adobe Muse has been fantastic for doing this kind of work and as I said before, the internal links opened in a new tab with Mercury Browser previously, so I am not really sure what is going on.
    Any ideas would be appreciated.
    Cheers
    Garry

  • PDF in Frame - Open Web Link does not open in new window

    I actually have 2 problems.
    1. Acrobat 7.0.9. Added a link to open a web page. When the pdf is viewed from within a frame on a web page, the web page link in the pdf does not open in a new window but replaces the pdf in the frame.
    2. If I download the pdf to my workstation and open it and click on the link, it does open in a new window BUT opens up 2 browser windows where the 2nd one opened is blank (yes, I am single clicking on the link)
    Issue 1 occurs in both IE 6, IE 7 and Firefox ?.??
    Doug

    Try Ctrl-Y for preview.

  • Safari 8.0.2 updated on the 20Jan2015 and Link from Mail do not open | Advertisement pages opens | Blank page do not open on new window click, etc

    Hi! 
    Safari 8.0.2 was last updated on the 20Jan2015 and is my default browser. 
    Below listed are issues with Safari after last two updates.
    When I click web link from mail, Safari does not open that link. I changed to Chrome browsing & it works.
    When I click to open new window from the dock, I get last browsing page of the previous opened window web page, where by my setting is for a bank page for a new safari window. .
    Every time I click on the link to open in the same browsing web page, a new tab opens with advertisement web page. How can I stop advertisement pages to open automatically.  
    Safari does not open first time by one finger single click on the safari icon from dock, need two finger click and then select the preferences.
    Thanks, will await your assistance & if required updated version at the soonest.

    1.Use free AdwareMedic to remove the adware
        http://www.adwaremedic.com/index.php
        Download, install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic.
                   or
        Remove the adware  manually  by following the “HowTo” from Apple.
        http://support.apple.com/en-us/HT203987
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.
    3. Safari > Preferences >  Search > Search Engine :
        Select your preferred   search engine.

  • Create a hyperlink that does not open a new window if a window containing the url is already open?

    Is there a way to create a hyperlink to a url that "jumps to" the URL's window if it is already open in the browser?  Therefore a new window is not opened and the existing window containing the hyperlink would not change either.
    If the target url is not already open, then yes the link could either open in a new window or in its existing window.
    Does anyone know if there is a command/code for this? 

    Ok, so to be clear, I should add all of the following:
    Header 1
    function getCookie(c_name) {
    if (document.cookie.length>0)   {
    c_start=document.cookie.indexOf(c_name + "=");
    if (c_start!=-1)     {
        c_start=c_start + c_name.length+1;
        c_end=document.cookie.indexOf(";",c_start);
        if (c_end==-1) c_end=document.cookie.length;
        return unescape(document.cookie.substring(c_start,c_end));
    return "";
    function wOpen () {
    var cookiename = getCookie ('winFlag');
    newWin = window.open("YOURPAGE.html","myWin'","height=200, width=200");
    newWin.blur();
        document.cookie = "winFlag=1";
    into 1 file?  And that is the file that links to the music page?
    I don't know if my Flash music page creates a cookie onto the user's browser.  That would be necessary for this to work, right?

  • *.url document type not opening in new window

    I've successfully crawled in website shortcuts as *.url document types. However, after displaying the IIS security message, they open in the main portal window instead of opening in a pop-up window like other documents.
    Anyone have any ideas how I can get them to open in a new window?
    Thanks in advanced,
    Anne

    If you are creating the links with html (not using URL items) then just include target="_blank" in your link like <a href="#" target="_blank">your link</a> to open a link in a new browser window. If you are adding links to the page using URL items, then check the option to show the link in a new browser window. Note: if you are using an HTML Content Layout template and have applied it to the item region where you are publishing your URL items, then you will need to include conditional statements in the template to check for that (e.g. open link in new browser window) and include the correct target for the link based on what was selected for that item.

Maybe you are looking for

  • CRYSTAL REPORT RUNTIME ERROR

    HI All, We have completed major upgrade  VC++ to MSVS2010 MFC Application and Seagate CR 6.0 to CRVS2010, I have used CR Viewer 13.0 and i have written code in C#. when i assign & load Report using CR Viewer , i am getting runtime error, below mentio

  • Cisco sup720-3bxl crashes

    Hello everyone, 4 weeks passed in debugging Cisco SUP720-3BXL crashes and I don't know what to do... It's new Cisco module without warranty and since first day it crashes when "minimal or complete diagnostic" is turned on during boot. When manually t

  • How to make a BPM restartble at a specific point after error?

    Hi, I have a somewhat very simple question. I have a BPM that works like this: 1. receive message A 2. transform message A to message B (using valuemapping) 3. switch with a condition determining if valuemapping was succesfull for all cases. 3.1. Bra

  • Erase iPod w/o computer

    Can I completely erase and restore my iPod without connecting it to my computer?

  • PCR SPEG not populating Form and giving FormCalc errors

    First of all we are running on Enterprise Portal 7.0, Adobe Document Services on SP10. We are running the ESS and MSS business packages with the latest Support Package 7. We are also using the Adobe LiveCycle Designer 7.1 Patch 3. We are experiencing