Prop is the default binding so you can just use:

<t:pagelink page="test" context="[1,2,3,4]">test</t:pagelink>

no need for the leading prop:

On Fri, Feb 25, 2011 at 5:16 AM, Martin Strand
<do.not.eat.yellow.s...@gmail.com> wrote:
> On Fri, 25 Feb 2011 14:01:21 +0100, Richard Hill <r...@su3analytics.com>
> wrote:
>
>>
>> Hi,
>>
>> If I missed this in the docs, mailing list apologies. I am trying to
>> render a page link with 2 context parameters:
>>
>> <t:pagelink page="mypage"
>> context="literal:context1/context2">link</pagelink>
>>
>> This renders as "mypage/context1$002fcontext2", ie the "/" has been tap
>> encoded. As such as opposed to:
>>
>> public void onActivate(context1, context2)
>>
>> being called, this is:
>>
>> public void onActivate(context1)
>>
>> where context1 is passed as "context1/context2"
>>
>> How can i specify multiple contexts with literal: ?
>
>
> The literal: prefix always results in a single string, what you're looking
> for is an array with two strings.
>
> You could instead use the prop: binding to create a list, like so:
>
> <t:pagelink page="mypage" context="prop:['context1',
> 'context2']">link</pagelink>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to