Maybe your browser is filling the field and it has nothing to do with
Struts validation? Check that in anonymous mode.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/2 Antonio Sánchez <juntandolin...@gmail.com>:
> I can't see what's going on behind the scenes in this example so I'm asking
> for help in order to understand the Strtus process.
>
> I run the example, leave empty "First Name" to make validation fail, and
> submit. Then go back to index:
>
> http://localhost:8084/form_xml_validation
>
> and click on edit. But "First name" is reset with the original value. It
> should be empty because Person instance is managed statically. In fact,
> other examples (preparable, exclude params) behave as expected, and return
> an empty String for the filed left empty.
>
> The thing here is than I'm not understanding how Struts works here. I would
> appreciate if you help me with this.
>
> Thank you.
>
> ----
>
> Example is here:
>
> http://struts.apache.org/release/2.3.x/docs/form-validation-using-xml.html
>
> Code for checkout here:
>
> http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/
> <https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/>
>
> Examples doing as expected:
>
> http://struts.apache.org/release/2.3.x/docs/exclude-parameters.html
>
> http://struts.apache.org/release/2.3.x/docs/preparable-interface.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to