Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Dave Newton
On Tue, Mar 26, 2013 at 1:42 PM, Alejandro wrote: > you don't put validate to true in the form > That's only for client-side validation. Dave

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Maurizio Cucchiara
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/m

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Paul Benedict
Correct. Return true to submit; false to cancel the event. On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara 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://p

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Alejandro
he used onclick, cancel the click event 2013/3/26 Paul Benedict > Correct. Return true to submit; false to cancel the event. > > On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara > wrote: > > > I could be wrong, but if you don't return true on submit event, the > > form will never get submit

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-27 Thread lucas owen
NEVER MIND it turns out that a co-worker had touched validate() method: public void validate(){ Map> fieldError = new HashedMap(); setFieldErrors(fieldError); } what i didn´t know is that (calling "save" action) after validateSave, Struts 2 continues executing validate, erasing, in thi

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-27 Thread Lukasz Lenart
2013/3/27 lucas owen : > NEVER MIND > > it turns out that a co-worker had touched validate() method: > > public void validate(){ > Map> fieldError = new HashedMap(); > setFieldErrors(fieldError); > } > > what i didn´t know is that (calling "save" action) after validateSave, > Struts 2 con