• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to prevent duplicate form submission in JSF framework

 
Rahamtulla Shaik
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic