Yeah, sure you can. Sorry, I should have checked it first before
writing. Somehow, I've missed IStringResourceLoader.
Thanks.
-Matej
Igor Vaynberg wrote:
I havent really looked into this deeply, but cant you roll your own
implementation of IStringResourceLoader that works exactly how you want and
add it into the ApplicationSettings?
Igor
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Matej Knopp
Sent: Thursday, July 21, 2005 1:06 PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Custom message provider?
Hi,
there's a big discussion today about customizing validator
messages/their resource keys. Would it be possible in future
to decouple the messages from property files? I think
resource bundle is a good thing, when you are using latin 1.
For all other encoding is a pain, because you have to escape
each foreign character. In my country, we are using latin 2
and a lot of characters not found in latin1. So using
property files for this feels really cumbersome.
Would id be possible to have an interface with function
similiar to this?
interface IMessageProvider
{
String getString(Component component, String path, Locale
locale); }
With a reasonable default (caching) implementation that would
use property files?
And I one could use different implementation (with xml or whatever)
-Matej
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration
Strategies from IBM. Find simple to follow Roadmaps,
straightforward articles, informative Webcasts and more! Get
everything you need to get up to speed, fast.
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user