I've also tried casting like this. setResponsePage((Page)Class.forName(pageClass));
but compiles error as well,the message below, The method setResponsePage(Class<C>) in the type Component is not applicable for the arguments (Page) James Carman wrote: > > Cast it? > > On Aug 3, 2010 10:19 PM, "rolandpeng" <rolandp...@cht.com.tw> wrote: > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312876.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org