You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/03/30 08:25:46 UTC
t5: multiple parameters in PageLink's context?
Hi,
Is there a way to specify multiple parameters in the PageLink's context,
example:
this works:
<t:pageLink page="SendPurchaseOrder" context="buyer.code">Send
Order</t:pageLink>
this fails:
<t:pageLink page="SendPurchaseOrder" context="buyer.code/'US'">Send
Order</t:pageLink>
what I'm doing now is, return the combined paramter from java and put it in
the context,
hints?
--
View this message in context: http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22777039.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: multiple parameters in PageLink's context?
Posted by Peter Stavrinides <P....@albourne.com>.
I seem to recall this, try use a property to return an object:
return new Object[]{param1,param2};
Peter
--
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
----- Original Message -----
From: "Angelo Chen" <an...@yahoo.com.hk>
To: users@tapestry.apache.org
Sent: Monday, 30 March, 2009 11:50:44 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: multiple parameters in PageLink's context?
that's a cool feature, but it does not work with 5.0.18.
DH-14 wrote:
>
> In 5.1, use like context="[param1,param2]"
>
> Thanks
> DH
>
>
> ----- Original Message -----
> From: "Angelo Chen"
> Sent: Monday, March 30, 2009 2:25 PM
> Subject: t5: multiple parameters in PageLink's context?
>
>
>>
>> Hi,
>>
>> Is there a way to specify multiple parameters in the PageLink's context,
>> example:
>>
>> this works:
>>
>> <t:pageLink page="SendPurchaseOrder" context="buyer.code">Send
>> Order</t:pageLink>
>>
>> this fails:
>>
>> <t:pageLink page="SendPurchaseOrder" context="buyer.code/'US'">Send
>> Order</t:pageLink>
>>
>> what I'm doing now is, return the combined paramter from java and put it
>> in
>> the context,
>>
>> hints?
>> --
>> View this message in context:
>> http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22777039.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
--
View this message in context: http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22778721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: multiple parameters in PageLink's context?
Posted by Angelo Chen <an...@yahoo.com.hk>.
that's a cool feature, but it does not work with 5.0.18.
DH-14 wrote:
>
> In 5.1, use like context="[param1,param2]"
>
> Thanks
> DH
>
>
> ----- Original Message -----
> From: "Angelo Chen"
> Sent: Monday, March 30, 2009 2:25 PM
> Subject: t5: multiple parameters in PageLink's context?
>
>
>>
>> Hi,
>>
>> Is there a way to specify multiple parameters in the PageLink's context,
>> example:
>>
>> this works:
>>
>> <t:pageLink page="SendPurchaseOrder" context="buyer.code">Send
>> Order</t:pageLink>
>>
>> this fails:
>>
>> <t:pageLink page="SendPurchaseOrder" context="buyer.code/'US'">Send
>> Order</t:pageLink>
>>
>> what I'm doing now is, return the combined paramter from java and put it
>> in
>> the context,
>>
>> hints?
>> --
>> View this message in context:
>> http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22777039.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
--
View this message in context: http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22778721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: multiple parameters in PageLink's context?
Posted by DH <ni...@gmail.com>.
In 5.1, use like context="[param1,param2]"
Thanks
DH
----- Original Message -----
From: "Angelo Chen"
Sent: Monday, March 30, 2009 2:25 PM
Subject: t5: multiple parameters in PageLink's context?
>
> Hi,
>
> Is there a way to specify multiple parameters in the PageLink's context,
> example:
>
> this works:
>
> <t:pageLink page="SendPurchaseOrder" context="buyer.code">Send
> Order</t:pageLink>
>
> this fails:
>
> <t:pageLink page="SendPurchaseOrder" context="buyer.code/'US'">Send
> Order</t:pageLink>
>
> what I'm doing now is, return the combined paramter from java and put it in
> the context,
>
> hints?
> --
> View this message in context: http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22777039.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: t5: multiple parameters in PageLink's context?
Posted by luna_guo <gh...@163.com>.
Angelo Chen wrote:
>
> Hi,
>
> Is there a way to specify multiple parameters in the PageLink's context,
> example:
>
> this works:
>
> <t:pageLink page="SendPurchaseOrder" context="buyer.code">Send
> Order</t:pageLink>
>
> this fails:
>
> <t:pageLink page="SendPurchaseOrder" context="buyer.code/'US'">Send
> Order</t:pageLink>
>
> what I'm doing now is, return the combined paramter from java and put it
> in the context,
>
> hints?
>
before 5.1.You can use a get method to return context.
...context="context">
List getContext(){
...
--
View this message in context: http://www.nabble.com/t5%3A-multiple-parameters-in-PageLink%27s-context--tp22777039p22778548.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org