> Your button should just be an external like.
I need some logic there before redirecting.
> I don't think you are supposed to be redirecting to an
> external url per the wiki guidelines here
new RedirectRequestTarget("/path/to/legacyJspFile.jsp") is what I am using.
It is not relevant whether it is external or internal. The point is,
that the test fails but it does work in real world.
> If you need the button to submit to do some logic, you can add a
> call decorator to do your redirect with javascript e.g.
It must be conditional to the logic.
Anyways. The main point is: the redirect works, but the wickettester
test fails, i.e., there is a bug in wickettester.
**
Martin
> ----------------------------------------
>> Date: Sun, 19 Jul 2009 09:54:03 +0300
>> Subject: Redirect fails wicketTest in rc7 - is there a workaround?
>> From: [email protected]
>> To: [email protected]
>>
>> 1. click ajaxButton
>> 2. redirect in button onSubmit
>> 3. verify redirect in test
>>
>> Is there a workaround? https://issues.apache.org/jira/browse/WICKET-2379
>>
>> **
>> Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
> _________________________________________________________________
> Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
> http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]