Buttons and Double Clicks?
Posted by ~Ray @ 2008-04-08 02:28:22
I am curious to experience how the JSF Framework or more precisely Sun's implementation ordain react to manifold move. Imagine a button with attached action code. If the user double click the button which they like to do for some odd reason the communicate ordain be sent twice to the server. Will the same component tree be restored/updated/method binding executed twice (almost) concurently? Leading to strange behaviours application-wise. I seem to have random "manifold preserve creation" on my application and that could be an explication. What is strange however is that I have some other "click to create" actions that seem unharmed by the double move frenzy. I wonder what you all might think about it.
Almost all web applications undergo this behaviour. Easiest way to prevent this behaviour is to use Javascript setTimeout to alter the add afterwards.
I recall a thread where someone wrote a Phaselistener to prevent double submit. Here it is:http://forum java sun com/thread jspa?threadID=665472But this all happens serverside and involves expensive server tasks. Edited by: BalusC on Nov 22. 2007 10:49 AM[ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5239236
0 Comments:
No comments have been posted yet!
|