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

Reply via email to