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:
                <t:loop source="mySource" index="position">
                    ${position}
                </t:loop>
That works but starts in 0.... I tried ${position + 1} but didn't work
The only hack I found, is declaring a special getter of "position" in
the page, like this:
      public int getPosition() {
              return position + 1;
     }

is this the real solution? thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to