About WiQueryWebApplication

2010-03-30 Thread David Chang
IMHO, I am not quite sure this class (another indirection) is really necessary. 
All this class does is having a member variable:

private WiQueryInstantiationListener wiqueryPluginInstantiationListener;

and insert the following two lines into init().

wiqueryPluginInstantiationListener = new WiQueryInstantiationListener(); 
addComponentInstantiationListener(wiqueryPluginInstantiationListener);  


If this class is really necessary in terms of design, then we could have a 
similar request for another class just for Spring Annotation to work. This list 
may go on and on.

It may feel more beautiful to have ALL your wicket applications simply extend 
WicketApplication.

Just my 2 cents.

All the best.




  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: About WiQueryWebApplication

2010-03-30 Thread Jeremy Thomerson
This thread should have been on the wiQuery list.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Mar 30, 2010 at 2:12 PM, David Chang david_q_zh...@yahoo.comwrote:

 IMHO, I am not quite sure this class (another indirection) is really
 necessary. All this class does is having a member variable:

 private WiQueryInstantiationListener wiqueryPluginInstantiationListener;

 and insert the following two lines into init().

 wiqueryPluginInstantiationListener = new WiQueryInstantiationListener();
 addComponentInstantiationListener(wiqueryPluginInstantiationListener);


 If this class is really necessary in terms of design, then we could have a
 similar request for another class just for Spring Annotation to work. This
 list may go on and on.

 It may feel more beautiful to have ALL your wicket applications simply
 extend WicketApplication.

 Just my 2 cents.

 All the best.






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org