commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: digester: can SetPropertyRule warn on not found properties?
Date Sun, 12 Sep 2004 17:27:51 GMT
On 8 Sep 2004, at 00:03, Craig McClanahan wrote:

<snip>

> If throwing exceptions in the setProperties() or copyProperties()
> methods are ever implemented in BeanUtils, this is going to have to be
> a feature that can be turned on and off, and default to off (for
> backwards compatibility).  It will totally break existing uses of
> these methods (such as the way that Struts uses them to populate form
> beans), where there is implicit reliance on the current silence when
> an HTTP parameter has a specified value but there's no corresponding
> form bean property.

+1

this request seems to have come up fairly regularly, so maybe it's time 
to do something about it. i think the right approach (IIRC this was 
suggested by james a long while ago) would be to add a hook for 
subclasses allowing them to vary the response to an error.

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message