문제

Googlemap을 사용하여 로그인 한 후 사용자에게 일부 건물을 표시하는 이름 별 페이지가 있습니다. 데이터는 처음에는 Protected (필수) 상황 (ProtectedPage를 확장 한 CateGoiresXML에서)에서 처음으로 Google이 기록 할 수 없음을 발견했습니다. 시스템에서 페이지를 웹 페이지에서 확장합니다. 그러나 이제 BranchMap 페이지로 가서 Ctrl+F5를 누르면 페이지가 만료되고 홈페이지를 참조했습니다. 그 이유를 아는 사람이 있습니까? 더 많은 정보를 원한다면 저에게 넣으라고 말 해주세요.

도움이 되었습니까?

해결책

당신이 묘사 한 내용을 완전히 확신하지 못합니다 - 그것은 명확하지 않지만 이것이 도움이되는지 확인하십시오.

이는 일부 Ajax 호출로 인해 페이지가 변경 될 때 발생할 수 있지만 URL이 만료 된 버전을 의미하는 페이지 (북마크가 아닌) 페이지를 새로 고침하면이 예외가 발생합니다. 나는 우리가 개찰구 앱에 여러 개의 iframes를 호출했을 때이 문제를 일으켰습니다 (퍼지 설명에 대해 죄송합니다 - 얼마 전였습니다).

결국, 우리의 응용 프로그램을 위해, 우리는 다른 페이지의 세션을 완전히 분리하기 위해 다른 iframe 소스를 Web.xml 내의 다른 서블릿으로 나누어야했지만 또 다른 이야기입니다.

이를 개찰구 응용 프로그램에 추가하십시오.

// 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 ()

스택 추적을 보여줄 수 있습니까?

어떤 버전의 개찰구를 사용하고 있습니까?

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&dformat=H

여기에 문제 : https://issues.apache.org/jira/browse/wicket-2233

다음은 iPagesettings의 Javadoc에서 업데이트 된 의견입니다.

/**
 * 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();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top