create a quickstart that reproduces this and attach it to a jira issue.

-igor

On Wed, Oct 22, 2008 at 9:27 PM, freak182 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to