This sounds like it may be a bug - can you reproduce it on the demo site?

http://demo.appfuse.org/appfuse-struts

Matt

On 5/9/07, Michael Chen <[EMAIL PROTECTED]> wrote:

Thanks to matt.
I'm using 2.0M4 with Struts2 basic, and I do the steps to create a model
object and action and related jsp pages, as show in the tutorial (something
like the Person model, the PersonAction, and personList.jsp,
personForm.jsp).
Then I set a field of the model object to "required" in the xxxForm.jsp,
and leave blank for this field,  I can't submit this form, that's right,
because the validation fails.
But then i fill this filed, and submit it again, the same validation error
still exist.
I have already implements the Preparable interface in the xxxAction.
Why?

thanks.


mraible wrote:
>
> Can you please tell us the steps we need to go through to reproduce
> this problem?
>
> Matt
>
>
> On 5/9/07, Michael Chen <[EMAIL PROTECTED]> wrote:
>>
>> I have the same issue, and i want know anyone can help me to fix it?
>>
>>
>> Matt Stine wrote:
>> >
>> > Anyone had trouble w/ your validation rules not being cleared out w/
>> > each request in Struts 2?  With each submit I end up getting a long
>> list
>> > of error messages above each field that only stops when I correct that
>> > field. However, at that point, even if I correct the entire form the
>> > previous errors still remain and the form will not pass validation.
>> >
>> >
>> >
>> > By the way, I'm using Equinox 1.7 w/ Struts 2.0.6.
>> >
>> >
>> >
>> > _____________________________________
>> >
>> > Matt Stine
>> >
>> > Senior Software Engineer
>> >
>> > Hartwell Center for Bioinformatics and Biotechnology
>> >
>> > St. Jude Children's Research Hospital
>> >
>> > 332 N. Lauderdale St.
>> >
>> > Memphis, TN 38105
>> >
>> > Voice: 901.495.4602
>> >
>> > Fax: 901.495.5108
>> >
>> > Pgr: 901.495.3578 #1314
>> >
>> > [EMAIL PROTECTED]
>> >
>> > http://www.hartwellcenter.org
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts-validation-rules-tf3474100s2369.html#a10395318
>> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Struts-validation-rules-tf3474100s2369.html#a10406141
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

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

Reply via email to