Hi, I'm learning by trying out the hi/lo game, everytime I clicked one of the number links, the onActionFromLink was not called, here is the template:
<t:loop source="1..10" value="guess"> <t:actionlink t:id="guess" context="guess">${guess}</t:actionlink> </t:loop> it generates following: /guess.guess/1 1 /guess.guess/2 2 /guess.guess/3 3 the Guess.java as follow: public class Guess { @Persist private int _target; private int _guess; public int getGuess() { return _guess; } public void setGuess(int _guess) { this._guess = _guess; } void setup(int target) { _target = target; } public int getTarget() { return _target; } @Persist private String _message; public String getMessage() { return _message; } 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; } } -- View this message in context: http://www.nabble.com/T5%3A-trying-out-tutorial-hi-lo-game%2C-but...-tf4309599.html#a12268676 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]