How to avoid Double Submit in GWT?

701 views
Skip to first unread message

Srividhya Ramachandran

unread,
Dec 28, 2010, 3:24:17 PM12/28/10
to google-we...@googlegroups.com
How to avoid Double Submit in GWT? Is there a  token concept like in struts?
Thanks

Sunit Katkar

unread,
Dec 28, 2010, 5:22:15 PM12/28/10
to google-we...@googlegroups.com
No there is no direct equivalent of Struts where you can use tokens to prevent double submits.

But you could disable the Submit button after user clicks it and enable it only after your processing is complete.

On Tue, Dec 28, 2010 at 12:24 PM, Srividhya Ramachandran <svr...@gmail.com> wrote:
How to avoid Double Submit in GWT? Is there a  token concept like in struts?
Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jim Douglas

unread,
Dec 28, 2010, 5:27:54 PM12/28/10
to Google Web Toolkit
...and to protect against the user who manages to double-click the
button quicker than you can disable it, set a flag when you start
processing, and discard subsequent click events until that processing
is complete.

On Dec 28, 2:22 pm, Sunit Katkar <sunitkat...@gmail.com> wrote:
> No there is no direct equivalent of Struts where you can use tokens to
> prevent double submits.
>
> But you could disable the Submit button after user clicks it and enable it
> only after your processing is complete.
>
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/
>
> On Tue, Dec 28, 2010 at 12:24 PM, Srividhya Ramachandran
> <svr...@gmail.com>wrote:
>
>
>
> > How to avoid Double Submit in GWT? Is there a  token concept like in
> > struts?
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

abhiram wuntakal

unread,
Dec 29, 2010, 1:05:49 AM12/29/10
to google-we...@googlegroups.com
One nice idea would be to bring a popup with a loading kinda image.. Since the popup is there the user will not be able to click anything and the popup would also server as a means to display loading.. The advantage here is, if ur page has lot many buttons, rather than making each button disabled and then enabling them back when the service call is completed, this will be a simple mechanism to achieve what you need.

In case u dont need the "loading" displayed, u can just use a blank popup!!

Regards,
W

On Wed, Dec 29, 2010 at 1:54 AM, Srividhya Ramachandran <svr...@gmail.com> wrote:
How to avoid Double Submit in GWT? Is there a  token concept like in struts?
Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages