You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by freak182 <em...@gmail.com> on 2008/10/23 09:24:56 UTC
Re: redirect issue on IE causing HTTP 404
Hello Igor,
Im still investagating the scenario because in different machine where IE7
and IE6 install it works fine. Im just wandering why here in my machine
(IE7) is not working. sorry for the inconvenience. i will just investigate
before posting again.
Thanks a lot.
Cheers.
igor.vaynberg wrote:
>
> create a quickstart that reproduces this and attach it to a jira issue.
>
> -igor
>
> On Wed, Oct 22, 2008 at 9:27 PM, freak182 <em...@gmail.com> wrote:
>>
>> Hello Igor,
>>
>> I have a problem in IE when i redirect wicket pages using javascript
>> using
>> location.href = '?wicket:interface=:3::::' . here is the scenario:
>>
>> public class InitBehavior extends AbstractBehavior
>> {
>> final IModel params = new AbstractReadOnlyModel() {
>>
>> @Override
>> public Object getObject()
>> {
>>
>> // redirect url's
>> map.put("roamUrl",
>> RequestCycle.get().urlFor(NoIdPage.class,
>> null));
>> map.put("loginUrl", RequestCycle.get().urlFor(new
>> LoginPage()));
>> map.put("errorUrl", RequestCycle.get().urlFor(new
>> ErrorPage()));
>> return map;
>> }
>>
>> };
>>
>> component.add(TextTemplateHeaderContributor.forJavaScript(
>> InitBehavior.class, "init.js", params));
>> super.bind(component);
>> }
>>
>> ...............
>> }
>>
>> and in init.js
>>
>> function clientReady() {
>>
>>
>> // detect if arcot id exist
>> if (!IDExists(strWFUserID)) {
>> if (Flag) {
>> //
>> document.getElementById('divErrPopup').style.display = 'block';
>>
>> location.href = '${errorUrl}';
>> } else {
>>
>>
>> location.href = '${roamUrl}';
>> }
>> } else {
>>
>>
>> location.href = '${loginUrl}';
>>
>> }
>> }
>>
>> this script is executed upon loading of the page. This working fine in
>> firefox. im using wicket 1.3.4 i also try the latest release 1.3.5 but it
>> still problem in IE(http://localhost:8080/test/undefined). I also,
>> mount(new
>> QueryStringUrlCodingStrategy("noid", NoIdPage.class)); again this works
>> only
>> in firefox but not in IE. since our client mostly IE users. i also found
>> this bug https://issues.apache.org/jira/browse/WICKET-1449 ... How can i
>> solve this problem? Is there a work around to this?
>>
>> Thanks a lot.
>> Cheers.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/redirect-issue-on-IE-causing-HTTP-4040-tp20124228p20124228.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/redirect-issue-on-IE-causing-HTTP-404-tp20124228p20125698.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org