Beispiel #1
0
  public AbstractModel(Class<T> beanModelClass) {
    // TODO: could read the .class from the generic parameter?
    // TODO: should get this from an injected provider in the future if ever
    // go the GWT-way since it this specific implementation won't work with
    // GWT
    provider = new ReflectionBeanModelProvider<T>(beanModelClass);

    // auto-commit so models can be bound to other models and are
    // automatically updated instantly
    provider.setAutoCommit(true);

    validationTree.add(getFormValidator());
    validationTree.addValidationHandler(validationMonitor);
  }