Alighning Popup component in the center of window

Hi
I have following code
<af:popup id="dialog">
<af:dialog title="Confirm Delete" type="yesNo" dialogListener="#{DeleteDocumentBean.deleteDocumentHandler}"
id="d3">
<af:outputText value="Do you really want to delete the document?" />
</af:dialog>
</af:popup>
if i want my popup component at the center of window what should i do
i have gone through this link but i didnt find anything useful
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_popup.html
Regards
Mayur Mitkari

Hi,
you just open the dialog without specifying an align-id or align orientation (just only provide the popup ID in the showPopupBehavior tag added to the command launching the popup)
Frank

Similar Messages

  • How can I get Skinnable -Popup-Container in the center of my app?

    I have a component based on SkinnablePopUpContainer. I am using 4.5.1 sdk.
    I need to pop it up on the very center of my application.
    But the open() does not give any parameters as such to specify that.
    Sample code for showing popup is:
      var popup: MyCustomPopUp = new MyCustomPopUp ();
      popup.open( the name of my project file  ,true);
                                                                popup.verticalCenter =0;
                                                                popup.horizontalCenter =0;
    Even after mentioning the verticalCenter and horizontalCenter as 0, the popup opens automatically on the left hand side of the screen.
    If I use PopUpManager class then it works fine.But for my mobile application, I dont want to use PopUpManager Class.
    Please suggest a solution for this.

    I have used the following and it centers correctly on the application:
                        PopUpManager.centerPopUp(popup);

  • Adobe Acrobat as a component of the application in Windows 8 in Metro Style

    Hello
    I am making an application under Windows 8 in Metro Style.
    I try to include in my application PDF-reader.
    How can I use Adobe Reader for this purpose.
    If I have to buy a license, I'm ready to do it.

    Unfortunately, due to limitations of Win8 Metro, you can’t use Adobe Reader in that way.
    If you need a PDF viewer/reader component for Win8, you’ll need to license our “Adobe Reader Mobile SDK”.

  • How to make my child windows in the center of the screen?

    Center Screeen Problem..

    can always use the getScreenSize() and setLocation() methods to properly place your component
        //Center the window
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension componentSize = yourComponent.getSize();
        if (componentSize.height > screenSize.height) {
          componentSize.height = screenSize.height;
        if (componentSize.width > screenSize.width) {
          componentSize.width = screenSize.width;
        yourComponent.setLocation((screenSize.width - componentSize.width) / 2,
                                 ((screenSize.height - componentSize.height) / 2);of course youll have to adjust the width and height when setting the location cuz this will place the top-left corner of your component at the center of the screen, not the exact center of it.

  • I need my Popup Window to be at the Center of the Screen - help

    Please tell me how can I popup a new window at the center of the screen. I know to position at particular x,y point, using top, left parameters in the window.open() function, but I need to get the center point of the screen. I need to get maxX and maxY value.
    Thanks,
    Guhan

    use this javascript function in ur code,it will work
    function alignToCenter(w, h)     {
         var e = openWin(w, h);
         var x = (screen.width-w)/2;
         var y = (screen.height-h)/2;
         e.moveTo(x,y);
    }

  • Modal popup window refresh the parent (calling) window/view

    I have a modal popup window that is adding detail records.  When this window is closed via the Hide method in my controller I would like to refresh the parent (calling) window/view.
    What is the best way to do this?
    Regards,
    Diane

    Here's my process.....
    2-windows & 3 views
    Window 1 - Selection View and Detail View
    Window 2 - Add View (used as a modal popup window called by a button click on the detail view)
    Selection View has all the options for obtaining a list of data for the detail view.  The detail view has an Add button.  Component controller has the hide method and access to the other components that do the update/query methods. On the detail view the user can click Add and a popup modal window shows.  User enters data and clicks either the add or cancel button.  The Detail view needs to refresh to show the additional data that has been added by the modal window.  There are calcuated values in the detail view from a supply function.  This function is not running and the values are not changed.
    What should be put in the hide method that will cause the detail view to obtain new data and supply the calculated values?  If I was using the Add view as part of the same window as the detail/selection views I'd just put in a navigation link between the detail and add views and fire the plug.  I like the idea of the popup window so I'd like to get this to work.
    I put the wdContext.initialize() in the hide method - which yes - caused the detail view to run - however the context lost all the key values so I received a data not found.  I then tried to initialize those nodes that did not contain the key values but the detail view did not display new values.
    Thanks for any ideas.....Diane
    Edited by: Diane Fuller on Jan 8, 2009 6:48 AM

  • How to center  mx:window Component in adobe air

    Hello Friends
                        i am making a simple application in adobe air 2.0 .In this application i made a seprate window on some button click.but every time it open with random positoning i just want to center that window component.if any body having any idea then please guide me.
    Thanks and regards
       Vineet Osho

    This depends on the type of server from which you are downloading the files. For example, if you are downloading the files from an HTTP server, and the server provides "Last-Modified" values in the HTTP response headers, you could use the following ActionScript code to determine those values:
    var urlReq:URLRequest = new URLRequest("http://www.example.com/");
    var urlStream:URLStream = new URLStream();
    urlStream.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusListener);
    urlStream.load(urlReq);
    private function statusListener(event:HTTPStatusEvent):void
        for each(var header:URLRequestHeader in event.responseHeaders)
            if(header.name == "Last-Modified")
                trace(header.value);

  • [svn:cairngorm3:] 21050: Popup: The default behavior when an Event. CLOSE is dispatched through the popup component should be preventable

    Revision: 21050
    Revision: 21050
    Author:   [email protected]
    Date:     2011-04-09 16:22:58 -0700 (Sat, 09 Apr 2011)
    Log Message:
    Popup: The default behavior when an Event.CLOSE is dispatched through the popup component should be preventable
    https://bugs.adobe.com/jira/browse/CGM-59
    Popup: The write-only behaviors property can not be used with states
    https://bugs.adobe.com/jira/browse/CGM-55
    Ticket Links:
        http://bugs.adobe.com/jira/browse/CGM-59
        http://bugs.adobe.com/jira/browse/CGM-55
    Modified Paths:
        cairngorm3/trunk/libraries/Popup/src/com/adobe/cairngorm/popup/PopUpBase.as
        cairngorm3/trunk/libraries/Popup/test/com/adobe/cairngorm/popup/PopUpBaseTest.as
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
    Added Paths:
        cairngorm3/trunk/libraries/PopupTest/html-template/
        cairngorm3/trunk/libraries/PopupTest/html-template/index.template.html
        cairngorm3/trunk/libraries/PopupTest/html-template/playerProductInstall.swf
        cairngorm3/trunk/libraries/PopupTest/html-template/swfobject.js

    Hi Shweta,
    as i discussed with you to update the script code
    <html><script> function closeWindow( ){       top.close( );     }                  </script><body><form> The application was logged off successfully. <br><input type="button" value="close window" onclick="closeWindow( );" /></ form></body></html>
    in sicf transaction for your component.
    it will work (close the window).
    dont forget to give me points
    all the best...
    Rgds,
    Mahesh.Gattu

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • When I open Firefox the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution in the forum but only for Windows based

    When I open the application the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution on the support site but only for Windows-based Firefox, and I'm a Mac user. I have plenty of room on my hard disk.
    == This happened ==
    Every time Firefox opened
    == Two days ago, for no apparent reason.

    In Mac OS X v10.7, the $HOME/Library folder is a hidden folder.
    Open Finder and use one of these:
    * Go > Go To Folder (Shift-Command-G) and in the dialog type: ~/Library
    * Open the "Go" menu and hold down the Option key to make the Library appear
    You can also use this command in a Terminal window to remove the hidden flag.
    * Mac HD > Applications > Utilities > Terminal
    * chflags nohidden ~/Library

  • In Yosemite, pasted objects in Photoshop Elements 12 automatically snap to the center of a new window. How do I stop this from happening?

    I installed Yosemite yesterday. Now, when I paste an image into a new window to combine it with another image, the layer or layers automatically snap back to the center of the new window. How do I stop this from happening?

    Thanks, Barbara. I don't use a trackpad on my iMac, just a mouse. However, I DID discover yesterday that if I press COMMAND-T (the command to Free Transform an image) I can then move the image where I want in the window. I need to use the command every time I move the image, which is annoying--in Mavericks, that Free Transform command was somehow the default.

  • How to center a component on the page????

    Hi all
    i want to center a component on the page
    Sorry it may be some thing trivial ???
    but i ve a command button i want to center it on the page ????
    how???

    Hi,
    try this steps:
    1-surround the command button with panelGroupLayout with layout Horizontal.
    2-In panelGroupLayout property select Style tab.
    3-in the Text tab set horizontal Align with Center.
    4-in Box tab set width with 100 Percent
    if panelGroupLayout inside any other component make this palce width 100 percent and its Align Horizontal with Center.
    Sameh Nassar

  • Save file to window never stays in center, it always goes back to the top-left. how do i make it stay in the center?

    When I decide to save a file or a image on any site, The window that comes up to "save to" never stays in the center where I want it, It will always open on the top-left portion. How can I make it save its windows setting?

    help?

  • I click a link but it doesn't open. Instead I get a popup saying "Open the link in a new window," "Open link in a new tab," etc. How can I kill this popup or whatever it is forever?

    I click a link but it doesn’t open. Instead I get a popup saying “Open the link in a new window,” “Open link in a new tab,” etc. How can I kill this popup or whatever it is forever?

    That happens if the server sends the file as text/plain.
    You can see this if you open "Tools > Page Info > General": Content-Type: text/plain
    Files send this way will always open in a tab.
    *https://developer.mozilla.org/Tools/Web_Console

Maybe you are looking for

  • Installtion of Developer 6.0 With Oracle 8i  Server

    I want to Install Developer 6.0 with already installed ORACLE 8I (NOT PERSOANL). When i install it , it give me warning that u home should be separtae from already home for oracle 8i If i proceed then it will disturb my ORACLE 8I and both are not wor

  • Rolled back JTA TX  marked active/inflight

              Hello. I am writing a message driven bean that utilizes container managed transaction           demarcation for the onMessage method (letting the container worry about msg acknowledgement).           The MDB relays message information to a

  • How do I permanently delete an APP from itunes library

    I've tried selecting the app and then clicking delete and clicking app and selecting edit (the delete field is not an option) ?

  • MP620 unsupported by Leopard?

    I have the MP620 canon. I used it fine with Tiger. Now that I upgraded to Leopard it says its unsupported. Is there a way around it? The printer is connected to a PC I never had problems printing wirelessly from my macbook. Need to print asap

  • My iPhone 4 was stolen and I need to get its serial number

    So my iPhone 4 was stolen and I need to get the serial number off of it to help find it. I looked online and an article (this one to be exact: http://support.apple.com/kb/HT4061?viewlocale=en_US&locale=en_US) told me to go to iTunes>Preferences>Devic