Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-16 Thread John
disappaears when the request returns. Any ideas how to do that on submit, perhaps another mixin? John - Original Message - From: Jon Williams To: Tapestry users Sent: Saturday, March 15, 2014 5:59 PM Subject: Re: an old chestnut - how to disable form inputs after submit pressed Wrap

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread Lenny Primak
https://code.google.com/p/flowlogix/wiki/TLDisableAfterSubmit > On Mar 15, 2014, at 12:03 PM, "John" wrote: > > The user presses submit the server takes a while during which submit can be > pressed again. > > I need to rerender the form inputs disabled and then fire the submit. How to? > > Jo

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread Jon Williams
at, Mar 15, 2014 at 11:25 AM, John wrote: > >> that would be even better >> >> thanks for the tip >> - Original Message - >> From: Jon Williams >> To: Tapestry users >> Sent: Saturday, March 15, 2014 5:21 PM >> Subject:

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread Jon Williams
arch 15, 2014 5:21 PM > Subject: Re: an old chestnut - how to disable form inputs after submit > pressed > > > Or do you want to toggle all the form elements to Read only after the > user > clicks the submit? > > > --- > This email is free from viruses and m

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread John
that would be even better thanks for the tip - Original Message - From: Jon Williams To: Tapestry users Sent: Saturday, March 15, 2014 5:21 PM Subject: Re: an old chestnut - how to disable form inputs after submit pressed Or do you want to toggle all the form elements to

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread Jon Williams
Or do you want to toggle all the form elements to Read only after the user clicks the submit?

Re: an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread Jon Williams
You can accomplish this with a mixin ClickOnce.java @Import(library="context:js/clickonce.js") public class ClickOnce { @Inject private JavaScriptSupport javaScriptSupport; @InjectContainer private ClientElement clientElement; @AfterRender public void afterRender() {

an old chestnut - how to disable form inputs after submit pressed

2014-03-15 Thread John
The user presses submit the server takes a while during which submit can be pressed again. I need to rerender the form inputs disabled and then fire the submit. How to? John --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com