Creates a new model used for editting the indicated bean class. The model will represent all read/write properties of the bean. The order of the properties is defined by the {@link Order} annotation on the getter or setter methods. The labels for the properties arederived from the property names, but if the component's message catalog has keys of the form
propertyName-label
, then those will be used instead.
Models are mutable, so they are not cached, a fresh instance is created each time.
@param beanClass class of object to be editted
@param filterReadOnlyProperties if true, then properties that are read-only will be skipped (leaving only read-write properties). If false, then both read-only and read-write properties will be included.
@param resources used when resolving resources, especially component messages (used to access labels)
@return a model