THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
Link customize = new Link("customize") { public void onClick() { setResponsePage(new CustomizeProduct(imageID)); } public boolean linksTo(Page page) { if (!(page instanceof CustomizeProduct)) return false; CustomizeProduct typedPage = (CustomizeProduct) page; return typedPage.getImageID()==imageID(); } }; |
As last Lastly, if your page has a default constructor or if you must push state to it that can be mapped into strings, then you could also use the BookmarkablePageLink
with PageParameters
. Then you push This results in pushing a bit more state to the client and youre url , and the URL's looks a bit different.