You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kalle Korhonen <ka...@gmail.com> on 2012/08/21 22:42:43 UTC

Return URL for an ajax request?

Currently you get "Return type java.net.URL can not be handled" if you
return an URL from an ajax event handler. Is this just an oversight or
is there some limitation I cannot see why you couldn't return an URL
but can return a Link? The JSON response should be the same.

Kalle

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


Re: Return URL for an ajax request?

Posted by Kalle Korhonen <ka...@gmail.com>.
Created https://issues.apache.org/jira/browse/TAP5-1993.

On Tue, Aug 21, 2012 at 1:52 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> On Tue, Aug 21, 2012 at 1:42 PM, Kalle Korhonen
> <ka...@gmail.com> wrote:
>> Currently you get "Return type java.net.URL can not be handled" if you
>> return an URL from an ajax event handler. Is this just an oversight or
>> is there some limitation I cannot see why you couldn't return an URL
>> but can return a Link? The JSON response should be the same.
>
> Seems like an oversight; this is supported for traditional requests,
> it should be supported for Ajax requests as well.
>
>>
>> Kalle
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> 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: Return URL for an ajax request?

Posted by Howard Lewis Ship <hl...@gmail.com>.
On Tue, Aug 21, 2012 at 1:42 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
> Currently you get "Return type java.net.URL can not be handled" if you
> return an URL from an ajax event handler. Is this just an oversight or
> is there some limitation I cannot see why you couldn't return an URL
> but can return a Link? The JSON response should be the same.

Seems like an oversight; this is supported for traditional requests,
it should be supported for Ajax requests as well.

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



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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