Apologies Sergio. Hi Josh,
But isn't calling a function in a template awkward ? Shouldn't there be a better way of doing it ? regards Taha On Sat, Dec 25, 2010 at 11:56 PM, Josh Canfield <joshcanfi...@gmail.com>wrote: > Try foo() > On Dec 25, 2010 9:26 AM, "Sergio Esteves" <sergio.este...@xpand-it.com> > wrote: > > I'm just doing this inside the loop body: "${foo}" and the method foo > > isn't called if the returning type is void. It's just that. I wonder if > > there is another way, but, if not, a workaround is to return a null > object. > > > > Regards. > > > > On 25-12-2010 17:16, Taha Hafeez wrote: > >> Sorry! I didn't see 'AJAXFORM' :). Can you share the code ? > >> > >> regards > >> Taha > >> > >> On Sat, Dec 25, 2010 at 10:39 PM, Sergio Esteves< > >> sergio.este...@xpand-it.com> wrote: > >> > >>> But for what I want to do is easier to use the component ajaxformloop, > as > >>> I will need to add and remove rows. > >>> > >>> > >>> On 25-12-2010 17:07, Taha Hafeez wrote: > >>> > >>> Loop already has an index parameter. Can't you use that > >>> > >>> > >>> > > http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html > >>> > >>> regards > >>> Taha > >>> > >>> > >>> On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves< > >>> sergio.este...@xpand-it.com> wrote: > >>> > >>>> I'm using an ajaxformloop and I'm trying to simulate the index of the > >>>> component loop, without making a new component. > >>>> So, in each iteration of the loop I increment a variable that I use > after > >>>> in the components within the loop. > >>>> > >>>> Regards. > >>>> > >>>> > >>>> On 25-12-2010 16:59, Taha Hafeez wrote: > >>>> > >>>>> You can't in T5. May I ask what are you trying to do ? > >>>>> > >>>>> regards > >>>>> Taha > >>>>> > >>>>> > >>>>> On Sat, Dec 25, 2010 at 10:24 PM, Sergio Esteves< > >>>>> sergio.este...@xpand-it.com> wrote: > >>>>> > >>>>> Hi, > >>>>>> I have tried to do this: > >>>>>> tml: > >>>>>> «... ${foo} ...» > >>>>>> java: > >>>>>> «... public void foo() { count++; } ...» (I tried with "void > getFoo()" > >>>>>> too) > >>>>>> > >>>>>> But without success. The thing is the returning type of void. > >>>>>> > >>>>>> Thanks. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > --------------------------------------------------------------------- > >>>>>> 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 > > >