Looks like you missed an important section of the tutorial:
excerpt ---
We do need a basic GameOver page.
src/main/webapp/WEB-INF/GameOver.html:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Game Over!
Game Over
You guessed the secret number!
Hi Robert,
There is no need to persist the injected page. Your original version
should work OK. What exactly the NPE says?
Also, as a comment, "back to version 4" is not entirely correct. As a
matter of fact, Tapestry 4 and Tapestry 5 seem to be two different
frameworks with their own merits (IMH
See "Instance variables must be private":
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html
Cheers,
Nick.
Robert A. Decker wrote:
Thank you! That was it - declaring it private fixed it:
private GameOver _gameOver;
I now just inject the page but don't persist it.
Thank you! That was it - declaring it private fixed it:
private GameOver _gameOver;
I now just inject the page but don't persist it.
I'll have to try to read up on what you mean by 'enhance private
variables'...
R
On Sep 19, 2007, at 8:20 PM, Robert Zeigler wrote:
Background: I've never
Background: I've never "done" the T5 tutorial.
But I do have functional T5 apps.
Few things:
1) In T5, multiple annotations/item are supported
2) You don't need to persist the page. You might need to persist
values that each page needs, but you don't need to persist the pages.
3) Tapestry will
Do a search in the mailing list. This question was answered a while ago.
/Serge
Alex Shneyderman wrote:
>
> 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)
>