commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Arnold <geoff...@geoffreyarnold.com>
Subject Re: [Jelly] Tag attributes corresponding to arrays
Date Tue, 11 May 2004 14:58:29 GMT


dion_gillard@multitask.com.au wrote:

>I'm a bit wary of suddenly Jelly converting strings with commas in them 
>into arrays....
>  
>

To be clear, the conversion _only_ happens when the setter method of the 
target object accepts an array argument.  And how the conversion is 
performed can be controlled by (un)registering an appropriate 
org.apache.commons.beanutils.Converter.  Perhaps a compromise would be 
to register a compatibility converter in Jelly which by default mimics 
the current conversion behavior.

The main point is that in its current form, one _cannot_ control this 
conversion in Jelly as the behavior is hard-coded in the 
BeanUtils.setProperty(Object,String,Object) method.

Geoff.


---------------------------------------------------------------------
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