Re: Possible client side validation bug in Struts 2.3.15
Solved, please check with the latest build ... hm ... ale the build are gone :\ https://builds.apache.org/view/S-Z/view/Struts/ Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/7/11 Bruno Klava bkl...@gmail.com: Issue created: https://issues.apache.org/jira/browse/WW-4139 On Wed, Jul 10, 2013 at 6:18 AM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/7/10 Lukasz Lenart lukaszlen...@apache.org: 2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right, that breaks backward compatibility Could you register an issue with link to the example? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Bruno Klava - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Possible client side validation bug in Struts 2.3.15
Issue created: https://issues.apache.org/jira/browse/WW-4139 On Wed, Jul 10, 2013 at 6:18 AM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/7/10 Lukasz Lenart lukaszlen...@apache.org: 2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right, that breaks backward compatibility Could you register an issue with link to the example? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Bruno Klava
Re: Possible client side validation bug in Struts 2.3.15
2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right, that breaks backward compatibility Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Possible client side validation bug in Struts 2.3.15
2013/7/10 Lukasz Lenart lukaszlen...@apache.org: 2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right, that breaks backward compatibility Could you register an issue with link to the example? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Possible client side validation bug in Struts 2.3.15
Hi, I get these two warnings: 2013-07-10 16:42:45,683 WARN (com.opensymphony.xwork2.interceptor.ParametersInterceptor:56) - Parameter [struts.enableJSONValidation] is on the excludeParams list of patterns! 2013-07-10 16:42:45,683 WARN (com.opensymphony.xwork2.interceptor.ParametersInterceptor:56) - Parameter [struts.validateOnly] is on the excludeParams list of patterns! How can I fix it ?! I put below in struts.xml constant name=struts.enableJSONValidation value=true / But it did not help. ~Regards, ~~Alireza Fattahi
Re: Possible client side validation bug in Struts 2.3.15
Now I managed to create a minimal example that reproduces the error (the previous example I was trying was too minimal :) https://github.com/bklava/struts In the example, in the index action/page, there are 2 forms: the difference is that the form 1 submits to the action without setting a method (then calling the default execute() method), while the form 2 submits to the same action but calling a specific method. The validator is set annotating the field setter method, so it should be available either to the default execute method and to the non-default method. This is exactly the behaviour obtained when using Struts 2.3.14.3. After switching to Struts 2.3.15, the form 2 validation is not executed at all. As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) If you need any further info, just ask. Tnx! Bruno On Thu, Jul 4, 2013 at 4:25 PM, Bruno Klava bkl...@gmail.com wrote: Hi Maurizio, is was generating a minimal example but could not reproduce the bug in it. It must be something else, maybe a customized template/component. tnx anyway ;) Bruno On Wed, Jul 3, 2013 at 4:20 PM, Maurizio Cucchiara mcucchi...@apache.orgwrote: Hi Bruno, could you provide a code sample? 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 3 July 2013 21:09, Bruno Klava bkl...@gmail.com wrote: Hi folks, after upgrading Struts from 2.3.14.3 to 2.3.15 my client side form validation stopped working. More specifically, the code to validate requiredstring is not being generated in the validateForm_xx() functions. Is anybody having the same issue? Tnx in advance, Bruno -- Bruno Klava -- Bruno Klava
Re: Possible client side validation bug in Struts 2.3.15
Hi Maurizio, is was generating a minimal example but could not reproduce the bug in it. It must be something else, maybe a customized template/component. tnx anyway ;) Bruno On Wed, Jul 3, 2013 at 4:20 PM, Maurizio Cucchiara mcucchi...@apache.orgwrote: Hi Bruno, could you provide a code sample? 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 3 July 2013 21:09, Bruno Klava bkl...@gmail.com wrote: Hi folks, after upgrading Struts from 2.3.14.3 to 2.3.15 my client side form validation stopped working. More specifically, the code to validate requiredstring is not being generated in the validateForm_xx() functions. Is anybody having the same issue? Tnx in advance, Bruno -- Bruno Klava
Possible client side validation bug in Struts 2.3.15
Hi folks, after upgrading Struts from 2.3.14.3 to 2.3.15 my client side form validation stopped working. More specifically, the code to validate requiredstring is not being generated in the validateForm_xx() functions. Is anybody having the same issue? Tnx in advance, Bruno
Re: Possible client side validation bug in Struts 2.3.15
Hi Bruno, could you provide a code sample? 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 3 July 2013 21:09, Bruno Klava bkl...@gmail.com wrote: Hi folks, after upgrading Struts from 2.3.14.3 to 2.3.15 my client side form validation stopped working. More specifically, the code to validate requiredstring is not being generated in the validateForm_xx() functions. Is anybody having the same issue? Tnx in advance, Bruno