|Jason Vincent||May 11, 2006 9:41 am|
|James Reynolds||May 11, 2006 9:49 am|
|Craig McClanahan||May 11, 2006 10:59 am|
|Jason Vincent||May 11, 2006 12:20 pm|
|Jason Vincent||May 11, 2006 12:21 pm|
|James Reynolds||May 11, 2006 12:39 pm|
|Michael Jouravlev||May 11, 2006 1:17 pm|
|Craig McClanahan||May 11, 2006 2:04 pm|
|Michael Jouravlev||May 11, 2006 2:17 pm|
|Craig McClanahan||May 11, 2006 2:28 pm|
|Michael Jouravlev||May 11, 2006 2:56 pm|
|Craig McClanahan||May 11, 2006 3:02 pm|
|Richard Wallace||May 11, 2006 8:47 pm|
|Subject:||RE: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)|
|From:||James Reynolds (Jame...@intermountainmail.org)|
|Date:||May 11, 2006 12:39:37 pm|
Oh, I totally missed the point. Best of luck.
-----Original Message----- From: Jason Vincent [mailto:jtvi...@gmail.com] Sent: Thursday, May 11, 2006 1:21 PM To: Struts Users Mailing List Subject: Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)
hmmm.... that isn't going to solve my issue. I don't want the button disabled on reload. I only want it to be disabled from the time the user clicked the button, until the time the server is able to send back a response.
Here is an example: On a login form... enter username and pwd and click the submit button. While the server is processing the login form (the IE globe is spinning) the button becomes disabled so that the user can't resubmit the same login form.
I'm more curious about how setting a DOM property on a element would change the way it is handled on the server side.
Thanks for the try though, Jason
On 5/11/06, James Reynolds <Jame...@intermountainmail.org> wrote:
The first thought that occurs to me is, how about binding the button's
JSF 'disabled' attribute to a boolean property on your backing bean? As part of the button's action method, you could set the boolean to true, thereby disabling the button when the page reloads.
-----Original Message----- From: Jason Vincent [mailto:jtvi...@gmail.com] Sent: Thursday, May 11, 2006 10:42 AM To: us...@struts.apache.org Subject: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)
My project spec is asking me to disable form buttons once they are clicked. It seemed easy to me, just add onclick="disabled='true'" to the commandButton. But as anything I've found with JSF, it isn't that
When I do this, the action method isn't being called after it passes validation. If I remove the onclick attribute, the form works fine; so I know it isn't a logic failure in the ViewController.
I noticed that JSF inserts some of its own onclick logic to the button
too. So I thought I'd try to disable the button by using the onsubmit
attribute of the form tag. This also had the same behavior.
What is going on here? Is disabling the button changing the submitted
Thanks all, Jason