path=x is the pointer for wicket to lookup the component which it must use to render you're page. if you erase path=x then it can't lookup anything and it will create a new page. This doesn't have anything to do with versioning. Because then you will keep the same component/page
but we will record changes to it.

If you really want the same page then before then you just must hold that page and call:

so the first thing you want is in a link that does: setResponsePage(yourePageInstance)

the second is a link that does setReponsePage(new YourePage()) this will increment path because a new component/page is created. Or do something like setResponsePage(yourePageInstance.clearData())
(and that clearData is something of yourself)

johan



Michael Jouravlev wrote:
Back to Wicket from Struts. I have dumb questions again :)

I set setVersioned(false) in constructors for signin example
application. It is called, I checked. Still, when I click on the
"signin" link on the main examples page, I get a new clean component
with incremented path number. If I understand correctly, path is
component number, not a version number. Why is it incrementing? Why my
page content is erased? I don't want it to.

This is what I want:
- I want to have a non-versioned page
- I want to have two types of links directing to this page: --- one is just "go to the current page" which would show me existing page and its current content
--- another link is "initialize the page" which would call
    reset() or init() or something, so I could clear the
    content of the page.

Instead I have a bunch of different versions which I can load at any
given moment by changing number in the path request key. If I erase
path=... from URL, I get a new page with incremented path number
again.

Michael.


-------------------------------------------------------
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-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
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-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to