If a kotlin's model has a field : class MyModel { private val theValue: Double get() { return 1.0 } }
and in the wicket page : new PropertyModel(model , "theValue") It will fail : *WicketRuntimeException: Property could not be resolved for class: class MyModel expression: theValue* The solution : remove the private modifier : class MyModel { val theValue: Double get() { return 1.0 } } Is there any way to get around this (keep the private modifier) ? (wicket 7.9.0 , Kotlin 1.2)