displaying the dialog box "your Session will time out, extend or close"?

Hello!

We have a duty to post a warning to users only (1 minute) before the session is going to expire and ask the user if he wants to extend the session or close the session (in which case, we close the browser window). We were able to come up with a likely solution but would like to know what other people are doing / will be in similar scenarios.

Here's what we came with:

1. on each page load we set/update a cookie that is supposed to follow the session expires. And we have a javascript timer that counts down to the inactivity of the user. In the event of any PPR on the page, then we plan to add a hook to the PPR javascript calls, so that we can update the cookie expires not only on page load/refreash, but each call PPR performed on the server.

We have a concern that we are all only javascript function on the client side. Is our approach in the right direction? Is there a better way to achieve the same? Are there issues of security/traps involved in our design?

2. I read in some articles/forum discussions we can poll the server on a regular interval to see the time remaining for the session expires, and as soon as we have the time to last minute, we can display a popup javascript to the user. But I doubt that wouldn't poll itself refresh the activity of users on the server and reset the normal session on each poll timeout? In this case would not always get the same information of time remaining for each survey? I misunderstood something here? some explain how to implement from session expiration time of the poll on the server?

3. all new ideas are welcome!

Thank you and best regards,

Samba

Hello

Well, if you use the af:poll command, then the session never expires because from a server point of view, the user frequently sends a request. So if you prefer this option, then you will need to expire the invalidate() programmatically by calling session on the session

javaScript is the only option that I can imagine that works without a vote.

Frank

Tags: Java

Similar Questions

  • Firefox plays after clicking on links for her instead of display the dialog box for play/download mp3/wav

    Firefox when trying to play wavs/mp3s after clicking on link to it instead of display the dialog to open/download. In preferences on the applications tab, I always chose "ask" in the types of wav and mp3 files, but it does not solve this problem.

    This has happened

    Each time Firefox opened

    == I'm not sure

    Firefox will play the file if you have a drive installed that supports the mime type that the server sends to this file.

    See "File handling in Firefox 3 and SeaMonkey 2": http://kb.mozillazine.org/File_types_and_download_actions

  • Output manual is not display the dialog box

    Hello

    I try to display a dialog box to the exit, but it does not work. Here is my code.

    import bb.cascades 1.0

    import bb.system 1.0

    import bb.cascades.advertisement 1.0

    {Page}

    Menu.Definition: MenuDefinition {}

    settingsAction: {SettingsActionItem}

    onTriggered: {}

    }

    }

    }

    {Of container

    {Of container

    ID: mainContainer

    layout: {DockLayout}

    }

    horizontalAlignment: HorizontalAlignment.Fill

    verticalAlignment: VerticalAlignment.Fill

    {Of container

    ID: bgContainer

    verticalAlignment: VerticalAlignment.Fill

    horizontalAlignment: HorizontalAlignment.Fill

    ImageView {}

    objectName: "bgImage".

    imageSource: ' images/bg_green.png.

    scalingMethod: ScalingMethod.AspectFill

    verticalAlignment: VerticalAlignment.Fill

    horizontalAlignment: HorizontalAlignment.Fill

    }

    }

    {Of container

    ID: contentContainer

    leftPadding: 20.0

    topPadding: 10.0

    rightPadding: 20.0

    bottomPadding: 0.0

    verticalAlignment: VerticalAlignment.Fill

    horizontalAlignment: HorizontalAlignment.Fill

    {Of container

    ID: titleContainer

    verticalAlignment: VerticalAlignment.Top

    horizontalAlignment: HorizontalAlignment.Fill

    layout: {StackLayout}

    direction: LayoutOrientation.LeftToRight

    }

    topPadding: 10.0

    {Of container

    ID: imageContainer

    leftPadding: 20.0

    topPadding: 10.0

    bottomPadding: 10.0

    rightPadding: 20.0

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    ImageView {}

    ID: icon

    imageSource: ' images/ic_safe.png.

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    objectName: "stateImage."

    }

    }

    {Of container

    ID: topTextContainer

    verticalAlignment: VerticalAlignment.Center

    {Label

    text: 'SAFE'

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontWeight: FontWeight.Bold

    objectName: "stateLabel."

    textStyle.fontSizeValue: 17.0

    }

    }

    }

    {Of container

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    layoutProperties: {StackLayoutProperties}

    spaceQuota: 1.0

    }

    {Of container

    horizontalAlignment: P

    verticalAlignment: VerticalAlignment.Center

    layoutProperties: {StackLayoutProperties}

    spaceQuota: 1.0

    }

    layout: {DockLayout}

    }

    {Of container

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    {Of container

    ID: usedContainer

    {Of container

    ID: percentContainer

    {Label

    ID: percentLabel

    text: "74."

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontWeight: FontWeight.Normal

    textStyle.fontSizeValue: 40.0

    textStyle.textAlign: TextAlign.Center

    textStyle.fontStyle: FontStyle.Normal

    objectName: "percentLabel."

    }

    }

    {Of container

    leftPadding: 30.0

    rightPadding: 30.0

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    ImageView {}

    imageSource: ' images/ic_percentage.png.

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    }

    {Label

    text: 'used '.

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 8.0

    }

    }

    layout: {StackLayout}

    direction: LayoutOrientation.LeftToRight

    }

    verticalAlignment: VerticalAlignment.Top

    }

    {Of container

    ID: remContainer

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: HorizontalAlignment.Fill

    {Of container

    layout: {StackLayout}

    direction: LayoutOrientation.LeftToRight

    }

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    {Of container

    ID: countContainer

    rightPadding: 10.0

    leftPadding: 10.0

    topPadding: 0.0

    verticalAlignment: VerticalAlignment.Bottom

    {Label

    ID: countLabel

    text: "7."

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 14.0

    objectName: "daysLabel."

    }

    }

    {Of container

    verticalAlignment: VerticalAlignment.Bottom

    bottomMargin: 0.0

    bottomPadding: 12.0

    {Label

    text: "days left".

    textStyle.color: Color.White

    objectName: "daysInfoLabel."

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 8.0

    }

    }

    }

    {Of container

    horizontalAlignment: P

    {Label

    ID: rangeLabel

    text: "2 February - 1 March"

    textStyle.color: Color.White

    objectName: "daysRangeLabel."

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 8.0

    }

    }

    }

    }

    }

    }

    {Of container

    verticalAlignment: VerticalAlignment.Bottom

    horizontalAlignment: P

    layout: {StackLayout}

    direction: LayoutOrientation.LeftToRight

    }

    {Of container

    horizontalAlignment: P

    layout: {StackLayout}

    direction: LayoutOrientation.TopToBottom

    }

    topPadding: 10.0

    bottomPadding: 10.0

    verticalAlignment: VerticalAlignment.Bottom

    layoutProperties: {StackLayoutProperties}

    spaceQuota: 1.0

    }

    {Of container

    horizontalAlignment: P

    ImageView {}

    imageSource: ' images/ic_cell.png.

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    visible: true

    }

    }

    {Of container

    ID: cellContainer

    horizontalAlignment: P

    topPadding: 5.0

    bottomPadding: 5.0

    visible: true

    {Of container

    horizontalAlignment: P

    {Label

    text: "147.4 MB.

    textStyle.color: Color.White

    textStyle.fontWeight: FontWeight.Bold

    objectName: "cellTotalLabel."

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 8.0

    }

    }

    {Of container

    topPadding: 5.0

    bottomPadding: 5.0

    horizontalAlignment: P

    {Label

    text: "140 MB, 7.4 MB out."

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    verticalAlignment: VerticalAlignment.Bottom

    objectName: "cellCountLabel."

    textStyle.fontSizeValue: 6.0

    }

    }

    }

    }

    {Of container

    horizontalAlignment: HorizontalAlignment.Fill

    layoutProperties: {StackLayoutProperties}

    spaceQuota: 1.0

    }

    layout: {StackLayout}

    direction: LayoutOrientation.TopToBottom

    }

    topPadding: 10.0

    bottomPadding: 10.0

    {Of container

    horizontalAlignment: P

    ImageView {}

    imageSource: ' images/ic_wifi.png.

    verticalAlignment: VerticalAlignment.Center

    horizontalAlignment: P

    }

    }

    {Of container

    ID: wifiContainer

    horizontalAlignment: P

    bottomPadding: 5.0

    topPadding: 5.0

    {Of container

    horizontalAlignment: P

    {Label

    text: '26.6 MB.

    textStyle.color: Color.White

    textStyle.fontWeight: FontWeight.Bold

    textStyle.fontSize: FontSize.PointValue

    textStyle.fontSizeValue: 8.0

    objectName: "wifiTotalLabel."

    }

    }

    {Of container

    topPadding: 5.0

    bottomPadding: 5.0

    horizontalAlignment: P

    {Label

    text: "20 MB, 6.6 MB out."

    textStyle.color: Color.White

    textStyle.fontSize: FontSize.PointValue

    verticalAlignment: VerticalAlignment.Bottom

    objectName: "wifiCountLabel."

    textStyle.fontSizeValue: 6.0

    }

    }

    }

    }

    }

    {Of container

    objectName: "bannerContainer."

    horizontalAlignment: P

    }

    }

    }

    }

    onCreationCompleted: {}

    Application.autoExit = false;

    Application.manualExit.connect (onManualExit);

    }

    function onManualExit() {}

    Show)

    }

    attachedObjects:]

    {SystemDialog}

    ID: dialogue

    Title: «DataCheck Pro»

    body: "" the application must always be running to make estimates as accurate as possible. "" Are you sure to terminate the application? »

    confirmButton.label: "Close"

    onFinished: {}

    If (dialog.result == 3) {}

    Dialog.Cancel ();

    } else {}

    Dialog.Cancel ();

    Application.Quit () / / myPlayer.stop)

    }

    }

    }

    ]

    }

    Help, please?

    Solved by putting setClosePrompt()

  • I can't upgrade my Macromedia Flash software. The dialog box keeps telling me that I need to close Firefox and Firefox is not open.

    I'm trying to upgrade my software Macromedia Flash and I can't perform the upgrade because the dialog box tells me to close Firefox. I close Firefox and the process keeps telling me that it cannot perform the upgrade until I close Firefox Firefox is closed! Don't know what I can do.

    If you have already downloaded Flash Installer, restart your computer, and then try to run the installer of Flash. then try launching firefox and upgrade to Firefox 11. Does it work? Usually problems like this are caused by a bad extension, so if it works, we can diagnose your extensions.

  • How to display the dialog box before uninstalling an application?

    Hello

    I want to display an alert dialog box before an application is uninstalled, has no idea how to do this?

    If not how can I detect a first run of an application after the installation?

    I have not tried out, just an idea.

    (A) there is a class called CodeModuleManager can check his stats module.

    So, in your application context thread to check his stats module.

    If it is marked as deleted, you can extract a global dialog box.

    (B) to implement SystemListener2, when the fastReset event occurs, you can check the stats module, if it is marked as deleted.

    you pop up GlobalDialog and force the user to interrupte.

    See you soon.

  • Display the dialog box when you open a report

    Hi all

    Currently, in one of the dashboard, for a particular report, I selected the link display in a separate window (properties-> display options - > link in a separate window). Since then, all the print, download links are displayed at the bottom of the report, users are Dungeon forget these links. I tried to post the links at the top of the report and tried the solution that I found on the forum. but, no luck.

    Instead, I want to display a warning message when they click on any part of the report in the newly opened window (since then, I've selected display options - > link in a separate window). If I create an alert by using narrative view box, the alert box will be open, if I click on that particular place.

    But, my requirement is, should the popup box are displayed by saying: "Please scroll to the bottom of the page to download/print the report" when users click on any where, on the report.

    Is this possible at all? I appreciate your help in this regard.

    Thanks in advance.

    -Is it possible to have the following views
    View 1: static text + pivot table1
    See 2: narrative view + pivot table2?

    In other words, is it possible to have fixed views as a point of view? Please notify.

    Thanks in advance.

    Yes, you can.

    (1) create all your individual points of view.

    (2) put the static text and Pivot Table in the Layout of the compound.

    (3) duplicate available composed to get Compound page layout: 2

    (4) while Compound layout: 2 delete and add narrative view and Pivot Table views: 2.

    (5) duplicate Mateur mode once more for the compounds page layout: 3

    (6) create the view selector with implantation and setting compound in page: 2 compound as the two points of view. Name them appropriately.

    (7) in the Layout composed: 3, delete all notices and add selector display.

    Now, users can switch between the two sets of views.

    Edited by: David_T on October 5, 2010 14:48

  • How to display the dialog box?

    Hello

    I checked the box to hide an error dialog box, how do I show it again?

    Thank you

    Edition - Preferences - general, look down for this button:

    -Christmas

  • Hi, SEND my button has disappeared from my Apple Mail & procedure of customization of the DISPLAY toolbar displays the dialog box with no icon of the button SEND to drag-and - drop on my desk.

    G, day,

    I have an iMac 21 "and use Applemail. However, my mail SEND icon is spent on the missing list and raise VIEW / 'Customize toolbar' does not contain the icon SEND so that I could drag-and - drop to the right / top corner where it should belong. Any help would be welcome.

    PS My incoming mail has also stopped. Moderate P.C. Savvy.

    Kind regards.

    Alan B.

    The button send when you are working in a new message or a reply. It is not in the view of the overall message.

    Missing when you create a new message or reply to a message?

  • Display a dialog box after the ejection of a USB drive, saying the car was ejected

    Hi, would someone please tell me how to change the applescript below to eject my USB in 2 ways, either by waiting 30 seconds by pressing the button "YES". Then, once the disc has been ejected another dialog box would appear to say 'eject disk '. If 'NO' button has been activated the reader wouldn't be ejected. My USB is indicated as (the present book).  Thanks in advance for any help.

                                                                tell application 'Finder '.

    display the dialog box "Eject USB drive?" default button 1 with the title "Eject?" buttons {'yes', 'No'} give up after 30

    If the button returned of the result is 'yes' then ejection of the this book

    tell the end

    Here:

    Tell application "Finder".

    Display dialog "Eject USB Drive?" buttons {"Yes", "No"} default button 1 with the title "Eject?" give up after 3

    If the result back button is 'yes' or abandoned then of the result

    This book of ejection

    display the dialog box 'Disc ejected.'

    end if

    tell the end

    (143586)

  • After closing the dialog box screen, menu by default is displayed

    I have a simple program that consists of a screen and a button. When the button is clicked, it displays a dialog box in the button handler. Once the dialog box is closed, the parts of the menu are displayed. Very strange.

    Here's the code that displays the dialog box:

    public void fieldChanged( Field field, int context )
        {
            String label = "";
    
            if ( field instanceof ButtonField )
            {
                label = ((ButtonField)field).getLabel();
            }
    
            //if this was the login button, display the popup.
            if ( label.equalsIgnoreCase( "Login" ) )
            {
                String icon = "questionmark.png";
                Bitmap bitmap = Bitmap.getBitmapResource( icon );
                String [] options = new String [] { "Yes", "No", "Cancel" };
                int [] optionIndexes = new int [] { Dialog.YES, Dialog.NO, Dialog.CANCEL };
                Dialog dialog = new Dialog( "Select an option", options, optionIndexes, optionIndexes[2], bitmap );
                dialog.doModal();
    
            }
    
        }
    

    Once the dialog box is closed, this is:

    I have no idea why this show after the closure of the dialog box. Any ideas?

    Well done

    I think that many people would find answers to their questions if they tried harder with search.  And you find faster as well!  And whenver I creative search, I usually find something else useful that I was looking for.  Kind of like Google where you can go off on a complete tangent...

    In any case, can mark you this as resolved?  See you soon

  • Prevent the dialog box fill with scripts

    Hello.

    I have an automation script that fills some pixels on a layer. Everything works, but sometimes it displays the dialog box to fill for the parameters with some png files (not all). I need to get rid of the dialog box. Is it possible to do this with the script? for example a default option?

    Thank you!

    Photoshop 2015.5 CC

    Windows 8.1

    Well, look's like I solved it the problem.

    The dialog box showed on the png files, Image-> Mode-> indexed color.

    So I added prior to filling, the following script, which will ensure the RGB Image Mode:

    var idCnvM = charIDToTypeID( "CnvM" );
    var desc36 = new ActionDescriptor();
    var idT = charIDToTypeID( "T  " );
    var idRGBM = charIDToTypeID( "RGBM" );
    desc36.putClass( idT, idRGBM );
    executeAction( idCnvM, desc36, DialogModes.NO );

  • Ignore the dialog box find sequence

    When running if TestStand isn't the .seq file, it display the dialog box to search for dialogue .seq.

    I'd like to display this dialog box to the user and continue execution with the next available sequence.

    Is there an option that can turn off the display of this dialog to the user?

    Thank you

    VS

    Ah, found the option - command prompt to search for files in the preferences.

    -VS

  • Display document data in the dialog box

    I use a folder level script to do the following:

    Get the value of a specific field XMP against an open PDF file:

    this.info.InDesignFileName

    Define a dialog box

    Create a menu item that calls up the dialog box

    But for the life of me, I can't get the dialog creation function to fill the XMP value in a static text element.

    The function below is changed from the right example out of the Acrobat Javascript API Reference.

    var inDesignNameDialog = {}

    initialize: function {(dialogue)

    store InDesignFileName XMP

    var indfn = this.info.InDesignFileName

    Create a static text containing the current date.

    / * var todayDate = dialog.store () ["date"];

    todayDate = "Date:" + util.printd ("mmmm dd, yyyy", new Date()); "."

    Dialog.Load ({'date': todayDate});

    */

    var todayDate = dialog.store (['indfn']);

    currFN = "Date:"+ this.info.InDesignFileName; "

    Dialog.Load ({"indfn": currFN});

    },

    function: Commit (dialog) {/ / called pressed OK}

    results var = dialog.store ();

    Now do something with the data collected, for example,

    Console.println ("your name is" + results ["fnam"]

    + "" + results ['lnam']);

    },

    Description:

    {

    name: 'Personal data', / / title of the dialog box

    align_children: 'align_left,

    Width: 350,

    height: 200,.

    elements:

    [

    {

    type: "cluster."

    name: 'Your name',

    align_children: 'align_left,

    elements:

    [

    {

    type: "display."

    align_children: "align_row."

    elements:

    [

    {

    type: 'static_text. "

    name: "" first name: ".

    },

    {

    item_id: 'fnam ',.

    type: 'edit_text. "

    alignment: "align_fill",.

    Width: 300,

    height: 20

    }

    ]

    },

    {

    type: "display."

    align_children: "align_row."

    elements:

    [

    {

    type: 'static_text. "

    name: "" name: ".

    },

    {

    item_id: "lnam."

    type: 'edit_text. "

    alignment: "align_fill",.

    Width: 300,

    height: 20

    }

    ]

    },

    {

    type: 'static_text. "

    name: "InDesign file name: «,»»

    char_width: 50,.

    item_id: "indfn."

    },

    ]

    },

    {

    alignment: 'align_right ',.

    type: "ok_cancel."

    ok_name: "Ok."

    cancel_name: "Cancel".

    }

    ]

    }

    };

    cExec: "inDesignNameDialog.parentDoc =; app.execDialog (inDesignNameDialog); «,

  • How can I do to block the main thread when to display a dialog box

    I have a problem to block the user interface main thread when to display a dialog box (the dialog was created by the main Application), and when the dialog box is closed, the main Application can go to the next step.
    Here is my code:

    SerializableAttribute public class TitledPaneExample extends Application {}
    instance of TitledPaneExample private;
    StackPane mainModalDimmer;

    /*
    * (non-Javadoc)
    *
    * @see javafx.application.Application #start (javafx.stage.Stage)
    */
    @Override
    public void start (point primaryStage) bird Exception {}
    instance = this;
    primaryStage.setTitle (this.getClass () m:System.NET.SocketAddress.ToString ());

    final StackPane layerPane = new StackPane();
    layerPane.setDepthTest (DepthTest.DISABLE);
    layerPane.setStyle ("background - fx - color: BLACK ;"); ")

    Vb VBox = new VBox();
    vb.setStyle ("background - fx - color: BLUE ;"); ")
    vb.getChildren () .add new (Label ("1"));
    vb.getChildren () .add (Label ("2")) new;
    vb.getChildren () .add new (Label ("3"));
    vb.getChildren () .add (Label ("4")) new;

    Bt1 button = new Button ("bt1");
    BT1.setOnAction (new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent event)
    System.out.println ("bt1 trying to the new dialog box > > >");
    Dialogue di = new dialog box (instance, "some trick here!");
    System.out.println ("bt1 dialogue again successfully, try to show");
    di. Show();
    System.out.println ("bt1 dialog hide? < < < < ");"
    }
    });
    vb.getChildren () .add (bt1).

    layerPane.getChildren () .add (vb);

    mainModalDimmer = new StackPane();
    mainModalDimmer.setId ("MainModalDimmer");
    mainModalDimmer.setMaxSize (Double.MAX_VALUE, Double.MAX_VALUE);
    mainModalDimmer.setVisible (false);
    mainModalDimmer.setStyle ("background - fx - color: RED ;"); ")
    layerPane.getChildren () .add (mainModalDimmer);

    Scene sc = new scene (layerPane, 800, 600);
    primaryStage.setResizable (true);
    primaryStage.setScene (sc);
    primaryStage.show ();

    }

    /**
    * Display the node given as a floating dialog on the entire application, with
    * the rest of the application grayed out and blocked from mouse events.
    *
    @param message
    */
    {} public void showModalMessage (message from node)
    mainModalDimmer.getChildren () .add (message);
    mainModalDimmer.setOpacity (0);
    mainModalDimmer.setVisible (true);
    mainModalDimmer.setCache (true);
    TimelineBuilder
    . Create()
    () .keyFrames
    new KeyFrame (Duration.seconds (1),)
    new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent t)
    mainModalDimmer.setCache (false);
    }
    }, new KeyValue (mainModalDimmer
    . opacityProperty(), 1.
    Interpolator.EASE_BOTH))) infrastructure)
    . Play();
    }

    /**
    Hide the any modal message that appears
    */
    public void hideModalMessage() {}
    mainModalDimmer.setCache (true);
    TimelineBuilder
    . Create()
    () .keyFrames
    new KeyFrame (Duration.seconds (1),)
    new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent t)
    mainModalDimmer.setCache (false);
    mainModalDimmer.setVisible (false);
    mainModalDimmer.getChildren () .clear ();
    }
    }, new KeyValue (mainModalDimmer
    . opacityProperty(), 0,.
    Interpolator.EASE_BOTH))) infrastructure)
    . Play();
    }

    /**
    @param args
    */
    Public Shared Sub main (String [] args) {}
    Launch();
    }

    Dialogue/public class extends TitledPane {}
    private owner of TitledPaneExample = null;
    instance of TitledPane private;

    Dialogue (owner of TitledPaneExample, String message) {}
    This.Owner = owner;
    this.parentThreand = Thread.currentThread ();
    This.instance = this;
    this.setExpanded (true);
    this.setText ("Dialog");
    this.setMaxWidth (400);
    this.setPrefWidth (300);
    this.setMinWidth (200);

    Label the tx = new Label ("message");
    tx.setTooltip (new Tooltip (message));
    tx.setWrapText (true);
    tx.setContentDisplay (ContentDisplay.LEFT);

    Bt button = new Button ("OK");
    bt.setOnAction (new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent event)
    masquer();
    }
    });

    Sp ScrollPane = new ScrollPane();
    sp.setHbarPolicy (ScrollBarPolicy.AS_NEEDED);
    sp.setVbarPolicy (ScrollBarPolicy.AS_NEEDED);
    sp.setContent (tx);

    Hb HBox = new HBox (30);
    hb.setPrefHeight (40);
    hb.setAlignment (Pos.CENTER_RIGHT);
    hb.getChildren () .add (bt);

    BP BorderPane = new BorderPane();
    bp.setCenter (sp);
    bp.setBottom (hb);

    this.setContent (bp);
    }

    {} public void show()
    System.out.println ("dialogue show() 1 > > >");

    owner.showModalMessage (instance);

    System.out.println ("dialogue show() 2 > > >");

    }

    public void masquer() {}
    System.out.println ("dialogue masquer() 1 > > >");
    this.owner.hideModalMessage ();

    System.out.println ("dialogue masquer() 2 > > >");
    }
    }

    }

    I'm also interested in how to do this without the use of a step.

    But, if you are ready to use a step for this, you can create a useful first step (without borders) with its owner being your current stage. Then, you can call the function showAndWait on stage that allows to block the thread of your application. For example, I implemented a DialogStage like this:

    package hs.mediasystem.util;
    
    import javafx.animation.KeyFrame;
    import javafx.animation.KeyValue;
    import javafx.animation.Timeline;
    import javafx.event.EventHandler;
    import javafx.scene.effect.ColorAdjust;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    import javafx.stage.WindowEvent;
    import javafx.util.Duration;
    
    public class DialogStage extends Stage implements Dialog {
    
      public DialogStage() {
        super(StageStyle.TRANSPARENT);
    
        this.setTitle("MediaSystem-dialog");
    
        initModality(Modality.APPLICATION_MODAL);
      }
    
      protected void setParentEffect(Stage parent) {
        ColorAdjust colorAdjust = new ColorAdjust();
    
        Timeline fadeOut = new Timeline(
          new KeyFrame(Duration.ZERO,
            new KeyValue(colorAdjust.brightnessProperty(), 0)
          ),
          new KeyFrame(Duration.seconds(1),
            new KeyValue(colorAdjust.brightnessProperty(), -0.5)
          )
        );
    
        parent.getScene().getRoot().setEffect(colorAdjust);
    
        fadeOut.play();
      }
    
      protected void removeParentEffect(Stage parent) {
        parent.getScene().getRoot().setEffect(null);
      }
    
      protected void recenter() {
        Window parent = getOwner();
    
        sizeToScene();
    
        setX(parent.getX() + parent.getWidth() / 2 - DialogStage.this.getWidth() / 2);
        setY(parent.getY() + parent.getHeight() / 2 - DialogStage.this.getHeight() / 2);
      }
    
      @Override
      public final void showDialog(final Stage parent, boolean synchronous) {
        initOwner(parent);
    
        setParentEffect(parent);
    
        setOnShown(new EventHandler() {
          @Override
          public void handle(WindowEvent event) {
            recenter();
            onShow();
          }
        });
    
        if(synchronous) {
          showAndWait();
        }
        else {
          show();
        }
      }
    
      protected void onShow() {
      }
    
      @Override
      public void close() {
        removeParentEffect((Stage)getOwner());
        super.close();
      }
    }
    
  • Value of the parameter is not displayed when moving from page of the dialog box

    Hello

    The question I face, is that I have a backup button with the logic in the PFR in which I call a page of dialogue that has an OK button. I give the floor to press ok another page. I need to capture a XXParty parameter that I put in the CO LIC key but is not displayed in the central of the PR of the other page that is called when you press the OK button. Probably I'm missing something very small. Any help would be greatly appreciated. Thank you


    SAVE BUTTON controller LIC... (Call the dialog box and the parameter)
    =============================================
    If (SaveButton! = null)
    {am.invokeMethod ("addNotes", params);  Transaction record.
    System.out.println ("save backwards");
    Try to build your own Page of dialogue here...
    String MainUrl = "OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG & retainAM = Y;
    OAException descMesg = new OAException ("XXTSA", "XX_KSMS_SAVED_NOTES");
    OAException instrMesg = new OAException ("FND", "FND_CANCEL_ALERT");

    DialogPage OADialogPage = new OADialogPage (OAException.INFORMATION, descMesg, null, MainUrl, null);
    OK button to send back the values of the PartyID for CO of the ShipperOverview Page.
    System.out.println ("The party ID is" + left); It is displayed.
    dialogPage.setPostToCallingPage (true);
    java.util.Hashtable formParams = new java.util.Hashtable (1);
    formParams.put ("XXParty", out); Part definition ID in XXParty.
    dialogPage.setFormParameters (formParams);
    pageContext.redirectToDialogPage (dialogPage);


    Partial code in the process asks in the called ShipperOverview Page of the dialog box's OK button
    ====================================================
    super.processRequest (pageContext, webBean);
    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    String XXId = pageContext.getParameter ("XXParty"); Try to recover part ID here of page of the dialog box.
    System.out.println ("The PartyID is" + XXId);

    Salvation;

    Try one of these two options.

    1. pass the value of the part directly in the URL & get it 2nd co:
    String MainUrl = 'OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&XXParty="+Party;

    2. After selecting the button ok in the dialog box get the parameters in CO 1 himself then using URL forward, send them to CO 2

    If (SaveButton! = null)
    *{*
    * //Your code... *.
    *//..............*
    *//............*

    Default OAException = new OAException ("XXABCD", "XXABCD_GNO_DELETE_WARNING");
    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, default, null, "","");
    dialogPage.setOkButtonItemName ("DeleteYesButton");
    dialogPage.setOkButtonToPost (true);
    dialogPage.setPostToCallingPage (true);
    String lineId = pageContext.getParameter ("lineId");
    Hashtable ht = new Hashtable();
    HT.put ("lineId", lineId);
    HT.put ('actor', actor);
    HT.put ("empId", empId);
    dialogPage.setFormParameters (ht);
    pageContext.redirectToDialogPage (dialogPage);

    *}*

    * combination else if (pageContext.getParameter ("DeleteYesButton")! = null) {*}
    String lineId = pageContext.getParameter ("lineId");
    String = pageContext.getParameter ("actor") actor;
    Var empId = pageContext.getParameter("empId");
    HashMap formParams = new HashMap (1);
    formParams.put ("lineId", lineId);
    formParams.put ('actor', actor);
    formParams.put ("empId", empId);
    pageContext.forwardImmediately ("OA.jsp?page=/xxx/oracle/apps/xxabcd/appraisal/webui/DrillDownPG",
    NULL, KEEP_MENU_CONTEXT,
    NULL, formParams, true,
    ADD_BREAD_CRUMB_NO);
    *}*

    --
    GsrC

Maybe you are looking for