You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Antonio Fernández - STAR Málaga <an...@star-group.net> on 2008/07/16 07:53:55 UTC

T5 - T5Components - Loop Binding Error

1) I´m trying with a basic example of the loop binding:

... the template ...@
<ul>
   <li t:type="Loop" source="loop:0,10,2" value="var:step">
       the ${step} step
   </li>
</ul>


2) I´m getting the following error:

Could not convert 'step' into a component parameter binding: Class
com.star.tapestry.pages.T5Components does not contain a property named
'step'


3) I tried to fix it declaring a property on the class:

@Property
private int step;

And the result :

   * the 0 step
   * the 0 step
   * the 0 step
   * the 0 step
   * the 0 step
   * the 0 step

So, the Loop executes six times, and that´s correct,
but i think that the "var:step" is not "detected".



Greetings & Have a nice day ,
Passi





Re: T5 - T5Components - Loop Binding Error

Posted by Josh Canfield <jo...@thedailytube.com>.
try:

the ${var:step} step

On Tue, Jul 15, 2008 at 10:53 PM, Antonio Fernández - STAR Málaga <
antonio.fernandez@star-group.net> wrote:

>
> 1) I´m trying with a basic example of the loop binding:
>
> ... the template ...@
> <ul>
>  <li t:type="Loop" source="loop:0,10,2" value="var:step">
>      the ${step} step
>  </li>
> </ul>
>
>
> 2) I´m getting the following error:
>
> Could not convert 'step' into a component parameter binding: Class
> com.star.tapestry.pages.T5Components does not contain a property named
> 'step'
>
>
> 3) I tried to fix it declaring a property on the class:
>
> @Property
> private int step;
>
> And the result :
>
>  * the 0 step
>  * the 0 step
>  * the 0 step
>  * the 0 step
>  * the 0 step
>  * the 0 step
>
> So, the Loop executes six times, and that´s correct,
> but i think that the "var:step" is not "detected".
>
>
>
> Greetings & Have a nice day ,
> Passi
>
>
>
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.