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;
  }
Пример #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);
  }