On 2000.11.24 16:02:15 +0000 Jason van Zyl wrote:
> Hmmm. In my example I had the following:
> 
> url.case.folding = lower
> 
> and having a form field with the name TITLE still wasn't
> working i.e. the getTitle() wasn't being invoked.

I assume you mean setTitle() :-)

> I basically just wanted to clarify that if you
> have a subclass of BaseObject with a getTitle()
> method then the corresponding form name must
> be "title" and can't be "TITLE" if you want
> ParameterParser.setProperties(object) to work.

No, when I wrote setProperties I designed it so the case of the form name
wouldn't matter. setProperties iterates through the properties of the
object as returned by the Introspector. It then determines if that property
has a matching form field by calling PP.containsKey which should perform
the same case transformation on the property name as was performed on the
form name when the parameters were parsed.

Of course if you turn off case transformations by setting
url.case.folding=none then the form name's case must match the case of the
property name as returned by introspection. The javadoc for setProperties
doesn't note this because the url.case.folding property didn't exist at the
time.

If caseless matching of property names is not working with
url.case.folding=lower then there's something going wrong - it used to work
before the url.case.folding patch.

-- 
Sean Legassick
[EMAIL PROTECTED]
                                  homo sum: humani nihil a me alienum puto


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to