Re: T5: regexp for commas

2008-01-15 Thread Howard Lewis Ship
All the IDEs have some form of regexp testing plugin; I use the intellij one all the time. On Jan 14, 2008 4:33 AM, Michael Courcy <[EMAIL PROTECTED]> wrote: > Did you try this regexp with in a regular java program ? > > Thomas Zenglein a écrit : > > > Hello everybody, > > > > I want my textfield

Re: T5: regexp for commas

2008-01-15 Thread Michael Courcy
Thomas Zenglein a écrit : Hello, thanks evrybody for attempting to help me with that problem. I tried every suggest you gave, with no positve result. Now I think this is a Tapetry internal problem. Any idea for an alternative solution method? Meanwhile I have to be happy without the regexp che

Re: T5: regexp for commas

2008-01-15 Thread Thomas Zenglein
Hello, thanks evrybody for attempting to help me with that problem. I tried every suggest you gave, with no positve result. Now I think this is a Tapetry internal problem. Any idea for an alternative solution method? Meanwhile I have to be happy without the regexp check. THX Thomas >>> Mich

Re: Antw: Re: T5: regexp for commas

2008-01-14 Thread Michael Courcy
well I wonder if the comma is not playing a role in the interpretation of the annotation ? did you try to replace the comma by its unicode value : \u002C Thomas Zenglein a écrit : Hello Michael, I've just tried following lines. public class Test { public static void main(String[] args)

Re: Re: T5: regexp for commas

2008-01-14 Thread Sven Homburg
i'm not sure, but have you tried this: @Validate("required,regexp=prop:myRegExpCheck") public String getMyRegExpCheck() { return "[<>a-z\\,A-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+"; } 2008/1/14, Thomas Zenglein <[EMAIL PROTECTED]>: > > Hello Michael, > > I've just tried following lines. > > public

Antw: Re: T5: regexp for commas

2008-01-14 Thread Thomas Zenglein
Hello Michael, I've just tried following lines. public class Test { public static void main(String[] args) { String foo = ","; if (foo.matches("[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")){ System.out.println(":)"); } else { System.out.

Re: T5: regexp for commas

2008-01-14 Thread Michael Courcy
Did you try this regexp with in a regular java program ? Thomas Zenglein a écrit : Hello everybody, I want my textfield to allow a couple of signs. For that I have the following code. @Validate("required,regexp=[<>a-zA-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+") public void setName(String name) {