Carsten Ziegeler wrote:
Reinhard Poetz wrote:

Carsten Ziegeler wrote:


Afaik, there is no way to check in java if a widget is valid.
Does anyone care if I add a isValid() method?

The validate() method can't be used as that method starts the validation
process.


Can't you just call getValidationError() and if it returns null you know that there is no error?


Hmm, Widget does not have this method or am I wrong?

no, but the interface ValidationErrorAware has and it is implemented by most model implementations.

What's your usecase?


--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

Reply via email to