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

Reply via email to