Thanks that workes perfectly
-----Original Message-----
From: Igor Vaynberg <igor.vaynb...@gmail.com>
Date: Tue, 15 Nov 2011 07:20:44 
To: <users@wicket.apache.org>
Reply-To: users@wicket.apache.org
Subject: Re: Customizing Error / Validation messages

the javadoc says the key to use is PatternValidator not pattern. to make it
specific to a field use fieldid.PatternValdiator, in your case you can see
from the log that one of the keys that is tried is  zip.PatternValidator

-igor

On Mon, Nov 14, 2011 at 12:03 PM, anantasthana <anant.a...@gmail.com> wrote:

> Here is the Log messages
> I am not sure what it is doing
>
> DEBUG - AbstractShiroFilter        - No FilterChainResolver configured.
> Returning original FilterChain.
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'zip.PatternValidator'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorPanel.vendorForm.zip.zip.PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> INFO  - PropertiesFactory          - Loading properties files from
>
> file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/html/vendor/VendorEditPage.properties
> with loader
> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorForm.zip.zip.PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> INFO  - PropertiesFactory          - Loading properties files from
>
> file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/html/vendor/VendorEditPanel.properties
> with loader
> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.zip.PatternValidator';
> class:
> 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'org.apache.wicket.markup.html.form.TextField'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'zip.PatternValidator'
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'zip.PatternValidator'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorPanel.vendorForm.zip.zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> INFO  - PropertiesFactory          - Loading properties files from
>
> file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/classes/com/aspen/web/WebAppDescriptor.properties
> with loader
> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
> INFO  - PropertiesFactory          - Loading properties files from
>
> jar:file:/C:/Users/AAsthana/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Aspen/WEB-INF/lib/wicket-core-1.5.2.jar!/org/apache/wicket/Application.properties
> with loader
> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@a606e6
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorForm.zip.zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.zip.PatternValidator';
> class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'org.apache.wicket.validation.validator.PatternValidator'; locale: 'en_US';
> Style: 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'PatternValidator'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorPanel.vendorForm.zip.PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorForm.zip.PatternValidator';
> class: 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US';
> Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'PatternValidator'; class:
> 'com.aspen.web.html.vendor.VendorEditPage$1'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip.PatternValidator'; class:
> 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'PatternValidator'; class:
> 'org.apache.wicket.markup.html.form.Form'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'PatternValidator'; class:
> 'org.apache.wicket.markup.html.form.TextField'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'PatternValidator'
> DEBUG - ponentStringResourceLoader - component: '[TextField [Component id =
> zip]]'; key: 'PatternValidator'
> DEBUG - ponentStringResourceLoader - key:
> 'vendorPanel.vendorForm.zip.PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - key: 'PatternValidator'; class:
> 'com.aspen.web.WebAppDescriptor'; locale: 'en_US'; Style: 'null';
> Variation:
> 'null'
> DEBUG - ponentStringResourceLoader - component: '[Form [Component id =
> vendorForm]]'; key: 'zip'
> DEBUG - ponentStringResourceLoader - key: 'vendorPanel.vendorForm.zip';
> class: 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style:
> 'null'; Variation: 'null'
> DEBUG - ponentStringResourceLoader - key: 'zip'; class:
> 'com.aspen.web.html.vendor.VendorEditPage'; locale: 'en_US'; Style: 'null';
> Variation: 'null'
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Customizing-Error-Validation-messages-tp4038582p4040704.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to