Hi,
currently FormComponent#reportRequiredError() is a private method. Could
it be made protected to allow users to override the default implementation?
My use case is that I have a custom implementation of TextField that is
language specific. Instead of showing the user "Field X is required" I
want to display "Field X in language L is required". Currently I have to
override FormComponent#validate() and inline validateRequired() there
just to be able to provide my own implementation of
reportRequiredError(), which is quite cumbersome and brittle.
But if there's another, better solution, which doesn't need to make the
method protected, I'd be happy to hear it as well.
Thanks
Christoph
- Can FormComponent#reportRequiredError() be made protected... Christoph Leiter
-