Interestingly, it appears you don't need a getter AND a setter.  Just one or
the other seems to work fine.

Is there anyway to do this with annotations? 

-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 26, 2006 3:28 PM
To: Tapestry users
Subject: Re: For component index variable

No you don't need a getter/setter for the index value in your class (unless
you have a pure class with no .page spec?) ...If you just define the index
property in the .page spec file tapestry will make it "just work" for you.
(aka add the getter/setters for you automatically at runtime)

On 1/26/06, Aj Gregory <[EMAIL PROTECTED]> wrote:
>
> but then you have to create a get/setIndex() in your java class 
> (right?) which I wanted to avoid since I don't need to access the 
> value in the class just the html...
>
> -Aj
>
> Chris Chiappone wrote:
> > I believe the @For has that ie. <span jwcid="@For" index=ognl:index"
> .../>
> >
> > ~chris
> >
> > On 1/26/06, Aj Gregory <[EMAIL PROTECTED]> wrote:
> >
> >> Is there a way to specify some kind of temporary variable in the 
> >> index parameter of the For component so I can pass it to the 
> >> components
> inside
> >> the for loop without declaring the variable in the backing page class?
> >>
> >> -Aj
> >>
> >> -------------------------------------------------------------------
> >> -- To unsubscribe, e-mail: 
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> > --
> > ~chris
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > [EMAIL PROTECTED]
> > For additional commands, e-mail: 
> > [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to