<sigh> I am *so* lost and frustrated right now. I'm not even sure I know how to write the Link class you proposed. Can you please clarify the following things for me?

If only bookmarkable pages take PageParameters then how am I supposed to pass parameters from one page to another? That is, I don't understand how I could design a new Link class if I don't understand how parameter passing occurs between pages.

        Please clue me in.

Thanks,
Gili

Eelco Hillenius wrote:
Ah, you are right... you don't have the page parameters as it is not part of linksTo.

I can't see a quick solution to this actually. I wouldn't be a fan of the idea of putting PageParameters in Link, as this would encourage people to request parameter plumbing instead of writing handlers that stand on themselves.

I guess if you want this functionality, you should either create your own link class, which does take a page parameters object into account. This isn't too hard; just look at link, and copy what you need from it.

Eelco

Gili wrote:


I tried doing that but then I realized I can't implement linksTo()... I mean, how can I conclusively return true from linkTo() unless I know whether the PageParameters are identical on the link and on the Page that is passed in?

Gili

Eelco Hillenius wrote:

Thing is, that page parameters are really meant to be used for bookmarkable pages. If you override PageLink with an annonymous class, and provide your own linksTo implementation, you're all set right?. Or if you want, you can create your custom PageLink class that has the page parameters arg.

Eelco

Gili wrote:


I wanted to override "boolean Link.linksTo(Page p)" so it compares the PageParameters of the page versus those associated with the Link... but I found out you cannot getParameters() on Page.

Am I doing something Wicket isn't designed for? Am I looking in the wrong place?

Gili

Gili wrote:


Looking at the implementation of PageLink, maybe we should be adding a new constructor that takes in a PageParameters argument and uses it when lazily-constructing the page? Can I open a RFE for this?

Gili

Gili wrote:

 > Hi,
 >
> I feel silly asking this... Say I have pages A and B. There are links from page A to B. Page A is passed an imageID by its PageParameters. I want Wicket to pass specific parameters when one clicks on the links to Page B.
 >
> That is, how do I control what parameters are passed to page B when one clicks on the links to it? PageLink only takes the Page class, no arguments as far as I can tell.
 >
 >     Let me know.
 >
 > Thanks,
 > Gili






-------------------------------------------------------
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





-------------------------------------------------------
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


--
http://www.desktopbeautifier.com/


-------------------------------------------------------
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