do you have a snippet/sample code where i can see this happening?


On 3/2/06, R.A <[EMAIL PROTECTED] > wrote:

Hi Johan,

I use iBATIS to access database and set the log to debugging mode.
I take notice of two times database access by logs, so I write the following
code.
protected void onBeginRequest() {
        System.out.println("Entering onBeginRequest");
}
Then logs are made to output as follows.

Entering onBeginRequest
*snip*
DEBUG - PreparedStatement          - {pstm-100010} PreparedStatement:
SELECT    *   FROM *snip*
*snip*
Entering onBeginRequest
*snip*
DEBUG - PreparedStatement          - {pstm-100010} PreparedStatement:
SELECT    *   FROM *snip*

In trial I rewrite PageLink code this,
Link nextLink = new PageLink("nextLink", NextPage.class) {
        public void onClick() {
                setResponsePage(NextPage.class );
        }
}.setAutoEnable(true);
Then onBeginRequest called just one time.

Thank you.
R.A
--
View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3194962
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

Reply via email to