Can't change the document title when the browser is opened in dialog mode

Hello experts,
I'm working on a solution which involves opening up another .jspx page in dialog mode. I need to change the title of the dialog browser window dynamically when the user performs a specific action on the dialog page.
Unfortunately, I can't get this to work. I have tried using JavaScript and had no luck. I tested this technique on a non-dialog page and it works fine. Please help.
Here is the markup code for launching the dialog page:
<af:activeCommandToolbarButton id="actbPreview"
icon="/graphics/previewscreen_enabled.gif";
text="Preview"
action="dialog:weCreate"
useWindow="true"
windowHeight="620"
windowWidth="1120"
disabled="#{empty bindings.MapElemUnqId.inputValue}"
launchListener="#{backing_weQuery.launchPreviewerListener}"
binding="#{backing_weQuery.actbPreview}"
returnListener="#{backing_weQuery.returnPreviewerListener}"
clientComponent="true"
windowModalityType="applicationModal"
windowEmbedStyle="window"
disabledIcon="/graphics/previewscreen_disabled.gif";/>
On the dialog page, here is the markup and javascript for setting the browser window title:
<af:commandButton text="title" id="cb10">
<af:clientListener method="setWindowTitle"
type="action"/>
</af:commandButton>
function setWindowTitle(actionEvent)
actionEvent.cancel();
var doc = AdfPage.PAGE.findComponent("d1");
doc.setTitle("TEST");
alert("Title="+doc.getTitle());
}

Thanks for your response.
I tried that and I could not get it to work. Even though I can set pageFlowScope.pageTitle dynamically, the browser window title does not refresh (I tried to refresh via PPR and full post back).
here is my code:
public void setPageTitle(ActionEvent actionEvent)
RequestContext requestContext = RequestContext.getCurrentInstance();
Map pfs = requestContext.getPageFlowScope();
pfs.put("pageTitle","TEST 2");
RequestContext.getCurrentInstance().addPartialTarget(this.document);
public void setPageTitle(ActionEvent actionEvent)
RequestContext requestContext = RequestContext.getCurrentInstance();
Map pfs = requestContext.getPageFlowScope();
pfs.put("pageTitle","TEST 2");
FacesContext context = FacesContext.getCurrentInstance();
String currentView = context.getViewRoot().getViewId();
ViewHandler vh = context.getApplication().getViewHandler();
UIViewRoot x = vh.createView(context, currentView);
x.setViewId(currentView);
context.setViewRoot(x);
}

Similar Messages

  • How can I change a Documents Title

    Hi
    I have created a Document using sAIDocument->New().
    Later I would like to change the title of the document, which I originally passed in on the AINewDocumentPreset.docTitle.
    Can anyone suggest how I can do this programatically, or do you have to remove the document and start again?
    Thanks
    Amy

    You can't even change the name in the regular Illustrator UI (short of saving it as something else of course!). The name isn't really a name per se, its just the default it'll use the first time you save the document. After that, its name is whatever it was saved as. So there's really no such thing as a 'document name' in Illustrator.

  • How can I change the browser for Preview in Browser?

    I can't find the preferences for changing the default browser than opens when previewing an animation.

    windows: go to explorer - right click the html file and set the prefered browser.
    Not sure about mac.

  • How can i change the user that open the rfc connection (sm58) from R/3?

    Hi all,
    i'd like to know how can i customize the user 'connecting' R/3 and BW, i mean: when i launch a data extraction a fixed user creates the rfc connection to BW (and i can see it from tcode sm58 in r/3), i need to use a different username so that it will come be more easy for me to reorganize the rfc queue in case of errors (we are doing some testing), it's possible to do something like this or everyone has to share the same user r/3 side?
    I hope i've been clear...
    thanks for the help
    S.

    Hi...
    Its recommended that only one user executes the RFC because you must manage the authorizations for remote execution only with few users....in case on error you can send the user as a parameter of the RFC  and you can buid the error message with this parameter and identify the user of execution...
    I hope this helps you
    Regards

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • I use a browser-based Web CMS (CommonSpot 5.1) that uses dialog boxes (like a wizard). These boxes open very small and i must re-size them before seeing the options I'm trying to change. How can I change the default size of these dialog boxes?

    the boxes include rulers and scrollbars, but I'd like to size all of them the same

    I'm starting to come to this conclusion myself, actually... though, how mom managed to do this on accident without mucking about in terminals or anything more than just a cursory knowledge of the OS X system configurations (behind the scenes), I don't know : |
    ... on the other hand, her and I tend to be the exceptions to a lot of rules : |
    I downloaded and installed TinkerTool, even though it supposedly doesn't work past 10.5.8, in the hoopes that, what it displayed (regardless of what it could change) would be correct as far as my "System" and "System (Headlines)" font settings were (see attached screenshot of the font section of TinkerTool for my system--not mom's).
    I've instructed her to install and run the utility (but not to change anything) and then send me a screenshot of the "Fonts" section so I can compare it to my own. If there's something different on her system, since TinkerTool should work on hers, we may be able to fix it that way... though it would, frustratingly enough, remain a mystery to all concerned as to how she managed to stumble upon this in the first place : |
    Anyway, I'm still hard at work on it... hopefully others are too and will share what they discover (if anything).

  • How can I change the tabs to open to the website I want?

    It always opens on Bing and I can't figure out how to change it to what I want.

    Update firefox to the latest version...
    * [[Update Firefox to the latest version]]
    also delete a possible user.js file and use the searchreset tools linked below.
    * https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save#w_user-js-file-overriding-preferences
    * https://addons.mozilla.org/en-us/firefox/addon/searchreset/

  • Can xmobar show the # of windows open in full mode?

    Hi, I'm a dwm user trying xmonad. Since I'm on a netbook, I use monocle mode a lot, and I thought it was really useful how it showed me the number of windows that were open in the bar. xmonad does not do this, and I was wondering if there's a way to make it do so.
    Thanks.
    Last edited by thursdayknights (2009-12-16 19:52:20)

    Take a look at this extension. <br />
    https://addons.mozilla.org/en-US/firefox/addon/r-kiosk/
    Real Kiosk is a Firefox extension that defaults to full screen ...

  • How can i call the browser to open URL using ABAP ???

    Hi all ,,
    Could you help please to solve this case ??? :).
    I'm working out a plan to open URL internet address using ABAP program ..
    Could you share to me the command or the way to run the internet browser (e.g. internet explorer) in order to run some URL address ???
    If you don't mind ..
    Could kindly please give the steps to make it .. ???
    Tks a lot ..
    i'll appreciate any responses.
    Best regards,
    Niel.

    Hi,
    CALL FUNCTION 'CALL_BROWSER'
                 EXPORTING
                      URL                    = URL "http://,,,,,,"
                      BROWSER_TYPE           = ' ' "'SAP Help Viewer'
                      CONTEXTSTRING          = 'Business Browser'
                 EXCEPTIONS
                      FRONTEND_NOT_SUPPORTED = 1
                      FRONTEND_ERROR         = 2
                      PROG_NOT_FOUND         = 3
                      NO_BATCH               = 4
                      UNSPECIFIED_ERROR      = 5
                      OTHERS                 = 6.
          ENDIF.
    Pls. reward if useful....

  • I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the "double click" defult to o

    I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the default to open an image with a double click in 4?

    You can associate files from the Bridge level and the Desktop level.
    In Bridge CS4, go to Preferences > File Type Associations and change it to Photoshop CS4 for the file types you want.
    If you want to open files from the Windows Desktop in CS4, these are the instructions:
    Do this from the Windows Desktop:
    If you want your image file to open in Photoshop and it doesn't, right click on it and choose
    Open with > Choose default program… select Photoshop CS4 or CS6 and checkmark "always use the selected program to open this type of file".

  • How can I keep the browser window stretched across my two displays?

    I run am trying to run dual monitor setup and have the Firefox browser span the two monitors. Whenever a Firefox dialog opens, such as Preferences or Print, the window zooms to fit the one primary monitor. How can I keep the browser window stretched across my two displays?

    Thanks very much for your response to my question -very helpful.
    Do you have any recommendations for a good book on Edge Animate?
    Thanks,
    Shaun
    Date: Thu, 25 Oct 2012 17:10:43 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I change the browser window background color when playing an Edge animation?
        Re: How can I change the browser window background color when playing an Edge animation?
        created by heathrowe in Edge Animate - View the full discussion
    ADD this to compositionReady handler, change the hex color code to your desired color //Force body of webpage to a specific color$("body").css("background-color","#5d5e61"); Darrell
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4801409#4801409
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4801409#4801409
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4801409#4801409. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Edge Animate by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Since updating to firefox 9.0.1, every time I open up the browser, it opens to the "Hooray your firefox is up to date" page and then opens up my home page as a second window. Can you help?

    I just can't get the browser to open up to just my home page when I click on it. It '''always''' opens the firefox browser page http://www.mozilla.org/en-US/firefox/9.0.1/whatsnew and then proceeds to open up to my home page in a second window.

    look the '''solution chosen''' by '''Matt_G''' in : https://support.mozilla.org/en-US/questions/910038
    thank you

  • When I open a jpeg image at 100% is too large to see. How can I change the percentage to be able to view document?

    When I open a jpeg image at 100% is too large to see. How can I change the percentage to be able to view document?
    == This happened ==
    Every time Firefox opened

    You have to change the settings in whatever program you use to open the jpg. Firefox has no control over that. What program do you use to open jpg?

  • How can I change the year of an album in itunes11 without changing the years of all titles?

    How can I change the year of an album in itunes11 without changing the years of all titles. For example: the reissues of an 1982 album has a 1995 bonus track, but I want it to be sorted as an '82 album? In earlier versions, when itunes sorted my album "by year", it took the year of the first title as the album's year (which makes a lot of sense). In itunes 11, however, the /highest/ year of any title in an album is taken to be the album's year. This upsets my entire catalogue. Can this be changed, will this be changed?

    Highlight all of the songs,File>Get Info, change the genre

  • In Pages when I go to FIND how can I change the highlight colour of the found word?  At the moment it is a very pale grey and not easily seen.

    In Pages when I go to FIND how can I change the highlight colour of the found word?  At the moment it is a very pale grey and not easily seen.

    Well, it might depend on the nationality of your keyboard, but on my US keyboard, the tilde ("squiggle") is above the TAB key; on a Mac, ⌘-TAB cycles through the active applications and ⌘-tilde cycles through the windows in the front application.
    When you do a Find, Pages selects an instance of your search text (the next one after the current selection, I think, but I didn't check that). It doesn't make the document window the front window, though. If you click in the window to bring it to the front, it moves the selection (or insertion point) to wherever you click unless you click on or above the ruler. Try clicking at the top of the document window after you do a find; say somewhere near the document name. Now you should see the highlighted selection (your search text). If you click back on the Find window, the selection will go grey again, unless you hold ⌘ down while clicking.

Maybe you are looking for

  • HELP! Before I throw my MP560 out the window!

    I purchased a MacBook Pro in August 2010, and along with it the Canon MP560. I have it setup to print wirelessly from my macbook to the printer. Everything was going great until about a month ago. I can not get it to print, an error pops into the uti

  • Where is the serial number for WinDVD Creator when upgrading?

    I downloaded the lates drivers for my TV@anywhere-Master TV Card from http://www.msi.com.tw/program/support/driver/dvr/spt_dvr_list.php?part=10 including 8609_PVS.zip which turns out to be WinDVR. I have the original disk but the serial numbers on it

  • Check in shopping cart

    Hi I'm using the Business Add-In BBP_DOC_CHECK_BADI in order to check data in my shopping cart. I now want all users to enter a text in the field 'notes for approval' if the total value of the SC exceeds 10000 dkk. I can easily find the total value b

  • Deploying Java Applet

    Could you please help. I am deploying a Java Applet to WebDB for my final project. I have followed the steps given maticulously and have had some success. My applet will initialize in Internet Explorer and the log in dialog box comes up. When I attem

  • PaperSource and PrinterDuplex properties are ignored by PrintOut method

    Hi, I use the RDC in my Delphi application, to print reports with Crystal Report XI R2. (Crystal Reports ActiveX Designer Run Time Library 11.5). I'd like to change duplex and source settings, specifying PaperSource and PaperDuplex parameters, but th