You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jan Jirout <ji...@coroptis.com> on 2009/12/02 11:32:31 UTC

Problem with property expressions

Hi,

I have problem with property expression. When I try to use:

    /<t:pageLink page="orderDetail" context="${[user.id,order.id]}" />/


I expect that result context will be string like "orderdetail/3/2". But 
result URL is following:
/
/

    /http://localhost:8080/orderdetail/$005b223$002c$00201$005d/


Context contains encoded sign like '[', ']' and ','. If I understand 
specification of property expressions at 
http://tapestry.apache.org/tapestry5.1/guide/propexp.html says than I 
use valid format of context. I would like to use composite page link 
context because I would like to have nice URL.

Can you please suggest me how to use more that one parameters in page 
context.

regards

Jan


Re: Problem with property expressions

Posted by Gunnar Eketrapp <gu...@gmail.com>.
Skip the ${}

E.g.

   context="[item.year,item.weekNum]"

works for me!


2009/12/2 Jan Jirout <ji...@coroptis.com>

> Hi,
>
> I have problem with property expression. When I try to use:
>
>   /<t:pageLink page="orderDetail" context="${[user.id,order.id]}" />/
>
>
> I expect that result context will be string like "orderdetail/3/2". But
> result URL is following:
> /
> /
>
>   /http://localhost:8080/orderdetail/$005b223$002c$00201$005d/
>
>
> Context contains encoded sign like '[', ']' and ','. If I understand
> specification of property expressions at
> http://tapestry.apache.org/tapestry5.1/guide/propexp.html says than I use
> valid format of context. I would like to use composite page link context
> because I would like to have nice URL.
>
> Can you please suggest me how to use more that one parameters in page
> context.
>
> regards
>
> Jan
>
>


-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Re: Problem with property expressions

Posted by Jan Jirout <ji...@coroptis.com>.
Hi,

I would like to that you and Gunnar Eketrapp for help. It works for me now.

thanks

Jan


Thiago H. de Paula Figueiredo wrote:
> Em Wed, 02 Dec 2009 08:32:31 -0200, Jan Jirout <ji...@coroptis.com> 
> escreveu:
>
>> Hi,
>
> Hi!
>
>> I have problem with property expression. When I try to use:
>>     /<t:pageLink page="orderDetail" context="${[user.id,order.id]}" />/
>
> Never use ${} when passing parameters, as it converts its value to a 
> String. In this case, you needed a List.
>


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


Re: Problem with property expressions

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 02 Dec 2009 08:32:31 -0200, Jan Jirout <ji...@coroptis.com>  
escreveu:

> Hi,

Hi!

> I have problem with property expression. When I try to use:
>     /<t:pageLink page="orderDetail" context="${[user.id,order.id]}" />/

Never use ${} when passing parameters, as it converts its value to a  
String. In this case, you needed a List.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.
http://www.arsmachina.com.br

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