Re: How to change the properties file location in Wicket
Please change the sentence "so i want Wicket to load the "wicket:messag" in the following order: " to "so i want Wicket to load the "wicket:messag" from the following files:" Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4649607.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
Re: How to change the properties file location in Wicket
Hi Tom, my usecase is: I wan't wicket to search for the "key=value" in particular order, i.e: let's say i have those propertis files: 1. ...\java\com\mycompany*\external\*WicketApplication_en.properties 2. ...\java\com\mycompany\WicketApplication_en.properties 3. ...\java\com\mycompany*\external\*WicketApplication.properties 4. ...\java\com\mycompany\WicketApplication.properties so i want Wicket to load the "wicket:messag" in the following order: -->should be load from ...\java\com\mycompany\WicketApplication_en.properties -->should be load from ...\java\com\mycompany*\external\*WicketApplication_en.properties -->should be load from ...\java\com\mycompany\WicketApplication.properties -->should be load from ...\java\com\mycompany\WicketApplication_en.properties any idea? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4649606.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
Re: How to change the properties file location in Wicket
See org.apache.wicket.resource.loader.BundleStringResourceLoader Or create your own impl of org.apache.wicket.resource.loader.IStringResourceLoader and register it with : app.getStringResourceLoaders().add(yours) On Sun, May 20, 2012 at 6:47 PM, oliver.stef wrote: > Hi Martin, > > Thank you for your help, but my problem is that i need to put my properties > file in folder that is not next to the HTML and Java files. > > i need to change the look-up algorithm of wicket. > > Any body know how to do it? > > Thanks! > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.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
Re: How to change the properties file location in Wicket
Why do you need to change that? What is your usecase? -Tom On 20.05.2012 at 18:47 oliver.stef wrote: > Hi Martin, > > Thank you for your help, but my problem is that i need to put my properties > file in folder that is not next to the HTML and Java files. > > i need to change the look-up algorithm of wicket. > > Any body know how to do it? > > Thanks! > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to change the properties file location in Wicket
Hi Martin, Thank you for your help, but my problem is that i need to put my properties file in folder that is not next to the HTML and Java files. i need to change the look-up algorithm of wicket. Any body know how to do it? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.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
Re: How to change the properties file location in Wicket
Hi, Create MyApplication.properties and put it next to MyApplication.java. On Thu, May 17, 2012 at 2:27 PM, oliver.stef wrote: > Hi all, > > I just start using Wicket and I have a big problem! > > I have a few sources files (Page (folder) with the files: Page1.html, > Page1.java, Page1.properties, Page2(another folder) with the files: > Page2.html, Page2.java, Page2.properties). > > now, my problem is that i want to merge all the *.properties file into one > file (one *.properties file) that will be located in the src folder, or > under the root folder. > > I don't know how to do it. i tried to read about "IResourceStream" but > still, i didn't understand nothing... :( > > can someone help me with it? > > Thanks! > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901.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
How to change the properties file location in Wicket
Hi all, I just start using Wicket and I have a big problem! I have a few sources files (Page (folder) with the files: Page1.html, Page1.java, Page1.properties, Page2(another folder) with the files: Page2.html, Page2.java, Page2.properties). now, my problem is that i want to merge all the *.properties file into one file (one *.properties file) that will be located in the src folder, or under the root folder. I don't know how to do it. i tried to read about "IResourceStream" but still, i didn't understand nothing... :( can someone help me with it? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901.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