Module inheritance problem: Refused to display document because display forbidden by X-Frame-Options.

145 views
Skip to first unread message

Alexander Orlov

unread,
Jan 16, 2012, 4:32:23 AM1/16/12
to google-we...@googlegroups.com
I have two modules

Manager.gwt.xml
    <inherits name="dp.verp.planer.Planer"/>
    <entry-point class="dp.verp.manager.client.Main"/>
    <add-linker name="xsiframe"/>

which inherits Planer.gwt.xml but when I call the Manager module I get 

    Refused to display document because display forbidden by X-Frame-Options.

which is displayed in the Web Inspector console. Everything works fine when I omit the getI18nFacet() call. 

    @Override
    public void onModuleLoad() {
        final Widget app = binder.createAndBindUi(this);

        cookieInit();
        //getI18nFacet();

        RootPanel.get().add(app);
    }

    public void getI18nFacet() {
        final I18nFacetReqCtx ctx = PlanerUtils.RF.textpoolReqCtx();
        final Request<List<I18nFacetProxy>> req = ctx.getI18nFacet(
                Integer.valueOf(Cookies.getCookie("nativeLanguage"))
        );

        req.fire(new Receiver<List<I18nFacetProxy>>() {
            @Override
            public void onSuccess(List<I18nFacetProxy> response) {
                for (final I18nFacetProxy i18nFacet : response) {
                    Planer.property.i18nFacet.put(i18nFacet.getMacroName(), i18nFacet.getTranslation());
                }
            }
        });
    }




Alexander Orlov

unread,
Jan 16, 2012, 4:34:04 AM1/16/12
to google-we...@googlegroups.com
...the onMouduleLoad() code is located in dp.verp.manager.client.Main.

Alexander Orlov

unread,
Jan 16, 2012, 5:08:13 AM1/16/12
to google-we...@googlegroups.com
Solution: 

I haven't initialized the RequestFactory before calling getI18nFacet().
Reply all
Reply to author
Forward
0 new messages