On Mon, Oct 27, 2008 at 11:26 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > Does T5 support arguments to methods in expressions? > > e.g. something like the argument to the inner loop source below: > > > <tr t:type="loop" t:source="promotedRows" value="var:index"> > <td t:type="loop" t:source="promotedCols(${var:index})">item > ${var:index}</td>
I expect to revamp the property expression language in 5.1 (or perhaps 5.2, depending on priorities) to support this, almost. Unless I get very clever, I don't think we'll see ${var:index} allowed ... you'll have to use a real property, not a var: psuedo-property, but then it will look lke: t:source="promotedCols(index)" I also expect to add some ternary operator (test ? expr1 : expr2), a "smart" dereference ("[ expr ]" that can be applied to arrays, Lists and Maps), and maybe some simple filtering / projection operators, along with method invocation. > </tr> > > Is this allowed? I ask because the above code does not throw an exception, > however the promotedCols(int) method is NEVER invoked although the inner > loop iterates exactly ONCE (although it should be more times). > > Is this behaviour is a bug? > > Thanks, > Joel > > -- > SU3 Analytics Ltd > 61b Oxford Gardens > W10 5UJ > London > > Tel: +44 20 8960 2634 > Mob: +44 75 2501 0825 > www.su3analytics.com > > SU3 Analytics Ltd is a company registered in England and Wales under company > number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ, > United Kingdom. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]