How to avoid a user to click multiple times on a link

Hi,
I have a pageflow with an action which can be called by clicking on a link on the portal. When a user clicks on this link an ejb is called, transaction is started, ...
If the user clicks on the same link multiple times I want to send him a message after the first click that the request is being processed.
How can I do this?
cheers
fifty

Hi fifty,
One way to not let a user click multiple times is by disabling the button by the use of JavaScript function. That way the Button is greyed out until the page is refreshed.
Hope this helps,
Mansoor

Similar Messages

  • How to avoid having users enroll for multiple certificates?

    Hi
    I am the domain administrator of my company. Recently one of my clients has re-installed his Windows and received a new certificate from CA, but the key pair of certificate is not same with previous one, so he lost his encrypted emails.
    Now, I want to know if there is any way to avoid issuing a new certificate by certificate issuer and reassign the old certificate to a user who changed his Windows? What about when he has other devices like PDAs or smartphones that need unique certificate
    installed on them in order to read encrypted emails on his Exchange mailbox with these devices?

    On Mon, 20 Jan 2014 07:48:07 +0000, AshkanR wrote:
    I am the domain administrator of my company. Recently one of my clients has re-installed his Windows and received a new certificate from CA, but the key pair of certificate is not same with previous one, so he lost his encrypted emails.
    Now, I want to know if there is any way to avoid issuing a new certificate by certificate issuer and reassign the old certificate to a user who changed his Windows? What about when he has other devices like PDAs or smartphones that need unique certificate installed
    on them in order to read encrypted emails on his Exchange mailbox with these devices?
    To avoid having new certificates issued you have 3 choices:
    1. Implement roaming profiles.
    2. Implement credential roaming.
    3. Configure the certificate template to publish to AD and then select the
    option to not re-enroll if a certificate based on that template already
    exists in AD.
    For the BYOD option (and as a general best practice when dealing with
    encryption certificates) you need to enable key archival and recovery on
    the CA and then configure the certificate template to archive the private
    key. When a user gets a new device, you recover the private key and provide
    the user with a PFX file that can be installed on the new device.
    Paul Adare - FIM CM MVP
    The weaknesses and the strengths of computer networking derive from the
    same
    feature: it is easy to send messages to anyone who has access to the
    network.
    -- Donald A. Norman, The Trouble with Networks (Datamation 1/1982)

  • How to avoid triggering of a workflow multiple times at the same time?

    Hello Workflow Gurus,
      This is the situation.
    I have a Notify requisition creator workflow. This workflow is triggered only when a PO is completely released(this Po is created with respect to a purchase req). I have implemented multiple release strategy in my PO workflow. Meaning, if a PO is created for 5 million, 4 entries are created in the release strategy(P0, P2, P3 and P4). Some approvers have authorization to approve P0 and some have authorization to release P2 etc. Before an approver can release P4, P0, P2 and P3 shuould be approved first.
    My problem is when a approver has auth to release both P3 and P4, and if he hits the SAVE button, it is completely released and  2 notify req workflows are being triggered. I use the release indicator = 'C' (completely released) to trigger thos notify req creator workflow. In this case both workflows are triggered at the same time and date. I somehow have to say if this is triggered at the same date and time, complete one workflow.
    BTW, I am not using any user exit to trigger this. This notify req creator WF is triggering event is "RELEASED'. When pO is completely released, 'RELEASED' event gets triggered which caused the notify req creator WF trigger.
    How can I accomplish this?
    Thanks
    Rachana

    Hi Rachana,
    Another way you could acheive this is to use start conditions for your workflow. You could specify that your workflow should get triggered only for release codes = XX or release strategy = XX, etc.. This way even after 1 stage of approval, when the approver clicks on SAVE, the release codes change and because there is start conditions in the workflow that would prevent another instance of the workflow from getting triggered.
    For example, in your case, I presume PO, P1, P2, etc are your release codes.
    You can have a start condition in your workflow wherein you specify that the workflow should get only triggered for release code = P2 [assuming release code P2 is always the 1st stage of approval]. So, once the approver for P2 has completed and Saved, since there is a start condition, there wouldnt be any other workflow instance started. By this way, any stages of approval wouldnt cause another workflow to initiate.
    Hope this is what you have been looking for ?
    Satish

  • How to avoid long user interface response time in long measurements ?

    Hi
    I tried to find more information regarding techniques how to avoid long user interface response times in case of extremely long measurement times with an external instrument communicating over GPIB, so I post this hoping to get some hint or a link to a guideline. I guess this is quite normal problem.
    Problem is that when I want to measure long time in order to get an average result from the instrument, I have to wait until the result is returned from the instrument. Obviously that makes the user interface response very slow in traditional technique. 
    My restriction is the old GPIB 488 instrument driver that I would not want to modify, but I have source code to it.
    What would be the best way to improve the response time for user interface ? I have looked into the few things:
    * multithreading
    * callback in main program for GPIB events
    * modifying instrument driver e.g. to support VISA and creating a VISA callback
    regards,
    Petri

    Several ways to do this:
    If you're getting several measurements, you could have the instrument generate an asynchronous interrupt (an "SRQ" in GPIB terms), then collect the data in response to the SRQ callback.  While you're waiting for the SRQ's, you can have your main thread running the interface so responsive GUI.  You don't have to spinlock on the GPIB read waiting for instrument data.
    Or, as you mentioned, you could spawn a thread to manage the measurements, and use a timer in the main thread to periodically allow you to check the status of the measurement thread.  Again, the main thread mostly just runs the user interface.
    Either way, the idea is to keep the main thread freed up most of the time to run the GUI, and have it periodically check for completion of your measurement sequence.  While you're waiting in the main thread, you may want to make sure the user can't inadvertently re-trigger another measurement sequence until the active one is complete.
    If you do find yourself doing a dead wait, you'd want to break this up into a series of shorter waits, and in between each wait, do a ProcessSystemEvents from the main thread to keep the GUI active.
    Menchar

  • Default button being clicked multiple times when enter key is pressed

    Hello,
    There seems to be a strange difference in how the default button behaves in JRE 1.4.X versus 1.3.X.
    In 1.3.X, when the enter key was pressed, the default button would be "pressed down" when the key was pressed, but wouldn't be fully clicked until the enter key was released. This means that only one event would be fired, even if the enter key was held down for a long time.
    In 1.4.X however, if the enter key is pressed and held for more than a second, then the default button is clicked multiple times until the enter key is released.
    Consider the following code (which is just a dialog with a button on it):
    public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
    private JButton jButton1 = new JButton("button");
    public SimpleDialog()
    this.getContentPane().add(jButton1);
    this.getRootPane().setDefaultButton(jButton1);
    jButton1.addActionListener(this);
    this.pack();
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == jButton1)
    System.out.println("button pressed");
    public static void main(String[] args)
    new SimpleDialog().show();
    When you compile and run this code under 1.3.1, and hold the enter key down for 10 seconds, you will only see one print line statement.
    However, if you compile and run this code under 1.4.1, and then hold the enter key down for 10 seconds, you will see about 100 print line statements.
    Is this a bug in 1.4.X or was this desired functionality (e.g. was it fixing some other bug)?
    Does anyone know how I can make it behave the "old way" (when the default button was only clicked once)?
    Thanks in advance if you have any advice.
    Dave

    Hello all,
    I think I have found a solution. The behaviour of the how the default button is triggered is contained withing the RootPaneUI. So, if I override the default RootPaneUI used by the UIDefaults with my own RootPaneUI, I can define that behaviour for myself.
    Here is my simple dialog with a button and a textfield (when the focus is NOT on the button, and the enter key is pressed, I don't want the actionPerformed method to be called until the enter key is released):
    package focustests;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
    private JButton jButton1 = new JButton("button");
    public SimpleDialog()
    this.getContentPane().add(new JTextField("a text field"), BorderLayout.NORTH);
    this.getContentPane().add(jButton1, BorderLayout.SOUTH);
    this.getRootPane().setDefaultButton(jButton1);
    jButton1.addActionListener(this);
    this.pack();
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == jButton1)
    System.out.println("button pressed");
    public static void main(String[] args)
    javax.swing.UIManager.getDefaults().put("RootPaneUI", "focustests.MyRootPaneUI");
    new SimpleDialog().show();
    and the MyRootPaneUI class controls the behaviour for how the default button is handled:
    package focustests;
    import javax.swing.*;
    * Since we are using the Windows look and feel in our product, we should extend from the
    * Windows laf RootPaneUI
    public class MyRootPaneUI extends com.sun.java.swing.plaf.windows.WindowsRootPaneUI
    private final static MyRootPaneUI myRootPaneUI = new MyRootPaneUI();
    public static javax.swing.plaf.ComponentUI createUI(JComponent c) {
    return myRootPaneUI;
    protected void installKeyboardActions(JRootPane root) {
    super.installKeyboardActions(root);
    InputMap km = SwingUtilities.getUIInputMap(root,
    JComponent.WHEN_IN_FOCUSED_WINDOW);
    if (km == null) {
    km = new javax.swing.plaf.InputMapUIResource();
    SwingUtilities.replaceUIInputMap(root,
    JComponent.WHEN_IN_FOCUSED_WINDOW, km);
    //when the Enter key is pressed (with no modifiers), trigger a "pressed" event
    km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
    0, false), "pressed");
    //when the Enter key is released (with no modifiers), trigger a "release" event
    km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
    0, true), "released");
    ActionMap am = SwingUtilities.getUIActionMap(root);
    if (am == null) {
    am = new javax.swing.plaf.ActionMapUIResource();
    SwingUtilities.replaceUIActionMap(root, am);
    am.put("press", new HoldDefaultButtonAction(root, true));
    am.put("release", new HoldDefaultButtonAction(root, false));
    * This is a copy of the static nested class DefaultAction which was
    * contained in the JRootPane class in Java 1.3.1. Since we are
    * using Java 1.4.1, and we don't like the way the new JRE handles
    * the default button, we will replace it with the old (1.3.1) way of
    * doing things.
    static class HoldDefaultButtonAction extends AbstractAction {
    JRootPane root;
    boolean press;
    HoldDefaultButtonAction(JRootPane root, boolean press) {
    this.root = root;
    this.press = press;
    public void actionPerformed(java.awt.event.ActionEvent e) {
    JButton owner = root.getDefaultButton();
    if (owner != null && SwingUtilities.getRootPane(owner) == root) {
    ButtonModel model = owner.getModel();
    if (press) {
    model.setArmed(true);
    model.setPressed(true);
    } else {
    model.setPressed(false);
    public boolean isEnabled() {
    JButton owner = root.getDefaultButton();
    return (owner != null && owner.getModel().isEnabled());
    This seems to work. Does anyone have any comments on this solution?
    Tjacobs, I still don't see how adding a key listeners or overriding the processKeyEvent method on my button would help. The button won't receive the key event unless the focus is on the button. There is no method "enableEvents(...)" in the AWTEventMulticaster. Perhaps you have some code examples? Thanks anyway for your help.
    Dave

  • Have to click multiple times to select in sync window

    I am having a problem syncing my devices (iphone 4, ipod nano 6th).  In iTunes when I go to the sync screen for either device and I click on the artists they do not get a check mark next to them.  If I click multiple times (some times as many as 6 or 7) then eventually, I get a check mark and they sync.  I have this problem with Artists, playlists, genres.  I do not have this problem with albums.
    How can I correct this?
    Also, for my iphone it is trying to sync a playlist which I no longer have on my computer.  In some file the data to sync is corrupt.
    Thanks for your help.

    My first thought is that the trackpad needs to be adjusted or that it needs to be replaced. Adjustment can be done quickly at the genius bar, replacement takes a couple days. Open System Preferences and select the trackpad. The first option you see should be 'tap to click' which will let you simply tab the trackpad to simulate a click. If that works you can be pretty certain it is mechanical and requires a trip to an Apple store.

  • Restricting users to login multiple times on the same machine..

    Hi everyone,
    Is it possible to restrict the users to login multiple times on the same machine...did someone implemented this kind of process.Please help me how can i achieve this or any suggestions.
    Thanks in advance.
    Phani..

    Hello,
    I decided to answer you in the original thread - Identify currently active users – as I believe that the outline background of the issue is important to better understand it.
    Regards,
    Arie.

  • I have itune on my first computer, but i cant download it for my other one,how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I have itune on my first computer, but i cant download it for my other one, how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • How to avoid the user selecting a different path in my installer

    Hello again all you helpful forum-goers!
    I have an application and a corresponding installer, and then I have a separate installer putting some support files in the same directory.  My problem is that if the user selects a different path to which to install my primary application, the secondary installer will not put the required support files in the same spot.
    Now, I think I've figured out how to get the user-selected path from the "Run executable at the end of installation" option in the Advanced pane of the LabVIEW installer configuration, and I can pass that in to my secondary installer, and that should fix the problem.  However, what I'd really like to do is just not give the user the option to install my primary application in a different directory to begin with.  I've looked, but cannot find any way to do that.
    Does anyone know of any way to not present the option to install an application in a different directory when using the LabVIEW installer?
    Thanks in advance for any suggestions,
    -Joe

    Ben64,
    That's great!  Thank you so much for your quick reply.  The only reason I haven't already accepted that as my solution is that it requires a manual post-compile change to a text file.  Ideally I'd prefer not to have to remember to do that every time I rebuild my installer.  Is there any way that you know of to automate the process?
    If not, I'm happy to have a good solution even if it takes an extra step each time to implement.
    -Joe

  • How to prevent the user to click on the All+ book selector

    We are trying to implement a simple book structure. I have created the hierarchy, assigned users to each level and assigned the opt records to each book level.
    When 'listing' all items for a user, I can see whatever opts are assigned to that (his) book.
    Now, if the user clicks on the +All in the book selector, he would be able to see all the records...
    Pls. is there a way to prevent the user from clicking in this selector ?
    Txs. for any help.
    Antonio

    Hi Bob,
    Txs. for the hint... Well I think it is OK to use the 'profile' access once the user clicks in the All+.
    Now, I have Accounts and Opportunities with the same access in the profile. User has a default book MMM for Application. I understand this book would be the default for all objects... correct ?
    When in Opportunities, it is working fine.. Default to MMM and if lookup selector is used with Alll+ he can see records with the profile access.
    Trouble is that with Accounts, Default to MMM and see nothing (which would be OK)... clicking in the All+ still see nothing... and this I cannot understand.
    Pls. anywhere I should look ?
    Txs.
    Antonio

  • Multiple Modal dialogs by clicking multiple times on a button

    I have an application where all dialogs are modal. Clicking on a button opens another dialog box. If I click very quickly three four times, two three dialog box of the same type are opened.
    How to avoid this situation.
    Thanks.

    >
    Java is a little slow with mouse events.Java isn't slow with mouse events, the fact that he's getting multiple dialogs shows this. The real problem is that you need to maintain state of your gui and not let the user do things that you know shouldn't happen. You can't depend on modal dialogs to block all user input. Nor can you depend on the event thread to process events quickly.
    Actually, I've found that the reason that I miss events in my application is because I put a large block of code in the event handler. You really have to put as little code in the event handlers as possiable. This usually means that you should delay all processing until you need to display something. Like not processing a mouse event, just copying the values out of it ( X and Y ) and waiting for a paint call to actually figure out what happened. This keeps your gui more responsive.

  • How to avoid safety warning when opening a pdf from an link in another pdf?

    I make pdf in Acrobat with links to other pdf files av have made. When i try to click a link to open the pdf, i get the safety question if trust it or if i will block it. How to avoid that question all the time?

    Hello Kvalitetetsansvarlig
    Try adding the PDF to the trust location in Acrobat
    Edit -> Preferences-> Security (Enhanced), Click on "Add File", and browse to your file.
    Click on "OK" button and check.
    Regards,
    Deepak

  • User signs up multiple times

    I have a simple email sign up form.  How do I create a page that says the user has already signed up so if they sign up again by accident, they don't recieve duplicate emails. I've read somewhere where they are not suppose to get the same email again, but that does not seem to be the case. I've signed up multiple times with the same form, and I still get the email.  However, in the DRM, it's still only 1 user which is good.  Any ideas?

    Hi Gregory,
    There's no way to perform that kind of server side check and return an error message.
    Cheers,
    -mario

  • How to run the same SSRS report multiple times, each time with a different parameter value?

    Hi,
    I have an SSRS report that produces a list of invoices for a single supplier (so supplier is a parameter specified at runtime). The report is based on a stored procedure in SQL. I would like to make things easier and instead of going through all suppliers
    one by one, I want to have a single action, which produces separate reports, per supplier, for all suppliers that have an outstanding invoice (so not all suppliers on the system as a whole but all suppliers that are within the result set of the stored procedure).
    I assume this would mean first executing the stored procedure to find all suppliers that have invoices at the time. And then running the report multiple times, once for each supplier, where the supplier value is used as the parameter every time. ideally
    this would open separate webpages with a single report per page. (I am creating a button in another software, which is simply launching iexplore.exe and passing a
    fixed SSRS report URL).
    What would be required? I have SQL 2012 and I am building this in Report Builder 3.0.
    Thank you!
    Dimitar
    P.S. What about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?

    What
    about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?
    Yes thats a much better option. Its very easy to generate such a report in SSRS. You dont need a parameter
    in that case but just needs to add Supplier as a grouping field in the tablix. Then add other columns and groups if required. Select option set page break after each instance of the group for first grouping (ie based on supplier field). Then report will render
    with one page per supplier. On exporting to excel also each supplier data goes to a different tab
    Here's a similar requirement I did for one of my projects
    http://visakhm.blogspot.in/2013/10/using-ssrs-to-export-sqlserver-data-to.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to avoid system slow when login first time  everyday

    if login system first time every day, it will be very slow for loading web application.
    I think maybe it 's  reload cache every night or by a certain perods of time.
    how to avoid this situation. or set cache reload a time per week?
    Thanks.

    Terry,
    I would confirm your application pools are set up as suggested in the install documentation.  This should resolve your issue.
    Thanks,
    Drew

Maybe you are looking for

  • Random Freeze in iMac Snow Leopard 10.6.8 non stop

    Hi, I aplogize if this post is long but I really need help. I have a iMac 7.1 OSX 2Ghz intel Core 2Duo / Memory 3 GB 667 MHZ DDR2 SDRAM originally running (10.4.10.) I installed Snow Leopard about two years ago and I never had problems, and kept maki

  • 16:9,  Black border all the way around the video.

    Using a Canon GL2 video camera I shot a short video in anamorphic 16:9. I then imported it into FCP, in the same format. Exported it and brought it into DVDSP in 16:9. Everything looked great on my 4:3 TV. It looked like it letterboxed just fine and

  • Portal install can't find WebLogic even though it's there.

    I recently moved my evaluation copy of WebLogic 6.1 SP 1 from /opt to /usr/local on my RedHat 7.1 box. WebLogic runs fine from the new location. However, when I try to install my evaluation copy of WLPortal 4.0, it insists that WebLogic 6.1 SP 1 is n

  • IPhoto 08 not recognising Camera

    I can connect my Canon camera via USB to my eMac (10.4.11) running iPhoto 06 and all is sweet. When I connect the camera via USB to my MacBook Pro (work computer) nothing happens. Is this an iPhoto 08 problem, a MacBook Pro problem, or OS 10.5.4? Any

  • Writing /dev/poll application in Solaris 8

    Hi all, I am trying to implement /dev/poll based polling in solaris 8 . I got the sample code form solaris 2.8 man pages for /dev/poll . I am able to compile the program but when I try to run it the ioctl call fails giving an error of "Invalid Argume