componentID.PatternValidator settings in properties file cannot be picked up
----------------------------------------------------------------------------

                 Key: WICKET-2405
                 URL: https://issues.apache.org/jira/browse/WICKET-2405
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC7
         Environment: jaunty, 1.4-rc7. JDK 1.6.0_13-b03
            Reporter: jason wang


Code:

final RequiredTextField<String> mobile = new 
RequiredTextField<String>("mobile");
mobile.setLabel(new Model<String>("mobile")).add(new 
PatternValidator("^[1-9]([0-9]{8,14})"));

Properties file:

mobile.PatternValidator = Please input a valid international phone number.

Results:

always output <input> does not match pattern '^[1-9]([0-9]{8,14})'.


WIth the same code, build with 1.4 rc1, worked fine, build with rc7, problem 
occurred.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to