Preventing duplicate post

Does anyone have a suggestion regarding how to prevent duplicate posts with JSF?
As an example, I have one form that allows users to carry out CRUD operations on the data that is being displayed. All successfully processed requests result in a post back to this same page.
I really want to avoid the problems that could occur if a delete or new request gets reposted by an impatient user.
Any suggestions are welcome. I should also note that for scalability reasons, I prefer to avoid solutions which require storing token, etc. in the session. I will settle for such a strategy in the absence of a better solution.

Thanks to all who responded. Just a couple follow-up questions and comments.
1. Can not use Shale. I'm in a heavily restricted corporate environment that limits me to IBM's (poor) implementation of JSF 1.0.
2. Would rather not address the problem soley through the use of JavaScript because users can always disable JavaScript.
3. Redirecting back to the page instead of forwarding back is not practical for three reasons. One, it will require my backing bean to make calls down into my application to retrieve data that would already have been readily available if I were forwarding, and I'm not comfortable with that performance decrease. Two, redirecting back to the form makes displaying of validation errors difficult. Three, redirecting to the page would successfully handle the circumstance where a user hits refresh, but doesn't handle the case of an impatient user who clicks the submit button twice while waiting for a response.
If anyone can propose a solution that works within these constraints, let me know.
Thanks again for those who are contributing.

Similar Messages

  • Validation Rule to prevent duplicate posting of invoices

    Hi All,
    I am proposing to use the Reference field as the field for my Invoice Number in my FB60 and FB70 postings. I need to set up a validation rule to ensure that previously posted invoices are prevented from being reposted (i.e. prevent invoice posting duplication). This field is BKPF-XBLNR.
    Can someone please help me to define the validation rule to use in preventing this from happening.
    Thank you for your help.
    Regards,
    Yomi

    HI
    Double invoice check works as below in standard SAP--
    System will check the below fields-
    1.Invoice date
    2.Amount
    3.Reference
    If all three above are identical it will throw an error message if masterdata of a vendor is ticked for double invoice check. If any one of the above will mismatch it will not give error message.
    If you wish to check as per reference field only then you need to use Validation.
    But you cannot write a simle logic in check , you need to use user exit.Where ABAPER has to write code for this.
    Write prerequisite as per your requirement , like company code and transaction code.
    then in check use user exit. Which user exit is to be used , that you can ask your ABAPER also and you can try the exit suggested in above answers also.
    Cheers
    Mukta

  • Duplicate Posts

    Occasionally, we see forum users posting duplicate posts across various sub-categories within a category. While not always helpful, this occasionally helps garner inputs from users who would not frequent the original category where the user has already posted his query once. In this sense, I believe that this practice may not always deserve to be frowned upon as the intention may be to have inputs from other set of members.
    Having said that, may I suggest an enhancement to the forum (if the underlying technology permits) that would allow a user to swap the sub-category under which his query is posted ? This would allow a user to attempt "moving" his/her post between sub-categories preventing duplicate posts while at the same time providing an option to focus the query to different set of users ?
    Would like to have the views of peers and moderators here.
    Regards,
    Rakesh

    This becomes impractical quickly.
    What if you can't/don't want to get to the other forum? (Consider that there are sites that are shunned, to the point where people don't want links to raise their google standing. Others are obscure.)
    What if you are responding to something before they link to the other forum? The Ranch post was explicit about a delay.
    What if some forums don't allow editing?
    What about people who blast doc questions to every forum they can or can't spell?
    What if some fora have different etiquette? (I remember one day I posted in similar style different questions, one on usenet and one on C$erve. One group flamed me for too little info, the other for too long of a post. Similar things have happened between usenet, lists and fora. And top versus bottom posting...)
    Eventually someone says something like "well, use good judgment and post smart questions" which is useless on this topic. The root cause intra-site is arbitrary classifications, and cross-site the capriciousness of the rules.
    We shouldn't expect questioners to put in more time than volunteers, there is quite of bit of management implicit in cross-indexing crossposting. People will just get cross :P

  • Preventing Duplicate User LogIN

    How to prevent Duplicate User Login ? The First User's Session has to be killed.
    How to do this ?

    How to prevent duplicate posts?
    http://forum.java.sun.com/thread.jspa?threadID=632857&tstart=0

  • How to Prevent duplicates on Combination of Lookup columns in sharepoint 2010 using infopath 2010 form.

    Hi All,
    I have list with some Lookup columns like  City, Pin, and Text Column Name. All these are required columns.
    Now I want to prevent duplicates while submitting InfoPath form if a Combination of  City,Pin & Name. (like a Composite primary in Database is used.)
    Can some one help me on how to achieve this using InfoPath  2010 Rules, writing  rule in Xpath.
    Thanks in Advance.

    1. Add a secondary data connection to the list where the form will be submitted.
    2. Prior to submit via rules, set the query fields in the above connection: City, Pin & Name with values entered in the form. Query the data source and check if the result has values.
    3. Show error messages accordingly if exists else continue with Submit.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to prevent duplicate vendor reference no on SAP B1 v8.8?

    Helo experts,
    I have SAP B1 v.8.8 and they system is allowing me to enter the same Vendor Reference for different POs but same BP.
    Is there a way to prevent duplicaton?
    I read in other post that there was an option in Admin'-System Initialisation-Document settings......to block duplication, but that does not show on my screen.
    Do you have any ideas or suggestions?
    Thank you

    Hello Gordon,
    Thanks for the link but I had already read those posts.
    I understand there is a way to prevent duplicate to enter vendor reference numbers.
    However, my question would be if the version that I am using would have the option to block release when When duplicated Vendor Reference No occurs as I cannot find it.
    Please advise,
    Thanks

  • How to prevent duplicate submit

    I am looking for a solution to prevent duplicate submit on the click of submit button or browser refresh. In Struts its quite easy to implement using toekn feature.
    Is there some feature in JSF which I can use to prevent duplicate submit?
    Please share your thought.

    Redirect after POST.

  • Prevent duplicate production orders in MB1A

    Hello,
    Is there a way to prevent duplicate production orders being entered while posting goods issue to production through transaction MB1A?
    Sincerely,
    Ketan

    You can use MIGO for goods issue against production order and enter only one order to post the GI.
    Thx
    Anand

  • Prevent duplicate on put() using DPL

    Given it is not possible to have composite index keys, what is the best way of preventing duplicate record creation on a put() using DPL. For example, for the following:
    @Entity
    public class Category {
    @PrimaryKey
    private Long recordID;
    private String description;
    private Integer type;
    private Long customerID;
    So how to avoid a duplicate put() on ( description + type + customerID ) ...... without a performance compromise.
    Can I extend the class with Comparator and then use set DatabaseConfig.setDuplicateComparator(Class<? extends Comparator<byte[]>> duplicateComparatorClass) or am I completely on the wrong track?
    Thanks, Len

    Does your GenericLookup constructor fill in the fields of the secondary key (the fields of the GenericLookupConstraint class)? You didn't include the constructor in your post.
    In your source code you've duplicated the fields, which makes me wonder whether you think that the key fields are not part of the entity. The secondary key is part of the entity, so there is no reason for the duplication.
    If you're still having trouble, please create a complete test program with a main() so we can try it and see what you're doing wrong.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Preventing duplicate rows insertion

    suppose i have a table with 2 columns
    no constraints are there
    then how i will prevent duplicate rows insertion using triggers.

    but i tried to solve the poster's requirement.yes, but the trigger does not solve it.
    The example you posted above, try this:
    do the first insert in your first sql*plus session, and then without committing, open another sql*plus session and do the second insert.
    Do you see an error?
    SQL> create table is_dup(x number, y varchar2(10));
    Table created.
    SQL> CREATE OR REPLACE TRIGGER chk
      2      BEFORE INSERT ON is_dup
      3      FOR EACH ROW
      4  BEGIN
      5      FOR i IN (SELECT * FROM is_dup)
      6      LOOP
      7          IF (:NEW.x = i.x) AND
      8             (:NEW.y = i.y)
      9          THEN
    10              raise_application_error(-20005, 'Record already exist...');
    11          END IF;
    12      END LOOP;
    13  END;
    14  /
    Trigger created.
    SQL> insert into is_dup values(123,'MYNAME');
    1 row created.
    SQL>
    SQL> $sqlplus /
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 23 10:17:07 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> insert into is_dup values(123,'MYNAME');
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from is_dup ;
             X Y
           123 MYNAME
           123 MYNAME
    SQL> commit ;
    Commit complete.
    SQL> select * from is_dup ;
             X Y
           123 MYNAME
           123 MYNAME
    SQL>

  • How to avoid duplicate posting of noted items for advance payment requests?

    How to avoid duplicate posting of noted items for advace payments request?

    Puttasiddappa,
    In the PS module, we allow the deletion of a component pruchase requisition allthough a purchase order exists. The system will send message CN707 "<i>A purchase order already exists for purchase requisition &</i>" as an Iinformation message by design to allow flexible project management.
    If you, however, desire the message CN707 to be of type E you have to
    modify the standard coding. Doing so, using SE91, you can invoke the
    where-used-list of message 707 in message class CN, and to change the
      i707(cn)
    to
      e707(cn)
    where desired.
    Also, user exit CNEX0039 provides the possibility to reject the
    deletion of a component according to customers needs e. g. you may
    check here whether a purchase order exists and reject the deletion.
    Hope this helps!
    Best regards
    Martina Modolell

  • Duplicate posting of Payment Draft

    Hi
    We are surprised Outgoing Payment Draft is not refreshed automatically or become Closed until we manually tick or untick Open to refresh. There is high risk of mistaking it as open and post again
    yet the system does not prohibit posting of this Draft that is supposed to be closed already.
    We also shocked to know that even Payment Draft of Closed status can be added and posted as new Payment.
    This is too risky of duplicate posting when there are several drafts saved for later posting but each one is not to be repeated in posting. 
    Can we request for this system bug or limitation to be fixed. Is this likely for this problem to be fixed in version 2007B with new patch?
    Kedalene Chong

    Hi Sridhar.
    You need only reverse the duplicate post. Using some this T-codes: MR08, FB08, AB08, FBRA etc.
    Regrads.
    Jandoval Nascimento.

  • Query Tuning - using CASE statement in the WHERE clause - Duplicate Post

    Duplicate Post by mistake.
    Please check
    Query Tuning - using CASE statement in the WHERE clause
    Edited by: Chaitanya on Jun 9, 2011 2:45 AM
    Edited by: Chaitanya on Jun 9, 2011 2:46 AM

    Duplicate Post by mistake.
    Please check
    Query Tuning - using CASE statement in the WHERE clause
    Edited by: Chaitanya on Jun 9, 2011 2:45 AM
    Edited by: Chaitanya on Jun 9, 2011 2:46 AM

  • Easiest way to identify/delete/prevent duplicate documents

    I don't suppose that the text column (e.g. CLOB) is something that I can use the usual trick to delete duplicates with, is it? I would think rather than compare the actual text column, I'd need to calculate a checksum or something for each document and then delete rows with duplicate checksums. Or is there a better way? I'm trying to prevent, for example, a news article getting inserted 10 times because it's a UPI story that was carried by 10 different sites.
    Thanks.

    Your idea of a checksum is a good one. But I'd compute the checksum, and make it a unique constraint, which would PREVENT duplicates from being inserted. It's usually better to prevent them than to clean them up later.
    Tom Best

  • Duplicate Post

    We create lessons in Captivate that include swf demos that
    someone else records. We import the swf files onto one slide. (In
    the future we're going to do this differently, but we already have
    these lessons buildt and need them out there, like today!). We had
    the problem that if someone advanced to the next slide, the audio
    from the imported animation continued to play, so we added a flash
    stop audio file on a very short slide that the stop demo went to.
    That worked for a long time. It still works for another worker
    doing exactly the same thing with the same stop audio file, but my
    lessons have started doing really weird things.
    First, the first audio slide in some of the lessons started
    stopping after just a few words. I fixed that by creating an
    opening slide with some audio that isn't important (a car reving
    its motor). But as I continued to make changes and publish, now the
    second slide in some lessons is cutting out after a few words also.
    And then, often the audio on the slide AFTER a demo won't play at
    all. And sometimes when I publish it's different than other times.
    And sometimes it works great, then I publish it to our LMS and it
    doesn't work out there. Any ideas?
    I'm going
    crazy!!!!!!

    This is a duplicate post. Please direct responses to the
    original post. You may view the original post by
    clicking
    here.

Maybe you are looking for

  • How to set a MessageTextInput to be Read Only for a specific row?

    Hi, In Benefits Self Service, particularly the Update Beneficiaries page, it lists all your eligible Beneficiaries including yourself. The table has the following columns displayed for each beneficiary: Beneficiary, Relationship, Social Security Numb

  • Syncing issues with USB port

    I can only sync on the USB port on my G5 tower. When I plug into the USB port on my Apple Cinema display the phone only charges...no syncing. Any ideas? I'd like to use the display port.

  • (Sysdate-1) in filename using scheduler and ftp

    Hello, I'm having a little problem with BI Publisher. What i am trying to do is use the sysdate-1 in the filename when using the scheduler in BIP. I found out that for using the regular date there are functions like %d %m %y, so obviously the first t

  • Best settings to fix interlacing

    So now that I've been working in HD, my video looks fine as I edit, but once I export I get this really ugly interlacing going on. It looks awful when I play it on my computer, but if I put the video on a DVD it plays smoothly on Standard and HD TV's

  • It crashes constantly. why should I use firefox 4?

    Every time I try to start 4.0 it crashes. No message just doesn't open. I have tried re-installing it several times. No help. I stopped the service, etc. but doesn't help. I started with the first Netscape. I am a Computer Consultant and a techie. I