i take you do look at the code some times?
In a few seconds of looking at the code you now how it works (pretty much)


Gili wrote:

On this topic... can someone *please* post a page in the Wicket Wiki about Bookmarkable Pages vs normal Pages? Something similar to our "all about Models" page?

I absolutely lost here. I keep on getting lost on this exact same topic every couple of weeks and I can't find any decent documentation on it.

Specifically, what differentiates a bookmarkable page from a normal one?
Not really a difference. A 'normal' page can also be bookmarkable.
in the end i think all pages could be bookmarkable if you want (they just must have a default or PageParameters constructor) It is just you as developer providing bookmarkable urls to youre user so that they can jump into the application at certain places you define.


Why does a bookmarkable page take one constructor with PageParameters and one without?

Because a PageParameter constructor doesn't have to be there for pages that don't need it.

Which constructor is called if you hit the URL of a bookmarkable page with and without query arguments?
The constructor with PageParameters is first tried. Then if it is not there the default constructor is used. See WebRequestCycle.bookmarkablePage() and DefaultPAgeFactory.newPage(final Class pageClass, final PageParameters parameters)

How do you pass arguments to a non-bookmarkable page if its constructor does not take a PageParameters argument?
If a page is non bookmarkable (you don't have one of the 2 constructors or you as developer don't make a bookmarkable link to it)
Then you as a developer initialize that page. by doing:

MyPage myPage = new MyPage(int param1,string param2)

in youre code.


johan



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to