NEVER MIND
it turns out that a co-worker had touched validate() method:
public void validate(){
Map<String, List<String>> fieldError = new HashedMap();
setFieldErrors(fieldError);
}
what i didn“t know is that (calling "save" action) after validateSave,
Struts 2 continues executing validate, erasing, in this case, field errors.
I'm so grateful with your support, keep working hard
thanks!!
2013/3/26 Alejandro <[email protected]>
> he used onclick, cancel the click event
>
>
>
> 2013/3/26 Paul Benedict <[email protected]>
>
> > Correct. Return true to submit; false to cancel the event.
> >
> > On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara
> > <[email protected]>wrote:
> >
> > > I could be wrong, but if you don't return true on submit event, the
> > > form will never get submitted.
> > >
> > > Twitter :http://www.twitter.com/m_cucchiara
> > > G+ :https://plus.google.com/107903711540963855921
> > > Linkedin :http://www.linkedin.com/in/mauriziocucchiara
> > > VisualizeMe:
> http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
> > >
> > > Maurizio Cucchiara
> > >
> > >
> > > On 26 March 2013 18:44, Dave Newton <[email protected]> wrote:
> > > > On Tue, Mar 26, 2013 at 1:42 PM, Alejandro <[email protected]>
> wrote:
> > > >
> > > >> you don't put validate to true in the form
> > > >>
> > > >
> > > > That's only for client-side validation.
> > > >
> > > > Dave
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
>