Latest Post

iPhone 3.0 bugs

So here are details of two bugs I’ve found so far; In the Camera application in the bottom left corner is (I guess) your latest picture in your Camera Roll except the picture I’m being shown is about 6 pictures ago and not updating. I sync my iPhone to my iMac at home but as is often the...

Read More

what i learnt yesterday: [ ] in CFC return types

Posted by johnb | Posted in Uncategorized | Posted on 26-09-2007

Tags:

2

After Sean learnt something earlier this week it was my turn. After playing around for the first time with the Eclipse CF Wizards I was looking at some of the code it generated in particular the CFCs. In some of the gateways i saw stuff like returntype=”myapp.somebean[]” – I’d never seen this syntax before and had always used a returntype of array but turns out i’ve been missing a treat for returning an array of objects of a certain type!

Comments (2)

Is this validating that the return object is BOTH an array and that each index contains an object of that type? If so, that seems like a rather expensive validation.

I always thought this one was a special directive for returning complex types (arrays of objects) in Web Services and such? Does it really serve any other purpose?

Write a comment