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(){ MapString, ListString fieldError = new HashedMap(); setFieldErrors(fieldError); } what i didn´t know is that (calling save action) after validateSave, Struts 2 continues executing validate,

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

2013-03-27 Thread Lukasz Lenart
2013/3/27 lucas owen sr.ilus...@gmail.com: NEVER MIND it turns out that a co-worker had touched validate() method: public void validate(){ MapString, ListString fieldError = new HashedMap(); setFieldErrors(fieldError); } what i didn´t know is that (calling save action) after

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 apar...@gmail.com 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:

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 mcucchi...@apache.orgwrote: 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+

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 pbened...@apache.org Correct. Return true to submit; false to cancel the event. On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara mcucchi...@apache.orgwrote: I could be wrong, but if you don't return true on submit event,