Hello,

I have a StringResourceModel in a parent abstract class of all pages.

IModel<String> titleModel = new StringResourceModel("contentTitle", getModel());

where "contentTitle" is a property specified for every child page in specific
property files and getModel() returns a chain of a CompoundPropertyModel and a
LoadableDetachableModel.

If I simple use it, it works:

add(new Label("pageTitle", titleModel));


But if I apply a lambda expression to it (for example):

add(new Label("pageTitle", titleModel.map(String::trim)));

I have an exception.:

java.util.MissingResourceException: Unable to find property: 'contentTitle'.
Locale: null, style: null


Why it happens?




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

Reply via email to