You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Kamil Hark <ka...@gmail.com> on 2008/11/27 19:21:34 UTC

How can I instance home page myself

an Application class (and WebApplication) has method Class getHomePage()

 Why this method returns class instead of Page object?
 Now I'm limited to use non-argument constructor, I connot pass any
dependiences and so on. 

Are there any posibilities to instance and return Page object?
 
 
regards
 
Kamil
-- 
View this message in context: http://www.nabble.com/How-can-I-instance-home-page-myself-tp20723688p20723688.html
Sent from the Wicket - User mailing list archive at Nabble.com.

Re: RES: How can I instance home page myself

Posted by Kamil Hark <ka...@gmail.com>.
Yes I know that I can do it through Application but then it is very dificult
to test. If I could inject args into constructur like below then it would be
much better

new MyPage(Foo foo){...}
-- 
View this message in context: http://www.nabble.com/How-can-I-instance-home-page-myself-tp20723688p20723898.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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