Hi, all!
I am trying out tapestry and was going through the tutorial and
noticed that in the section about Guess.java the following:
Object onActionFromLink(int guess)
{
_count++;
if (guess == _target)
{
_gameOver.setup(_count);
return _gameOver;
}
if (guess < _target)
_message = String.format("%d is too low.", guess);
else
_message = String.format("%d is too high.", guess);
return null;
}
this however does not work. I changed the name of the handler to
Object onAction(int guess)
{
...
}
and things started to work as expected. Did I miss something or it is
a mess up in tutorial.
--
Thanks,
Alex.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]