You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anderson BalduĂ­no <ba...@gmail.com> on 2007/09/13 20:19:54 UTC

[T5] - Tutorial Error

I believe that the documentation of the tutorial one is incorrect:]

"

<p>Make a guess between one and ten:</p>

    <t:loop source="1..10" value="guess">
      <t:actionlink t:id="guess" context="guess">${guess}</t:actionlink>
    </t:loop>

  </body>

"
In the same page:

"What is "guess.link"? That's the name of the page, "guess", and the id of
the component ("link", as explicitly set with the t:id attribute)."

More below:

"

String onActionFromLink(int guess)
  {
    if (guess == _target) return "GameOver";

    if (guess < _target)
      _message = String.format("%d is too low.", guess);
    else
      _message = String.format("%d is too high.", guess);

    return null;
  }

"

[],
Anderson

Re: [T5] - Tutorial Error

Posted by banmig <ba...@gmail.com>.
Sorry:

is "guess.link" or "guess.guess" in ""What is "guess.link"?.... " ??


banmig wrote:
> 
> I believe that the documentation of the tutorial one is incorrect:]
> 
> "
> 
> <p>Make a guess between one and ten:</p>
> 
>     <t:loop source="1..10" value="guess">
>       <t:actionlink t:id="guess" context="guess">${guess}</t:actionlink>
>     </t:loop>
> 
>   </body>
> 
> "
> In the same page:
> 
> "What is "guess.link"? That's the name of the page, "guess", and the id of
> the component ("link", as explicitly set with the t:id attribute)."
> 
> More below:
> 
> "
> 
> String onActionFromLink(int guess)
>   {
>     if (guess == _target) return "GameOver";
> 
>     if (guess < _target)
>       _message = String.format("%d is too low.", guess);
>     else
>       _message = String.format("%d is too high.", guess);
> 
>     return null;
>   }
> 
> "
> 
> [],
> Anderson
> 
> 

-- 
View this message in context: http://www.nabble.com/-T5----Tutorial-Error-tf4437563.html#a12661642
Sent from the Tapestry - User mailing list archive at Nabble.com.


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