I have an object Product and it has a composite primary key (ProductId).

How can I put this object Product in actionlink's context value?

Thank's!!!


Geoff Callender-2 wrote:
> 
> 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 <manuelcorra...@gmail.com>:
>>> 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  
>>> <leon.de...@cumquat.nl> wrote:
>>>
>>>> How can I add multiple context values to an actionlink?
>>>>
>>>> For example a productId and a categoryId?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>
>>>
>>
>>
>>
>> -- 
>> Atenciosamente,
>> Marcelo Lotif
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 


-----
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/multiple-context-values-tp16941976p22834770.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to