Re: [Wicket-user] Resource Bundle Best Practice
A nice little extra thing is that those files are loaded through our normal resource loading mechanism, meaning that if you're in development mode and make changes, they will be reloaded. Eelco On 10/7/06, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Craigdd, > > Wicket surprised me with a very advanced resource loading concept. You > can define .properties files for any component and then there is a > clever searching algorithm that moves up in the component hierarchy. In > practice you can define labels on any component, any override those in > any place where you use the component (both when you add it to a > container, or when you subclass the component). BTW, this is not > different from how the html templates are found. > > The book Pro Wicket has an extensive explanation on this subject. > > Regards, > Erik. > > craigdd schreef: > > As I'm evaluating wicket I'm not seeing many examples of using resource > > bundles. > > > > I was wondering how, or what the best practices of using resource bundles > > with wicket was. I'm primarily interested on how you setup resource bundles > > through wicket, how to use resource bundles in html pages for things like > > labels, and how to use resource bundles within wicket objects such as forms > > to display back error messages gotten from resource bundles. > > > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resource Bundle Best Practice
Craigdd, Wicket surprised me with a very advanced resource loading concept. You can define .properties files for any component and then there is a clever searching algorithm that moves up in the component hierarchy. In practice you can define labels on any component, any override those in any place where you use the component (both when you add it to a container, or when you subclass the component). BTW, this is not different from how the html templates are found. The book Pro Wicket has an extensive explanation on this subject. Regards, Erik. craigdd schreef: > As I'm evaluating wicket I'm not seeing many examples of using resource > bundles. > > I was wondering how, or what the best practices of using resource bundles > with wicket was. I'm primarily interested on how you setup resource bundles > through wicket, how to use resource bundles in html pages for things like > labels, and how to use resource bundles within wicket objects such as forms > to display back error messages gotten from resource bundles. > -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resource Bundle Best Practice
besides a html file you could define youre .properties (with the same name)and the use wicket:message or the Localizer in the code to get the text for the key.johanOn 10/7/06, craigdd <[EMAIL PROTECTED]> wrote: As I'm evaluating wicket I'm not seeing many examples of using resourcebundles.I was wondering how, or what the best practices of using resource bundleswith wicket was. I'm primarily interested on how you setup resource bundles through wicket, how to use resource bundles in html pages for things likelabels, and how to use resource bundles within wicket objects such as formsto display back error messages gotten from resource bundles. --View this message in context: http://www.nabble.com/Resource-Bundle-Best-Practice-tf2398440.html#a6688328Sent from the Wicket - User mailing list archive at Nabble.com.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user