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 15:15:12 GMT
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
--------------------------------------------------------------------

Mime
View raw message