Check your imports (on the beginning of your java code). It seems like
you are importing pc.LoginPage instead of mobile.LoginPage.
-Matej
R.A wrote:
> Hi.
>
> I create two packages and some class having same class name.
>
> mobile.LoginPage
> mobile.MainPage
> pc.LoginPage
> pc.MainPage
>
> In MainPage, I create logout link.
>
> add(new Link("logoutLink") {
> public void onClick() {
> setResponsePage(LoginPage.class);
> }
> });
>
> Clicking the logout link in the mobile.MainPage, error occured.
>
> wicket.WicketRuntimeException: Exception in rendering component: [Component
> id = head-title-label, page = pc.LoginPage, path = 3:head-title-label.Label,
> isVisible = true, isVersioned = true]
>
> Label "head-title-label" is only in the mobile.LoginPage, so error occured.
> But I don't know why pc.LoginPage is calling.
>
> As a trial, I set "setResponsePage(mobile.LoginPage.class)", work fine.
> Need I set the package name when I use classes having same name?
>
> Regards,
> R.A
> --
> View this message in context:
> http://www.nabble.com/about-setResponsePage-t1740743.html#a4730227
> Sent from the Wicket - User forum at Nabble.com.
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user