Marcelo has the right answer for Tapestry 5.0.18: you must create a
property of your page to assemble the context values into a List or
array.
In 5.1, there's new property expression syntax for creating a list:
context="[ productId, categoryId ]"
On Mon, Apr 28, 2008 at 8:53 AM, Leon Derks w
On Thu, Apr 2, 2009 at 11:37 AM, Fernanda C. Carmo
wrote:
> Is there any other way to have only one parameter ProjectVersion like this?
>
> public Object onActionFromEditProjectVersion(ProjectVersion
> projectVersion) {
>
> editProjectVersionPage.setProjectVersion(projectVersion);
>
Thiago and Filip, thank you very much!
Actually, I have an object ProjectVersion with the composite primary key.
So in ListProjectVersionPage I would like to go to EditProjectVersionPage
this way:
public Object onActionFromEditProjectVersion(EventContext context) {
Integer
On Wed, Apr 1, 2009 at 7:45 PM, Filip S. Adamsen wrote:
> What about contributing a ValueEncoder that converts between a ProductId
> and a String? I haven't needed to work with composite primary keys, so I
> can't say if it'd work, but it's worth a shot.
This is a more reusable solution than the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
What about contributing a ValueEncoder that converts between a ProductId
and a String? I haven't needed to work with composite primary keys, so I
can't say if it'd work, but it's worth a shot.
/Filip
On 2009-04-02 00:33, Thiago H. de Paula Figueiredo
Em Wed, 01 Apr 2009 18:35:53 -0300, Fernanda C. Carmo
escreveu:
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?
Hi!
Create a method that return a List containig the values thatt comprise the
composi
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 avail
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
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){
//...
}
[delete
see:
http://tapestry.a
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?
>
>
>
>
>
>
10 matches
Mail list logo