oh,I've figured it out...I should cast it with generic class. thank you :)
try {
setResponsePage((Class<Page>)Class.forName(pageClass));
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
rolandpeng wrote:
>
> 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" <[email protected]> wrote:
>>
>
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312878.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]