Impossible to change the title of the document when the browser is opened in mode of dialogue

Hello experts,

I'm working on a solution that is to open another .jspx dialog page. I need to change the title of the browser dialog window dynamically when the user performs a specific action on the page of the dialog box.

Unfortunately, I can't get this to work. I tried to use JavaScript and not had much luck. I tested this technique on a dialogue page and it works fine. Help, please.

Here's the markup code for the launch of the dialogue page:
< af:activeCommandToolbarButton id = "actbPreview".
Icon="/graphics/previewscreen_enabled.gif ';
Text = "Preview".
action = "dialogue: weCreate.
useWindow = 'true '.
windowHeight = "620".
windowWidth = "1120".
Disabled = ' #{empty links. " 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 to set the title of the browser window:
< af:commandButton text = "title" id = "cb10" >
< af:clientListener = "setWindowTitle" method
type = 'action' / >
< / af:commandButton >

function setWindowTitle (actionEvent)
{
actionEvent.cancel ();
var doc = AdfPage.PAGE.findComponent ("d1");
doc.setTitle ("TEST");
Alert ("title =" + doc.getTitle ());
}

I could see a possibility, the document could be in an iframe, try to check the generated HTML structure. If so, try to go to the top of the DOM of the document root tree of the popup and set the title on that one instead.

Kind regards

~ simon

Tags: Java

Similar Questions

Maybe you are looking for

  • Firefox crash at startup (v30 - 31, Ubuntu)

    After upgrading to version 30 (29?) of Firefox on Ubuntu (14.04 64B), it crashes whenever I open it. It crashes a few seconds after the start, the crash reporter is displayed, it restarts and works normally. It is not a matter of open windows and tab

  • Portege R100: CDROM USB cannot read Windows XP CD installation

    I download disk recovery and the start of my external USB CDROM drive successfully.Unfortunately, the USB CDROM driver cannot read my Windows XP CD installation that does not have the Toshiba Recovery CD. Product error (wrong damaged CD-ROM, please i

  • Your device is not eligible for the unlocking Bootloader

    I use bike E 1 st Gen India. I want to unlock my bootloader. I went to the motorola Web site. When I entered the code he said that your device is not eligible for the unlocking Bootloader. I contacted the people at motorola, but they led me here. So

  • Installation of WinXP SP2 on a soft S51

    Hello world!I am trying to install Windows XP SP2 on a fresh and formatted S51 (8171-CTO) but, after the partitioning and copying files, the system does not start from the HARD drive.I even tried with any other operating system (Ubuntu), performing t

  • cRIO-9074 2147138533 error on active state transition analysis engine

    I have a cRIO 9074 configured as master EtherCAT.  The code for the RIO FPGA is followed by other data on the State and he is able to shut down all power to the rest of the system (including the EtherCAT slaves) for safety.  If I power cycle the cRIO