Re: Shared message property file not working on 1.4
How was this CarMessages.properties shared by the two classes? If your car CarListPage uses CarDetail placing them on CarListPage should be enough, AFAIK. Additionally on 1.4.X I think package level resource files are supported. Ernesto On Thu, Nov 25, 2010 at 10:07 AM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi, here's a new episode of my Wicket upgrade saga. Hope I'm not disturbing anyone :D In my application developed with Wicket 1.3.6 I have a CarMessages.properties file which was sort of shared by two classes CarListPage and CarDetail, since they use the same messages. When I upgraded to 1.4 all the labels in CarMessages.properties are not resolved anymore. I solved the problem by creating two new properties file CarListPage.properties and CarDetail.properties and it all works fine, but this is kind of awful because I need to duplicate the messages in these two files. Is there any other way I can workaround this problem? Thanks, Andrea -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-message-property-file-not-working-on-1-4-tp3058612p3058612.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: Shared message property file not working on 1.4
Hi, Martin Grigorov-4 wrote: What is the relation between CarMessages.java (if there is such file) and CarDetail.java ? Does the one extend/implement the other ? On Thu, Nov 25, 2010 at 10:11 AM, adam.gibbons adam.s.gibb...@gmail.comwrote: There's no CarMessages.java, just the two I mentioned, which are not apparently related (that surprieses me a bit) CarDetail extends a generic DetailPanel class (which extends Wicket's panel), while CarListPage extends a genric ListPage...so apparently no relation between the two. I wonder how they could work with just the Carmessages.properties resource...anyway. How can I use package resource? Is there a convention to do it in 1.4? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-message-property-file-not-working-on-1-4-tp3058612p3058686.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: Shared message property file not working on 1.4
Another possibility is that had your own IStringResourceLoader registered via getResourceSettings().addStringResourceLoader(new MyResourceLoader())? Ernesto On Thu, Nov 25, 2010 at 10:57 AM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi, Martin Grigorov-4 wrote: What is the relation between CarMessages.java (if there is such file) and CarDetail.java ? Does the one extend/implement the other ? On Thu, Nov 25, 2010 at 10:11 AM, adam.gibbons adam.s.gibb...@gmail.comwrote: There's no CarMessages.java, just the two I mentioned, which are not apparently related (that surprieses me a bit) CarDetail extends a generic DetailPanel class (which extends Wicket's panel), while CarListPage extends a genric ListPage...so apparently no relation between the two. I wonder how they could work with just the Carmessages.properties resource...anyway. How can I use package resource? Is there a convention to do it in 1.4? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-message-property-file-not-working-on-1-4-tp3058612p3058686.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: Shared message property file not working on 1.4
you can use com/example/something/package.properties or MyApplication.properties (global) On Thu, Nov 25, 2010 at 11:12 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Another possibility is that had your own IStringResourceLoader registered via getResourceSettings().addStringResourceLoader(new MyResourceLoader())? Ernesto On Thu, Nov 25, 2010 at 10:57 AM, andrea.castello a.castello.pronet...@gmail.com wrote: Hi, Martin Grigorov-4 wrote: What is the relation between CarMessages.java (if there is such file) and CarDetail.java ? Does the one extend/implement the other ? On Thu, Nov 25, 2010 at 10:11 AM, adam.gibbons adam.s.gibb...@gmail.comwrote: There's no CarMessages.java, just the two I mentioned, which are not apparently related (that surprieses me a bit) CarDetail extends a generic DetailPanel class (which extends Wicket's panel), while CarListPage extends a genric ListPage...so apparently no relation between the two. I wonder how they could work with just the Carmessages.properties resource...anyway. How can I use package resource? Is there a convention to do it in 1.4? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shared-message-property-file-not-working-on-1-4-tp3058612p3058686.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