This should work.
Make sure MyPage.properties goes next to .class after compiling.

On Mon, Oct 22, 2012 at 6:35 PM, Dmitriy Neretin
<dmitriy.nere...@googlemail.com> wrote:
> Hello everybody,
> I have a little problem. I use in my webpages ressource models. For example:
> public class MyPage{
>              ...
>  add(new Label("id", new ResourceModel("myResourceKey"));
>              ...
> I also have a MyPage.properties where I placed following
> String: myResourceKey=Hello World! But I get whole the time Runtime
> Exceptions Resource not fount etc...
> When I put the string above in the MyApplication.properties - no problems...
> First question is: why is it so? Why does wicket can't find my resource key
> in the apropriate property but in the *aplication.properties?
> Second question is: Is it possible to change this resolution way? I have
> already tried the StringResourceModel but with no success...
> Please Help!
> Regards,
> Dmitriy

Martin Grigorov
Training, Consulting, Development

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to