Em Mon, 21 Jul 2008 11:22:31 -0300, margi <[EMAIL PROTECTED]> escreveu:
retrieve one element whose index I know. In T4 I'd invoke
myList.getItem(index). I've tried ${myList.getItem(index)}, b ut didn't
work. I'd appreciate if someone can tell me what I miss or the way to do
Try creating a getter in your page class:
public Item getItem() {
return myList.getItem(index);
}
This has the upside of making the template simpler and your application
more testable, as you almost don't have logic in templates, having them in
Java code instead.
I used T4 before and I really don't miss OGNL in T5. But it is also a
matter of personal choice, obviously.
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]