Hi Johan.
This log was output when NonbookmarkablePage was opened.
[06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === doGet
[06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === sessionId:
aUaEk1GTIg6WGjZE-Iiu1dE
[06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === queryString:
wicket:interface=:1:pageLink::ILinkListener
[06/04/04 17:13:31:875 JST] 16bd736 SystemOut O === bufferedResponse:
null
[06/04/04 17:13:31:969 JST] 16bd736 MarkupCache I
wicket.markup.MarkupCache Loading markup from
file:/D:/dev/wsappdev51/workspace/WicketExamples1.2-b3Web/WebContent/WEB-INF/classes/wicket/examples/compref/NonBookmarkablePage.html
[06/04/04 17:13:32:062 JST] 16bd736 SystemOut O ****** onBeginRequest
[06/04/04 17:13:32:109 JST] 16bd736 SystemOut O === doGet
[06/04/04 17:13:32:109 JST] 16bd736 SystemOut O === sessionId:
aUaEk1GTIg6WGjZE-Iiu1dE
[06/04/04 17:13:32:109 JST] 16bd736 SystemOut O === queryString:
wicket:interface=:2::
[06/04/04 17:13:32:109 JST] 16bd736 SystemOut O === bufferedResponse:
[EMAIL PROTECTED]
This is correct.
But after I put in FeedbackPanel on NonbookmarkablePage's constructor, this
was output.
[06/04/04 17:17:01:891 JST] 20e5005 SystemOut O === doGet
[06/04/04 17:17:01:891 JST] 20e5005 SystemOut O === sessionId:
rbA269sgN7TjXi-FE_ECGco
[06/04/04 17:17:01:891 JST] 20e5005 SystemOut O === queryString:
wicket:interface=:1:pageLink::ILinkListener
[06/04/04 17:17:01:891 JST] 20e5005 SystemOut O === bufferedResponse:
null
[06/04/04 17:17:01:984 JST] 20e5005 MarkupCache I
wicket.markup.MarkupCache Loading markup from
file:/D:/dev/wsappdev51/workspace/WicketExamples1.2-b3Web/WebContent/WEB-INF/classes/wicket/examples/compref/NonBookmarkablePage.html
[06/04/04 17:17:02:141 JST] 20e5005 SystemOut O ****** onBeginRequest
[06/04/04 17:17:02:156 JST] 20e5005 MarkupCache I
wicket.markup.MarkupCache Loading markup from
file:/D:/dev/wsappdev51/workspace/WicketExamples1.2-b3Web/WebContent/WEB-INF/classes/wicket/markup/html/panel/FeedbackPanel.html
[06/04/04 17:17:02:188 JST] 20e5005 SystemOut O === doGet
[06/04/04 17:17:02:188 JST] 20e5005 SystemOut O === sessionId:
rbA269sgN7TjXi-FE_ECGco
[06/04/04 17:17:02:188 JST] 20e5005 SystemOut O === queryString:
wicket:interface=:2::
[06/04/04 17:17:02:188 JST] 20e5005 SystemOut O === bufferedResponse:
null
[06/04/04 17:17:02:203 JST] 20e5005 SystemOut O ****** onBeginRequest
bufferedResponse was null two times and onBeginRequest method was called two
times too.
I put in system out as follows.
wicket.protocol.http.WicketServlet
public final void doGet(final HttpServletRequest servletRequest,
final HttpServletResponse servletResponse) throws
ServletException,
IOException
{
System.out.println("=== doGet");
long time = System.currentTimeMillis();
// First, set the webapplication for this thread
Application.set(webApplication);
// Try to see if there is a redirect stored
HttpSession httpSession = servletRequest.getSession(false);
if (httpSession != null
&&
webApplication.getRequestCycleSettings().getRenderStrategy() ==
IRequestCycleSettings.REDIRECT_TO_BUFFER)
{
String sessionId = httpSession.getId();
String queryString = servletRequest.getQueryString();
System.out.println("=== sessionId: " + sessionId);
System.out.println("=== queryString: " + queryString);
if (queryString != null)
{
BufferedHttpServletResponse bufferedResponse =
webApplication.popBufferedResponse(
sessionId, queryString);
System.out.println("=== bufferedResponse: " + bufferedResponse);
if (bufferedResponse != null)
{
bufferedResponse.writeTo(servletResponse);
// redirect responses are ignored for
the request logger...
return;
}
}
}
wicket.examples.compref.NonBookmarkablePage
public NonBookmarkablePage(final WebPage referer)
{
if (referer == null)
{
throw new IllegalArgumentException("Argument referer must not be
null");
}
// Add a link to navigate back to the refering page. We now use the
PageLink
// constructor with the Page instance argument, because we allready
have a page instance
// at our disposal
add(new PageLink("navigateBackLink", referer));
// Note that this would have had the same effect
//
// add(new Link("navigateBackLink")
// {
// public void onClick()
// {
// setResponsePage(referer);
// }
// });
// added
final FeedbackPanel feedback = new FeedbackPanel("feedback");
add(feedback);
}
protected void onBeginRequest() {
System.out.println("****** onBeginRequest");
}
--
View this message in context:
http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3740601
Sent from the Wicket - User forum at Nabble.com.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user