jQuery in Action, 2nd edition*
The moose likes JSF and the fly likes how to prevent duplicate form submission in JSF framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to prevent duplicate form submission in JSF framework" Watch "how to prevent duplicate form submission in JSF framework" New topic
Author

how to prevent duplicate form submission in JSF framework

Rahamtulla Shaik
Greenhorn

Joined: Mar 03, 2009
Posts: 1
Hi,
i am new to this forum. let me put my question stright away here!

i am working on JSF pages and i want to prevent duplicate form submission from the user in JSF frame work,

As we prevent in STRUTS using saveToken(request), isTokenValid(request).


Duplicate form submissions from any of following reasons.

1. When a user clicks more than once on a submit button before the response is sent back

2. When a client clicks on the Back button in the browser or simply refreshes the pages

3. When the user accesses the web page by returning to a previously bookmarked page.



let me know id my question is not clear and Please let me if you guys found any answars...

Thanks
Raheemtulla Shaik.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

I've always felt that failure to recognize and allow for multiple submits is ultimately a fault in the application itself, but it is a serious problem, and more recent releases of JSF are supposed to allow for this - I haven't read up on the details, though.

In the case of a bookmarked request, however, that may be asking too much of the framework - if the user clicks the bookmark three weeks later and the server has been shutdown and restarted, it probably isn't going to be able to detect the duplication. For that, you may need application logic.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to prevent duplicate form submission in JSF framework
 
Similar Threads
Duplicate form submission - Synchronizer Token Pattern
form resubmission
Preventing form resubmission on Back button
Preventing form resubmission on Back button
how should i proceed??