Howdy,
The value models returned by the BeanModelProvider all have a
`ValueModel<Boolean> getDirtyModel()` method that you can call.
Currently there's no way to get at this directly from a FieldModel so
you'll have to do it manually.
i.e. instead of:
fieldOfType(String.class).boundTo(provider, "propertyName");
you'll need to go:
BeanPropertyValueModel<String> beanModel =
provider.getValueModel("propertyName", String.class);
ValueModel<Boolean> dirty = beanModel.getDirtyModel();
fieldOfType(String.class).boundTo(beanModel);
Which is unfortunately a bit ugly.
Feel free to raise an issue for this with an example of how you're
using it. It might be worth while adding a `ValueModel<Boolean>
FieldModel.dirty()` that delegates to the underlying value model if it
implements something like `HasDirtyModel`.
Cheers
Andrew