Hello, 2007/6/2, Daniel Stoch <[EMAIL PROTECTED]>: [....] > When I enter this page first time in a browser there is the following > output: > Constructor B - 1 > Constructor A - 2 > Constructor B - 3 > This is a sample welcome text for Spring bean 3 > > So as you can see there are 3 calls to SimpleBean constructor, including > one default constructor call (so it looks like 3 instances of this class > was created).
I encountered the same behavior; one construction during init, and another when making the first use of the class. Not sure if this is ok, but I don't think so. [...] > When I comment a default no-argument constructor code, I've received an > error: > > java.lang.IllegalArgumentException: Superclass has no null constructors but > no arguments were given I think this is another issue. If you define an interface for your bean, and make all your calls through that, it shouldn't happen anymore, and you could omit your null-constructor. -- greetings from Berlin, Rüdiger Schulz www.2rue.de ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user