You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Richard Hill <ri...@su3analytics.com> on 2010/10/22 17:30:58 UTC
T5.1 IFrame and src context
Hi All,
I have an <iframe> in my T5.1 page. The src is another page served by
the same tapestry webapp. The page to be loaded in the <iframe> takes 2
parameters, a string and an int, as activation context. How do I
construct the value of the src to correctly link to the page with the
correctly formatted activation parameters?
Thanks very much,
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5.1 IFrame and src context
Posted by Richard Hill <ri...@su3analytics.com>.
To answer my own question:
@Inject
private PageRenderLinkSource prls;
public String getFrameSrc() {
Link l = prls.createPageRenderLinkWithContext
(DiffReportHTML.class,getContext());
return l.toAbsoluteURI();
}
Sorry for unnecessary post (late friday afternoon, brain switching
off) :)
-----Original Message-----
From: Richard Hill <ri...@su3analytics.com>
Reply-to: rich@su3analytics.com
To: Tapestry users <us...@tapestry.apache.org>
Subject: T5.1 IFrame and src context
Date: Fri, 22 Oct 2010 16:30:58 +0100
Hi All,
I have an <iframe> in my T5.1 page. The src is another page served by
the same tapestry webapp. The page to be loaded in the <iframe> takes 2
parameters, a string and an int, as activation context. How do I
construct the value of the src to correctly link to the page with the
correctly formatted activation parameters?
Thanks very much,
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org