You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sergey Didenko <se...@gmail.com> on 2009/06/10 19:39:34 UTC

PageLink to the current page

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PageLink to the current page

Posted by Sergey Didenko <se...@gmail.com>.
Thanks, that works.

On Thu, Jun 11, 2009 at 4:04 AM, Howard Lewis Ship<hl...@gmail.com> wrote:
> 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 <hl...@gmail.com> wrote:
>
>> <t:pagelink page="prop:componentResources.pageName"> ... </t:pagelink>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


IE javascript errors...

Posted by Tom Zurkan <tz...@citizensportsinc.com>.
so, i have a page that has many components with zones and blocks.  the 
page loads fine, but, when i try and submit on a form that uses a zone i 
get javascript errors while rendering the block.  these are probably my 
own javascript problems, but, the ie script debugger is not finding the 
right line number to tell me where the syntax error is.....

has anyone seen anything similar to this?

everything works fine in firefox.

thanks,

tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PageLink to the current page

Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <hl...@gmail.com> wrote:

> <t:pagelink page="prop:componentResources.pageName"> ... </t:pagelink>
>
>
> On Wed, Jun 10, 2009 at 11:34 AM, Sergey
> Didenko<se...@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<se...@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@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

Re: PageLink to the current page

Posted by Howard Lewis Ship <hl...@gmail.com>.
<t:pagelink page="prop:componentResources.pageName"> ... </t:pagelink>


On Wed, Jun 10, 2009 at 11:34 AM, Sergey
Didenko<se...@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<se...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PageLink to the current page

Posted by Sergey Didenko <se...@gmail.com>.
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<se...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org