You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2010/01/17 12:05:54 UTC

[jira] Commented: (WICKET-2379) Redirect fails wicketTest in rc7

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

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

The main problem here is that you use *Ajax* button to make a redirect to external host.
As you may know ajax requests receive partial page responses. So if there is no special handling of http code 302 in wicket-ajax.js then there is no way to make a redirect via Ajax. Even if there is a special handling for this in wicket-ajax.js then WicketTester could not be aware of that.
Making the form submit with non-Ajax button makes the test passing.

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