Implement IExternalPage and implement
activateExternalPage(Object[] parameters, IRequestCycle cycle),
adding code that resets your persistent properties.
Then make your PopupLinkRenderer create ExternalLinks.

During submits, the activateExternalPage method will not get called,
so your properties will not get reset.

[EMAIL PROTECTED] wrote:

Yes - and I use this in many places, but sometimes you'd want (read:I could
really use :-) ) to add yet another request parameter to a link.

An example: I have a Page for editing a specific piece of content. I want this
page to be opened in a seperate window (using window.open(...)) and I have
implemented a PopupLinkRenderer wich renders this popup link. Now I want to
instruct the page (in pageBeginRender) to reset all session persistent
properties and I do this by adding a "&reset=true" to the request URI.
I cannot see another way of doing so, since the properties are session persist
(must be as the page will be submitted many times while editing the same piece
of content, hence using session persistence for the content being edited). How
else will I know if its a "first" time request or simply a request while 
editing?

I hope you get the pictures.. Kinda hard for me to explain..

regards, Lars Borup Jensen


On Tue, 16 Aug 2005 08:10:32 -0400, Geoff Longman wrote
How would the recieving page extract the paramters? PageLink does not
invoke a listener on the target page.

The way to do this would be to use a DirectLink with parameters and
use a listener to extract those parameters from the request cycle.
Then obtain the target page (cycle.getPage()), call sets on it and
then use cycle.activate() to transfer control to the target page.

Geoff

On 8/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

I was wondering if it is somehow possible to add request parameters to a
PageLink? I've written a PopupLinkRenderer to be used with a PageLink but
since the PageLink component cannot take any parameters (unlike DirectLink),
I've had to programmatically add some request parameters to the generated link
by looking for a ? (questionmark) and if its present, simply just add a
&key=value to the string otherwise add ?key=value and so fourth...
I tried to add multiple parameters to the PageService in the 3.0.3 release,
but got an exception as only one page-name could be used as a parameter.

I'm currently using 4-beta4.


regards
--
Lars Borup Jensen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
The Spindle guy.           http://spindle.sf.net
Get help with Spindle: http://lists.sourceforge.net/mailman/listinfo/spindle-user Announcement Feed: http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Lars Borup Jensen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to