2009-07-22 14 views
0

GoogleMapを使用してログインした後にGoogleMapを使用してユーザーに建物を表示するページがあります。 データは保護された(パスワードが必要な)状況(ProtectedPageを拡張する)では最初ですが、 GoogleがシステムにログインしてWebPageからページを拡張することができないことを発見しました。 しかし、BranchMapページに移動してCTRL + F5を押すと、ページが期限切れになり、私はHomePageを参照します。 理由を知っている人はいますか?あなたがそれらを置くように私に詳細な情報を求めている場合。問題点Wicketの

答えて

2

あなたが記述しているものを全くわからない - それは非常に明確ではないのですが、この場合に役立ちます参照してください。

いくつかのAjax呼び出しページが変更になりますが、(ページを更新するとされていない場合に、この現象が発生することができますブックマーク可能)urlが期限切れバージョンを参照しているため、この例外が発生します。この問題は、私たちがWicketアプリを呼び出す複数のiframeを持っているときに起こりました(あまりにもずっと前です)。

私たちのアプリケーションでは、異なるページのセッションを完全に分離するために、さまざまなiframeソースをweb.xml内の異なるサーブレットに分割する必要がありましたが、それは別の話です。

これをあなたのウィケットアプリケーションのinitメソッドに追加してみてください。

// debug code for fixing session issue (multiple ajax using pages inside 
// one browser) 
get().getPageSettings().setAutomaticMultiWindowSupport(true); 

そして、ここにドキュメントをチェックアウト:http://wicket.apache.org/docs/1.4/org/apache/wicket/jmx/PageSettings.html#getAutomaticMultiWindowSupport()

あなたはスタックトレースを表示することができますか?

あなたはどのバージョンのWicketを使用していますか?同様に1.4-RC3に先立ってのjavadocでミスコミュニケーションのビットがありました

は、ここにパッチを適用:ここ http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IPageSettings.java?r1=647167&r2=768578&pathrev=768578&diff_format=h

問題:ここでhttps://issues.apache.org/jira/browse/WICKET-2233

は、javadocの中に、更新されたコメントですIPageSettingsから:

/** 
* Gets whether Wicket should try to support opening multiple windows for the same session 
* transparently. If this is true - the default setting -, Wicket tries to detect whether a new 
* window was opened by a user (e.g. in Internet Explorer by pressing ctrl+n or ctrl+click on a 
* link), and if it detects that, it creates a new page map for that window on the fly. As a 
* page map represents the 'history' of one window, each window will then have their own 
* history. If two windows would share the same page map, the non-bookmarkable links on one 
* window could refer to stale state after working a while in the other window. 
* <p> 
* <strong> Currently, Wicket trying to do this is a best effort that is not completely fail 
* safe. When the client does not support cookies, support gets tricky and incomplete. See 
* {@link WebPage}'s internals for the implementation. </strong> 
* </p> 
* 
* @return Whether Wicket should try to support multiple windows transparently 
*/ 
boolean getAutomaticMultiWindowSupport(); 
+0

私はウィケットを使用しています。1.3.5 私はあなたを得ませんでした。あなたはTomcatのログやデバッグのスタックトレースをしたいですか? – JGC

+0

wicket-1.4-rc7にアップグレードしてください。 Wicket 1.4は今のところ最終段階に近づいているので、それまで1.4-rc7に移行しているかもしれません。 1.4-rc7で再テストしても、同じ問題が発生するかどうかを確認してください。 私はスタックトレースを求めていました。 –