Enable DEBUG logging for
org.apache.wicket.resource.loader.ComponentStringResourceLoader and
see whether your .properties file is asked at all.

On Mon, Nov 14, 2011 at 10:44 AM,  <anant.a...@gmail.com> wrote:
> I tried that it still does not work for some reason I have VendorPage.class 
> VendorPage.html and VendorPage.properties
> Containing pattern = ${label} is invalid zip. It still shows me the default 
> message. Am I missing a step or doing some thing wrong?
> ------Original Message------
> From: Martin Grigorov
> To: users@wicket.apache.org
> ReplyTo: users@wicket.apache.org
> Subject: Re: Customizing Error / Validation messages
> Sent: Nov 14, 2011 1:09 AM
>
> Hi,
>
> On Mon, Nov 14, 2011 at 8:50 AM, anantasthana <anant.a...@gmail.com> wrote:
>> I am using pattern validator and i on a page named VendorPage and have a
>> properties file with keys
>> pattern= Zip
>> I am using the pattern validator to validate zip code so i want the message
>> to say ... is not a valid zip
>> I dont know if i am doing smoe thing wrong or missing some thing but i can
>> not get the message to display correctly.
>> Thanks
>
> Create file VendorPage.properties and put it next to VendorPage.html
> (make sure it is copied next to VendorPage.class at build time) and
> put a line like:
> pattern = ${label} is not a valid zip
>
>
>>
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Customizing-Error-Validation-messages-tp4038582p4038582.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
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to