The lifecycle page was extremely informative. Thanks. I'm definitely in
"development" mode, although it is a little disconcerting to hear that this
kind of behavior might be so different between modes. It means that I'll
have to frequently switch back and forth between modes to test that things
are operating as efficiently as they should be. I though that the only thing
"development" mode affected was reloading of templates. This side effect, if
that's what it is, was unexpected.

Matt



On 3/19/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:

 Depending on where you have your log file messages and what kind they
are, they can appear more than once as sometimes components are winded up
more than once (e.g: inner redirect...) - best answer might be this:
http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html where
the whole life is described.

The things behind (e.g: database ) shouldnt be accessed more often based
on they right wicket usage (e.g: so no jdbc in page itself but a
appropriate (LoadableDetachable)Model ).

Also note that in the development mode this more often happens as in
deployment (at least i noticed this)

Regards,

Korbinian



 ------------------------------
*Von:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *Im Auftrag von *Matt Welch
*Gesendet:* Montag, 19. März 2007 17:11
*An:* [email protected]
*Betreff:* [Wicket-user] Log messages appearing twice

I'm betting this is a Wicket 101 question, but I can't seem to find an
answer on the wiki or in the lists (perhaps my search keywords aren't
right). During development I'm occasionally putting in some simple debug
statements into my pages. During execution, those log statements always come
up twice during a single page access. Is this expected? Do I need to develop
around this to ensure that calls to the service tier, and hence my database,
of my application are not executed twice as well? On the surface this seem
like a huge performance killer so I assume I have something misconfigured or
that I'm interpreting these double log statements incorrectly.

Any insight?

Matt


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to