Re: newbie question about loop

2009-09-04 Thread Alfonso Quiroga
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

Re: newbie question about loop

2009-09-04 Thread Thiago H. de Paula Figueiredo
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

newbie question about loop

2009-09-04 Thread Alfonso Quiroga
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