RE: Arithemtic operations in tml file

2011-04-30 Thread Amr Mohamed Mahmoud Hassanien
It did work, thanks. :) -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 30 أبريل, 2011 08:46 م To: Tapestry users; r...@su3analytics.com Subject: Re: Arithemtic operations in tml file On Sat, Apr 30, 2011 at 8:00 AM, Richard Hill wrote: > > You need to

Re: Arithemtic operations in tml file

2011-04-30 Thread Howard Lewis Ship
On Sat, Apr 30, 2011 at 8:00 AM, Richard Hill wrote: > > You need to do the addition in java, something like: > > public String getIndexValue() { >  return "" + (count + 1); > } > or just: public int getIndexValue() { return count + 1; } Tapestry will quite happily do the int-to-string coercion

Re: Arithemtic operations in tml file

2011-04-30 Thread Richard Hill
You need to do the addition in java, something like: public String getIndexValue() { return "" + (count + 1); } and in .tml ${indexValue} returning an int will prob work too. On Sat, 2011-04-30 at 18:56 +0400, Amr Mohamed Mahmoud Hassanien wrote: > Hi All, > > In the Code below, I want t

Arithemtic operations in tml file

2011-04-30 Thread Amr Mohamed Mahmoud Hassanien
Hi All, In the Code below, I want to type the order of the images starting from 1, as you know the index of the loop component starts from zero. Now the expression ${count+1} does not work either ${count}. Do you know any alternative? ${count}+1