cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [CForms] empty field of type integer
Date Thu, 22 Jul 2004 08:21:00 GMT
On Thu, 2004-07-22 at 10:10, mathias.wiegard@student.uni-ulm.de wrote:
> Hi,
> I'm trying to use a cforms-field of type integer in combination with an
> appropriate converter. I don't want this field to be required so an empty value
> could be possible. But if this happens, the convertor will throw an exception
> that it cannot convert an empty value to an integer...
> Therefore my question is: is there any "standard" (implemented) solution for
> this problem (I didn't find something useful in the examples; they're all using
> 'required' integer fields)?

Strange, in case the value is empty the convertor shouldn't be called in
the first place. How exactly did you achieve this and what version of
Cocoon are you using?

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message