don't know why that is called twice
the onBeginRequest should be called once, from the page.doRender()
can you debug and see where the 2 calls come from?

johan


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

Hi,

I create PageLink in the FirstPage class's constructor.
ex. Link nextLink = new PageLink("nextLink",
NextPage.class).setAutoEnable(true);
In the NextPage class's constructor, I create DataView with IDataProvider.
ex. DataView dataView = new DataView("dataView", new
CustomDataProvider(model)) {
                protected void populateItem(final Item item) {
                .....

On click the link to NextPage, DataView is called two times.
So the program access database two times.
And onBeginRequest is called two times too.
Why?

I use wicket-1.2-20060227-0200.

Thank you.
R.A
--
View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3184409
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to