cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: [CForms] Add isValid() to a widget?
Date Thu, 07 Jul 2005 14:19:28 GMT
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?

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

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

Mime
View raw message