I haven't solved this issue, but found some clues: it appears that the
Struts2 validator is enabled in two locations: 1) the struts.xml, and 2)
somewhere else.

The "somewhere else" validator doesn't honor the "excludeMethods" parameter,
and therfore runs on my SignupAction for the "execute" method.  Both
validators seem to be running at the same time.  I can't find the secondary
validator configuration though!  Does anyone know where I should be looking? 
Could this have something to do with another struts.xml being included at
build time from appfuse?

Here's my normal appfuse-2.0-M5 struts.xml entry for validation in my web
module:
                <interceptor-ref name="validation">
                    input,cancel,execute,delete,edit,list,start
                </interceptor-ref>

When I comment that out, my other forms don't get validated, but the
signup.jsp and SignupAction DO get validated.

thanks,
Jason




Jason Thrasher wrote:
> 
> Created for FileUpload:
> http://issues.appfuse.org/browse/APF-803
> 
> Something seems broken in my validation though, which may be different
> than the FileUploadAction validation issue.  It's as if the struts.xml
> interceptor isn't honoring it's method excludes:
>                 <interceptor-ref name="validation">
>                     cancel,execute,delete,edit,list,start
>                 </interceptor-ref>
> 
> Jason
> 
> 
> 
> mraible wrote:
>> 
>> This might be caused by the following change:
>> 
>> <http://fisheye4.cenqua.com/browse/appfuse/trunk/web/struts/src/main/java/org/appfuse/webapp/action/FileUploadAction.java?r1=1868&r2=2763>
>> 
>> Sorry - tinyurl didn't let me create a shorter version of this URL for
>> some reason.
>> 
>> Matt
>> 
>> On 6/6/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>>> I am able to reproduce this - can you please enter a bug for it in JIRA?
>>>
>>> http://issues.appfuse.org/browse/APF
>>>
>>> I suspect it's something to do with the interceptor names and
>>> "excludeMethods" - maybe the interceptor names got changed in
>>> struts-default.
>>>
>>> Thanks,
>>>
>>> Matt
>>>
>>> On 6/6/07, Jason Thrasher <[EMAIL PROTECTED]> wrote:
>>> >
>>> > Some of my web-view forms seem to be validating themselves before they
>>> are
>>> > ever submitted.  This is happening for a Struts2-modular AppFuse. 
>>> Valiation
>>> > rules defined in XXXAction-validation.xml xwork-validator files seem
>>> to be
>>> > getting run too soon.  Does anyone know what might cause this?
>>> >
>>> > This also seems to be happening for the current HEAD revision of
>>> 2.0-rc1 at
>>> > this url:
>>> > http://127.0.0.1:8080/uploadFile!start.html
>>> >
>>> > It seems related, but I can't pinpoint the change.  This started
>>> happening
>>> > for some of my forms after moving from M4 to M5.
>>> >
>>> > thanks,
>>> > Jason
>>> > --
>>> > View this message in context:
>>> http://www.nabble.com/forms-validating-before-submit-tf3876623s2369.html#a10984712
>>> > Sent from the AppFuse - User mailing list archive at Nabble.com.
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>>
>>>
>>> --
>>> http://raibledesigns.com
>>>
>> 
>> 
>> -- 
>> http://raibledesigns.com
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/forms-validating-before-submit-tf3876623s2369.html#a11012154
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to