Hi there,

I have the following situation:


MyClass extends Panel {

   private IModel<String> someModel;

   MyClass(String id) {
      super(id);
      add(new Label(„label“, PropertyModel.of(this, „someModel“));
   }

}


But instead of displaying someModel’s modelObject, the Label displays 
someModel.toString(), which is how PropertyResolver is implemented (does not 
check if value instance IModel …). Is there a best practice how to handle such 
constructs?

Cheers,
   Tom

Reply via email to