[ 
https://issues.apache.org/jira/browse/WICKET-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801386#action_12801386
 ] 

Martin Grigorov commented on WICKET-2379:
-----------------------------------------

@Devs: currently WebResponse (line 224) sets status 200 and adds a header 
'Ajax-Location' for redirects in Ajax requests. Later wicket-ajax.js (line 928) 
checks for that header and makes the redirect.
Honestly I didn't test that scenario but I want to ask: did you experienced any 
problems with returning status = 302 and use header 'Location' instead ?

> Redirect fails wicketTest in rc7
> --------------------------------
>
>                 Key: WICKET-2379
>                 URL: https://issues.apache.org/jira/browse/WICKET-2379
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC7
>            Reporter: Martin Makundi
>         Attachments: Wicket-Quickstart.zip
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 1. click ajaxButton
> 2. redirect in button onSubmit
> 3. verify redirect in test <FAILS>
> See attached quickstart

-- 
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