Hi Robert, I finally settled on using an ExternalPage component - it does the trick! Incidentally, is there a way to use a method on another page as a listener?
Steve -----Original Message----- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 13:46 To: Tapestry users Subject: Re: Pass and retrieve parameter from html As someone already mentioned, you're going to want to use either direct links or external links to pass your parameters around, rather than page links. Using an external link requires that the page you're linking to implement the "IExternalPage" interface. Using a directlink requires a "listener" (usually just a listener method). When the listener method is called, you can grab the parameters from the request cycle (requestCycle.getServiceParameters()), you can set the properties on the page to be rendered next, then call requestCycle.activate(page). If you are using 4.0, this is even easier. :) Robert [EMAIL PROTECTED] wrote: > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
