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

(View changes)

Content:

Passing Parameters to a Home Page

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