cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: [cforms] settable Field 'required' property?
Date Wed, 09 Nov 2005 07:05:31 GMT
Mark Lundquist wrote:
> Hi,
> Currently, Field'isRequired() delegates to its FieldDefinition.  How 
> badly would it break everything :-) if instead there were an instance 
> variable that's (a) initialized from 
> getFieldDefinition().isRequired(), and then (b) settable via a 
> setRequired() method?
> Sometimes you just really want to say
>     someWidget.required = false;
> in flowscript.  Why shouldn't that be possible?

Because nobody really asked for it so clearly :-)

I've seen several requests also to be able to change a field's label. 
That one is a bit more complicated in Ajax scenarios because the label 
and field are handled separately in the form template. But certainly doable!


Sylvain Wallez                        Anyware Technologies
Apache Software Foundation Member     Research & Technology Director

View raw message