You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <ap...@net22.de> on 2008/08/22 14:29:44 UTC
[T5] syntax of list in t:context
What's the correct syntax (in a tml template) to pass more than one
object in an ActionLink's t:context parameter?
t:context="someObject.id, otherObject"
does not work, as the error message states that someObject is searched
for a property called "id, otherObject"
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] syntax of list in t:context
Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,
You can also grab the list: binding prefix from the wiki:
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
-Filip
On 2008-08-22 14:41, Andy Pahne wrote:
>
> found the workaround: see "Notes" onm page
>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/ActionLink.html
>
>
> Andy Pahne schrieb:
>>
>> What's the correct syntax (in a tml template) to pass more than one
>> object in an ActionLink's t:context parameter?
>>
>> t:context="someObject.id, otherObject"
>>
>> does not work, as the error message states that someObject is searched
>> for a property called "id, otherObject"
>>
>> Andy
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] syntax of list in t:context
Posted by Andy Pahne <ap...@net22.de>.
found the workaround: see "Notes" onm page
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/ActionLink.html
Andy Pahne schrieb:
>
> What's the correct syntax (in a tml template) to pass more than one
> object in an ActionLink's t:context parameter?
>
> t:context="someObject.id, otherObject"
>
> does not work, as the error message states that someObject is searched
> for a property called "id, otherObject"
>
> Andy
>
>
> ---------------------------------------------------------------------
> 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: [T5] syntax of list in t:context
Posted by Sven Homburg <ho...@googlemail.com>.
not possible inside the template to add an array/list of context values.
two suggestions:
in the tml
t:context="context"
in the class
String[] getContext()
{
return new String[]{someObject.id, otherObject};
}
or use the list binding from t5compnents/chenillekit
http://87.193.218.134:8080/t5components/t5c-commons/howto_listbinding.html
2008/8/22 Andy Pahne <ap...@net22.de>
>
> What's the correct syntax (in a tml template) to pass more than one object
> in an ActionLink's t:context parameter?
>
> t:context="someObject.id, otherObject"
>
> does not work, as the error message states that someObject is searched for
> a property called "id, otherObject"
>
> Andy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com