This is true. I didn't mean to imply that primitives get squeezed as
primitives, but that the framework handles primitives without problem.
Jamie
On May 26, 2005, at 6:27 AM, Erik Hatcher wrote:
On May 25, 2005, at 10:54 PM, Jamie Orchard-Hays wrote:
Also, if you dig into the tapestry code and look at the sqeeze
adaptors, you'll see what Tapestry sqeezes automatically. I can't
think of them all off the top of my head, but primitives and Strings
and Integers certainly apply.
Jamie, I respectfully must correct you for the sake of accuracy.
Everything that gets squeezed is an Object - primitives are converted
before getting to ISqueezeAdaptor as you can tell from the interface:
<http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/util/
io/ISqueezeAdaptor.html>
Erik
On May 25, 2005, at 9:03 PM, Erik Hatcher wrote:
On May 25, 2005, at 7:06 PM, Edward Scanzano wrote:
Thanks Jamie,
That is really good advice. The variable you put into
a parameter must be an object (Integer vs int). Am I
right about this? It would be ideal if I use the
Foreach index.
OGNL will make the conversion automatically for you, so it is fine
to use any primitive type as a parameter as well.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]