Hi,

First, as much as i recall, i do not remember that PageLink supports parameters, I am using ExternalLink or DirectLink. You need to pass your parameter using ognl instruction, something like that should work:

<span jwcid="@ExternalLink" target="_blank" page="location_picker" parameters='ognl: "GB"'>Change</span>

Then you retrieve the parameters from the method you need to re-implement from the IExternalPage interface (I think this is the name).

Use the component description for ExternalLink, it gives you a good example you can start with.

Cheers.
David.

From: [EMAIL PROTECTED]
Reply-To: "Tapestry users" <[email protected]>
To: [email protected]
Subject: Pass and retrieve parameter from html
Date: Thu, 14 Jul 2005 10:33:52 +0100

Hi all,

Sorry for repeating this question, but I'm still hopelessly lost. I'm trying
to get a parameter sent from an html line:

<span jwcid="@PageLink" target="_blank" page="location_picker"
country="GB">Change</span>

And I would like to retrieve it from the LocationPicker code. I've tried
using

String m_Country =
getRequestCycle().getRequestContext().getParameter("country");

But it isn't working. How can I get it to work, or is there an alternative
(preferably, elegant) solution?


With kind regards,

Steve Ball

**********************************************************************
This email and any attachment(s) may contain confidential
and/or proprietary information and is for the intended
recipient only.  If an addressing or transmission error has
misdirected this email, please notify the sender by replying
accordingly.  If you are not the intended recipient you
should not copy, distribute or in any way make use of the
information contained in this email and any attachment(s).
**********************************************************************


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