My use case here is surrounding Login functionality on a site. 1.) After X number of failed login attempts present ReCaptcha as well as part of the required login fields 2.) On submit of the form verify ReCaptcha before submitting form 3.) If ReCaptcha is correct go ahead and submit the form 4.) Use Spring Security to authenticate the user
So the problem I am facing is that currently I have two Handlers, one for verifying what they have provided for ReCaptcha is correct, and a second which actually does the Spring Security Authentication. I have a login button that I've added both ClickHandlers to and now I'm trying to figure out how I can achieve the use case scenario about given the Asynchronous nature of GWT. My first solution is to process the ReCpatcha Handler first and if the user fails to provide the correct input I would just skip the Spring Security Handler. The problem with this approach is I haven't seen a way to chain handlers in a specified order and then force a handler to be skipped. Finally onto my question: Is there a way to achieve what I'm attempting above or am I addressing this problem with an incorrect approach. I'm new to GWT so I'm not sure whats recommended. PS: I thought about creating just one Handler however I'd like to keep both the Security and ReCpatcha logic separate for reuse. 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
