Got it! Thank you!
Hi Andrea,

>I think we could remove single model parameter from constructors to make PropertyResourceModel lighter

then you'd have to prefix each property expression, even when only one model is used:

    new PropertyResourceModel("key", this, MiniMap.of("foo", fooModel));

    key=This is message ${foo.bar}.

I'd prefer to keep this case simpler for the user (as it is with StringResourceModel):

    new PropertyResourceModel("key", this, fooModel);

    key=This is message ${bar}.

Have fun
Sven

Reply via email to