RE: An open source git server written with Wicket
Wow, that looks amazing! Which component are you using to display the source code - it looks very nice. > -Original Message- > From: Robin Shen [mailto:ro...@pmease.com] > Sent: Monday, 7 January 2019 10:25 AM > To: users@wicket.apache.org > Subject: An open source git server written with Wicket > > Dear wicket user, > > > I'd like to introduce an open source project - OneDev. It is a self-hosted > git server with unique features. The technology stack used is Wicket + > JQuery. Welcome any contributions. > > > Learn more at https://onedev.io > > > Regards > > Robin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internationalization
Aha the index! Thanks On Sun, Jan 27, 2019 at 11:21 PM Martin Grigorov wrote: > Hi, > > if MyWicketApplication is the name of your application class then all you > need to do is to create MyWicketApplication.properties next to it and it > will be used with priority overthe defaults. > > If this is not the case then use .add(0, new Bundle) and it will be > consulted first. > > > On Mon, Jan 28, 2019, 00:10 Zbynek Vavros > > Hi, > > > > I'm trying to provide custom properties file for Wicket application. > > > > I was going to use BundleStringResourceLoader using > > > > getResourceSettings().getStringResourceLoaders().add(new > > BundleStringResourceLoader("MyWicketApplication")). > > > > Then I replaced "Required" message with my message it is not used. > > After debugging into org.apache.wicket.Localizer I can see it iterates > > through org.apache.wicket.resource.loader.IStringResourceLoader in this > > order: > > > > ComponentStringResourceLoader > > PackageStringResourceLoader > > ClassStringResourceLoader > > ValidatorStringResourceLoader > > InitializerStringResourceLoader > > BundleStringResourceLoader > > > > So the "Required" message is loaded from InitializerStringResourceLoader > > before my BundleStringResourceLoader is hit. > > > > How to properly provide Wicket with custom bundle containing ALL types of > > messages? > > > > Thanks, > > Zbynek > > >
Re: Internationalization
Hi, if MyWicketApplication is the name of your application class then all you need to do is to create MyWicketApplication.properties next to it and it will be used with priority overthe defaults. If this is not the case then use .add(0, new Bundle) and it will be consulted first. On Mon, Jan 28, 2019, 00:10 Zbynek Vavros Hi, > > I'm trying to provide custom properties file for Wicket application. > > I was going to use BundleStringResourceLoader using > > getResourceSettings().getStringResourceLoaders().add(new > BundleStringResourceLoader("MyWicketApplication")). > > Then I replaced "Required" message with my message it is not used. > After debugging into org.apache.wicket.Localizer I can see it iterates > through org.apache.wicket.resource.loader.IStringResourceLoader in this > order: > > ComponentStringResourceLoader > PackageStringResourceLoader > ClassStringResourceLoader > ValidatorStringResourceLoader > InitializerStringResourceLoader > BundleStringResourceLoader > > So the "Required" message is loaded from InitializerStringResourceLoader > before my BundleStringResourceLoader is hit. > > How to properly provide Wicket with custom bundle containing ALL types of > messages? > > Thanks, > Zbynek >
Internationalization
Hi, I'm trying to provide custom properties file for Wicket application. I was going to use BundleStringResourceLoader using getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader("MyWicketApplication")). Then I replaced "Required" message with my message it is not used. After debugging into org.apache.wicket.Localizer I can see it iterates through org.apache.wicket.resource.loader.IStringResourceLoader in this order: ComponentStringResourceLoader PackageStringResourceLoader ClassStringResourceLoader ValidatorStringResourceLoader InitializerStringResourceLoader BundleStringResourceLoader So the "Required" message is loaded from InitializerStringResourceLoader before my BundleStringResourceLoader is hit. How to properly provide Wicket with custom bundle containing ALL types of messages? Thanks, Zbynek