You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Foror <fo...@mail.ru> on 2008/04/28 17:50:28 UTC
T5: How send "/" as symbol in t:ac parameter?
Encoding to %2F does not help. (tapestry 5.0.8)
example:
t:ac=catalog%2Fsomefile
OnEvent("activate")
RECEIVED:
String[0] == "catalog";
String[1] == "somefile";
NEEDED:
String[0] == "catalog/somefile"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: How send "/" as symbol in t:ac parameter?
Posted by Szemere Szemere <sz...@googlemail.com>.
Not sure about this specific case, but if you upgrade your Tapestry version
then even this might break. You are generally better off coding as (YMMV):
t:ac="prop:specificContext()"
Object[] specificContext() {
Object[] context = Object[2];
context[0] = "catalog";
context[1] = "somefile";
return context;
}
Szemere
On Mon, Apr 28, 2008 at 4:56 PM, Foror <fo...@mail.ru> wrote:
> F> t:ac=catalog%2Fsomefile
>
> Fix it :) t:ac=catalog%252Fsomefile - worked
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: T5: How send "/" as symbol in t:ac parameter?
Posted by Foror <fo...@mail.ru>.
F> t:ac=catalog%2Fsomefile
Fix it :) t:ac=catalog%252Fsomefile - worked
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org