Re: validator type=regex : param name is regex , not expression

2013-09-19 Thread Chris
Thanks for the informations




 De : Lukasz Lenart lukaszlen...@apache.org
À : Struts Users Mailing List user@struts.apache.org 
Envoyé le : Jeudi 19 septembre 2013 7h59
Objet : Re: validator type=regex : param name is regex , not expression
 

Sometime ago ... with 2.3.12. I have renamed expression to regex as
right now you can define regexExpression as Ognl expression - there
was name clash without renaming ;-)

http://struts.apache.org/development/2.x/docs/version-notes-23120.html

2013/9/18 Chris christal...@yahoo.fr:
 Hello ,

 Do you have any idea since when ( which version ) the word expression is no
 more  avaliable ?
 In some examples on the Web or in Books, the word used is still
 expression.

 Regards

 Chris

 ---


 Done, thanks for reporting!

 https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML

 2013/9/16 Chris

 Hi Lukasz,

 Good example of regex in
 http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html
 ,
 and choose  between JavaScript validator or Java validator will be another
 story .;-)


 but the file EditAction-validation.xml seems contain a wrong value.
 .

 I found it in testing PhoneNumber with many wrong values and it always
 worked !
 I thought maybe a jar is missing ?

 But it was the param name in the file EditAction-validation.xml
 - param name=expression should be param name=regex

 before
 validator type=regex
     param name=fieldnamepersonBean.phoneNumber/param
     param name=expression![CDATA[\d{3}-\d{3}-\d{4}]]/param
     messagePhone number must be entered as 999-999-./message
 /validator

 after
 validator type=regex
     param name=fieldnamepersonBean.phoneNumber/param
     param name=regex![CDATA[\d{3}-\d{3}-\d{4}]]/param
     messagePhone number must be entered as 999-999-./message
 /validator




 Regards,

 Chris ( christalkto )


 __



-- 
Ł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: validator type=regex : param name is regex , not expression

2013-09-18 Thread Chris
Hello , 

Do you have any idea since when ( which version ) the word expression is no 
more  avaliable ? 
In some examples on the Web or in Books, the word used is still expression.

Regards

Chris

---


Done, thanks for reporting!

https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML

2013/9/16 Chris 
 Hi Lukasz,

 Good example of regex in 
 http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html
,
 and choose  between JavaScript validator or Java validator will be another 
 story .;-)


 but the file EditAction-validation.xml seems contain a wrong value.
 .

 I found it in testing PhoneNumber with many wrong values and it always worked 
 !
 I thought maybe a jar is missing ?

 But it was the param name in the file EditAction-validation.xml
 - param name=expression should be param name=regex

 before
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=expression![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator

 after
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=regex![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator




 Regards,

 Chris ( christalkto )


 __

Re: validator type=regex : param name is regex , not expression

2013-09-18 Thread Lukasz Lenart
Sometime ago ... with 2.3.12. I have renamed expression to regex as
right now you can define regexExpression as Ognl expression - there
was name clash without renaming ;-)

http://struts.apache.org/development/2.x/docs/version-notes-23120.html

2013/9/18 Chris christal...@yahoo.fr:
 Hello ,

 Do you have any idea since when ( which version ) the word expression is no
 more  avaliable ?
 In some examples on the Web or in Books, the word used is still
 expression.

 Regards

 Chris

 ---


 Done, thanks for reporting!

 https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML

 2013/9/16 Chris

 Hi Lukasz,

 Good example of regex in
 http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html
 ,
 and choose  between JavaScript validator or Java validator will be another
 story .;-)


 but the file EditAction-validation.xml seems contain a wrong value.
 .

 I found it in testing PhoneNumber with many wrong values and it always
 worked !
 I thought maybe a jar is missing ?

 But it was the param name in the file EditAction-validation.xml
 - param name=expression should be param name=regex

 before
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=expression![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator

 after
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=regex![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator




 Regards,

 Chris ( christalkto )


 __



-- 
Ł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: validator type=regex : param name is regex , not expression

2013-09-16 Thread Lukasz Lenart
Done, thanks for reporting!

https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML

2013/9/16 Chris christal...@yahoo.fr:
 Hi Lukasz,

 Good example of regex in 
 http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html ,
 and choose  between JavaScript validator or Java validator will be another 
 story .;-)


 but the file EditAction-validation.xml seems contain a wrong value.
 .

 I found it in testing PhoneNumber with many wrong values and it always worked 
 !
 I thought maybe a jar is missing ?

 But it was the param name in the file EditAction-validation.xml
 - param name=expression should be param name=regex

 before
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=expression![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator

 after
 validator type=regex
 param name=fieldnamepersonBean.phoneNumber/param
 param name=regex![CDATA[\d{3}-\d{3}-\d{4}]]/param
 messagePhone number must be entered as 999-999-./message
 /validator




 Regards,

 Chris ( christalkto )


 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org