public BeanModel getMyModel() {
    BeanModel myModel =
        _beanModelSource.createDisplayModel(User.class, _componentResources.getMessages());

    myModel.include("firstName", "lastName");
    myModel.get("firstName").sortable(false);
    myModel.get("lastName").label("Surname");
    return myModel;
  }
Exemple #2
0
  void setupRender() {

    if (_myModel == null) {
      _myModel = _beanModelSource.createDisplayModel(User.class, _componentResources.getMessages());
      _myModel.add("action", null);
      _myModel.include("firstName", "lastName", "action");
      _myModel.get("firstName").sortable(false);
      _myModel.get("lastName").label("Surname");
    }
    users = createUsers(50);
  }
Exemple #3
0
 @SuppressWarnings("unchecked")
 public BeanModel getModel() {
   this.model = beanModelSource.createDisplayModel(Celebrity.class, resources.getMessages());
   this.model.get("firstName").sortable(false);
   return model;
 }