On 05.03.2009, at 10:49, Kaspar Fischer wrote:
I have a form component to select items and would like to add lower and upper constraints on the number of items that need to be set by the user. I added setMin() and setMax() methods and would like to override setRequired() to call setMin(1). However, FormComponent.setRequired is final. Is there a particular reason for this?
On second thoughts I think I am mixing two concerns her: requiring input and validation. I guess in my case, "required" is meaningless (the list of selected items should not be null). And the constraint on the number of items should be added via a validator.
Kaspar --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
