Re: Global Validation

2013-07-11 Thread Alireza Fattahi
Hi, Well I mean is there a way which I can tell the validation frame work that all required string  validations should display this message message The ${TheFiledWhichFailed} must be a string /meesage And then I define: validator type=requiredstring     param name=fieldNameUsername/param

Re: Define the a property

2013-07-11 Thread Alireza Fattahi
Hi, Sorry for sending the email directly, it was a mistake ! Any way, I expect that when this happens a warning message displayed to the developers not a full stack trace. You know, usually when you see this stack, it shows that something terribly bad happened !! Do you know which

Re: Define the a property

2013-07-11 Thread Lukasz Lenart
2013/7/11 Alireza Fattahi afatt...@yahoo.com: Any way, I expect that when this happens a warning message displayed to the developers not a full stack trace. You know, usually when you see this stack, it shows that something terribly bad happened !! Stacktraces are useful only for

Re: Global Validation

2013-07-11 Thread Lukasz Lenart
Nope, but you can use expressions: http://struts.apache.org/development/2.x/docs/validation.html#Validation-LocalizingandParameterizingMessages Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/7/11 Alireza Fattahi afatt...@yahoo.com: Hi, Well I mean is there a way which I

Re: Using Two Parent Pakages!!

2013-07-11 Thread Alireza Fattahi
Hi, The json plug in has a package json-default and the json result type is defined in this package. To use this result type you should do some thing like: 1- Make a new package and extend it  package name=myPackage extends=json-default,rest-default    namespace=/ 2- Copy and past the 

Re: Using Two Parent Pakages!!

2013-07-11 Thread Lukasz Lenart
2013/7/11 Alireza Fattahi afatt...@yahoo.com: If the struts finds the result-type json,in struts2-json-plugin.jar , why doesn't it make this result-type available to all actions ? Why should I address struts where this result type is defined ? Results are defined per package, actions are

Re: Possible client side validation bug in Struts 2.3.15

2013-07-11 Thread Bruno Klava
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