No, I don't think so.  The validateAnswers() finds something wrong with the
input and adds to ValidationErrors, so after input to the form is changed
and the form resubmitted, it should be handled by submit() method, which
what normally happens. However, sometimes, instead of submit(), view() is
called. Very odd, that one.

-a

On 9 November 2011 19:15, Morten Matras <morten.mat...@gmail.com> wrote:

> Hi Aaron
>
> If the parameter "view" is in the parameter list this method is chosen.
> If the parameter verify is NOT in the parameter list view is also chosen.
>
> Could this be the reason?
>
> Morten
>
> 2011/11/10 Aaron Stromas <passog...@gmail.com>
>
>> Greetings,
>>
>> Can anyone offer any thought on the following situation:
>>
>>     @DefaultHandler
>>     public Resolution view() {...}
>>
>>     @HandlesEvent("verify")
>>     public Resolution submit() {...}
>>
>>     @ValidationMethod(on = "verify")
>>     public void validateAnswers(ValidationErrors errors) {...}
>>
>> For the most part, when the validateAnswers finds answers, it returns
>> control to the submit method, however, once in a while, it returns control
>> to the default handler (view). Any insights will be greatly appreciated.
>>
>> -a
>>
>>
>> --
>> Aaron Stromas
>> Mobile: +1 240 271 6458
>>
>>
>>
>> ------------------------------------------------------------------------------
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
>
> Morten Matras
> CEO - Leaddoubler.com
> Phone: +45 36 96 07 06
> Skype: mortena
> http://twitter.com/#!/LeadDoubler
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


-- 
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to