You need the "list" binding prefix so you can do this:
t:context="list:p.productId, p.categoryId". It's available 2 ways
that I know of:
1. You can add it to your project by hand from
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
2. You can get it for free by including the t5components in your
project: http://code.google.com/p/tapestry5-components/
Cheers,
Geoff
http://files.doublenegative.com.au/jumpstart/
On 29/04/2008, at 3:09 AM, Marcelo Lotif wrote:
I was just caught by this problem some time ago, and in the tapestry
site they recommend this:
public Object[] getAccountContext()
{
return new Object[] { account.companyId, account.id };
}
Object onActionFromDelete(long companyId, long accountId){
//...
}
<p>
[<t:actionlink t:id="delete" context="accountContext">delete</
t:actionlink>
</p>
see:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/ActionLink.html
2008/4/28 Manuel Corrales <[EMAIL PROTECTED]>:
I think you can separate the values with commas like this:
t:context="p.productId, p.categoryId"
Good luck!
On Mon, Apr 28, 2008 at 12:53 PM, Leon Derks
<[EMAIL PROTECTED]> wrote:
How can I add multiple context values to an actionlink?
For example a productId and a categoryId?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Atenciosamente,
Marcelo Lotif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]