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 property (position) On Fri, Sep 4, 2009 at 2:37 PM, Thiago H. de Paula Figueiredo<thiag...@gmail.com> wrote: > Em Fri, 04 Sep 2009 14:33:16 -0300, Alfonso Quiroga <alfonsose...@gmail.com> > 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 consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org