The "literal:" part only works for the root Index page of your application.

On Wed, Jun 10, 2009 at 6:03 PM, Howard Lewis Ship <hls...@gmail.com> wrote:

> <t:pagelink page="prop:componentResources.pageName"> ... </t:pagelink>
>
>
> On Wed, Jun 10, 2009 at 11:34 AM, Sergey
> Didenko<sergey.dide...@gmail.com> wrote:
> > Sorry, the first tml is better written as :
> >
> > SomePage.tml:
> > ...
> > <a t:id="linkId">Link text</a>
> > ...
> >
> >
> > On Wed, Jun 10, 2009 at 8:39 PM, Sergey Didenko<sergey.dide...@gmail.com>
> wrote:
> >> Hi,
> >>
> >> Is this the most concise and clear way to create a PageLink to the
> >> current page? Or are there other solutions that don't look so hacky? (
> >> Note that "literal:" part)
> >>
> >> SomePage.tml:
> >> ...
> >> <a t:id="linkId" t:page="literal:" t:context="context=someContext"
> >> class="action">Link text</a>
> >> ...
> >>
> >> SomePage.java:
> >> ...
> >>        @Component( id = "linkId", parameters = { "page=literal:",
> >> "context=someContext" } )
> >>        private PageLink myLinkr;
> >> ...
> >>
> >> BTW, the following alone does not work:
> >>
> >> SomePage.tml:
> >> ...
> >> <a t:id="linkId" t:page="literal:" t:context="context=someContext"
> >> class="action">Link text</a>
> >> ...
> >>
> >> Regards, Sergey.
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
> Director of Open Source Technology at Formos
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

Reply via email to