Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
...

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

...

Passing Parameters (Using RequestCycle)

Adding the parameters in your WebPage:

Code Block

...

	RequestCycle.get().getPageParameters().put("myObject", myObect);

...

Retrieving the parameters in your WebPage:

Code Block

...

	MyObject myObect = (MyObect)getWebRequestCycle().getPageParameters().get("myObject");

...