Passing parameters to pages has been created by Will Hoover (Jan 23, 2008).

Content:

In your WebApplication:

...

public Class<? extends WebPage> getHomePage() {
	return HomePage.class;
}

...

In your HomePage:

...

public HomePage() {
	// Check the current state of everything before passing the parameters
	if (state == WORLD) {
		throw new RestartResponseException(PageWeArePassingParamsTo.class, new PageParameters(...));
	}
}

...

Reply via email to