[ 
https://issues.apache.org/jira/browse/WICKET-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-1911.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

after looking closer at this i dont think we should support this usecase. 
wicket doesnt have enough knowledge about what you are trying to do to be 
helpful and will most likely make the wrong assumption more often then not if 
we do try to implement it.

storing things in application is problematic because we do not know the scope: 
1-time, session-lifetime, bookmarkable, etc.

on the other hand, you say you mounted the resource - so you can build a url 
for it... so instead of just putting the requesttarget on the stack why not 
just: target.prependjavascript("window.location='"+url to your resource.

> setRequestTarget(ResourceStreamRequestTarget) doesn't work with AJAX
> --------------------------------------------------------------------
>
>                 Key: WICKET-1911
>                 URL: https://issues.apache.org/jira/browse/WICKET-1911
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-M3
>         Environment: Win32 / Tomcat or Jetty
>            Reporter: Adriano dos Santos Fernandes
>            Assignee: Igor Vaynberg
>         Attachments: ajax-resource-redirect.zip
>
>
> In test case attached, you see:
> RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget(
>     new MyWebResource().getResourceStream()));
> doesn't work when clicking the AJAX link. The content is displayed inside the 
> AJAX Debug Window instead of redirect the page.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to