Yes - use NameOfYourApplicationClass.properties, in the same package / folder 
as the class.


Wicket will search up the hierarchy -
YourPanel.properties
YourCoolPage.properties (page that panel is in)
YourBaseWebPage.properties (the superclass that you may use for a base class of 
all your pages (to share common layout / functionality))
YourApp.properties

Of course, it'll also search with the appropriate extension for i18n if you 
have other language files in their and are usin a different locale.

Jeremy Thomerson
-- sent from a wireless device

-----Original Message-----
From: "Prashant Khanal" <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: 6/13/07 12:14 AM
Subject: Re: [Wicket-user] how to provide custom messages for validation

Hey,

I found the answer. I just added the properties file in the name of the class 
and provide my own custom message. Can i configure a global properties file 
instead of properties file for every class.

----- Original Message ----
From: Prashant Khanal <[EMAIL PROTECTED]>
To: wicket mail list <wicket-user@lists.sourceforge.net>
Sent: Wednesday, June 13, 2007 10:45:44 AM
Subject: [Wicket-user] how to provide custom messages for validation

Hello all,

For a text field i have used NumeberValidator.minimum(1) so that validation 
error will be thrown when user enters 0 or less. How can i override the 
validation error message ( '0' must be greater than '1') ?
Is there any way to provide custom valdiation message?

Thanks in advance




       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to