Thiago, thanks, so I make no change to the code, but internally I'm happy ;)
And about moving logic... maybe I can...
${ getViewPosition(position) }
and in .java I do:
getViewPosition(int aNumber) {
return aNumber + 1;
}
I mean... maybe it's better because I don't override getter of a
propert
Em Fri, 04 Sep 2009 14:33:16 -0300, Alfonso Quiroga
escreveu:
public int getPosition() {
return position + 1;
}
This is not a hack: it's moving logic from the template to a class, and
that's a Good Thing. :)
--
Thiago H. de Paula Figueiredo
Independent Java consul
Hi! I am looping and I need the "index" position, but index starts in
0, and I want to show it in screen starting in 1, so... I have:
${position}
That works but starts in 0 I tried ${position + 1} but didn't work
The only hack I found, is de