tml:
<a href="${linkWithParameters}">More news</a>
java:
@Inject
private PageRenderLinkSource pageRenderLinkSource;
public Link getLinkWithParameters()
{
Link link = pageRenderLinkSource.createPageRenderLink(MoreNews.class);
link.addParameter("startIndex", "3");
link.addParameter("endIndex", "11");
return link;
}
I would recommend avoiding pageLink component, mostly because it's not
refactor safe.
On Wed, Feb 22, 2012 at 11:34 AM, karthi <[email protected]>wrote:
> Hi,
>
> I have a page link like this:
>
> <t:pagelink page="TopNews">More News</t:pagelink>
> It works fine here I have a page with a name TopNews - invokes a page
> http://localhost:8080/News/topnews
>
>
> I want to pass parameters with this page name like below:
> <t:pagelink page="TopNews?startIndex=3;endIndex=11">More News</t:pagelink>
> -
> here I mean I want to invoke a page like
> http://localhost:8080/News/topnews?startIndex=3;endIndex=11
>
> How can I achieve this?
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-pass-page-name-with-parameters-in-pagelink-tp5504751p5504751.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>