Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple updates/create via Hibernate and IceFaces  RSS feed

 
Walter Krawiec
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've small form and button to post the action, althought I'm facing problems while I submit the form by clicking few times submit button, after that action in database i've got n-time the same record, where n = n cilcks on submit button.

How to block components or render view to make it work just for the first call?

thanks

Krokkodillo
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can give you a couple of standard ways but JSF may also have some own options to use. But I trust that Tim or someone else will tell you about them

One way is to disable the send button with javascript after you have pushed the send button. Since JSF pretty much needs javascript (yeah I know, not necessarily) you can pretty much trust that the client has javascript enabled.

And after I used search I found out that I do not need to tell about the other methods
http://www.coderanch.com/t/49944/Struts/Multiple-submit-prevention-JSF
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!