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
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
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:
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
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
Or do you want to toggle all the form elements to Read only after the user
clicks the submit?
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() {
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