> > Well , it is in fact a my custom MyModel extends Model , > besides getCity() , setCity(...) , there are still other getter/setters out > there. > That's why I wrote PropertyModel(model , "city") there. >
But if a PropertyModel sees a IModel as its object then it will call getObject() and on that it will evaluate "city" So what is getObject() returning MyModel?? You shouldnt mix these things. if you want the city object from a model it should go like this: mymodel.getObject().getCity() not mymodel.getCity() johan
