Hi,
class BasePage {
@Override protected void onInitialize() {super.onInitialize();
add(brandLink("brandLink"))}
protected abstract AbstractLink brandLink(String id);
}
class BasePage1 extend BasePage {
...
protected BookmarkablePageLink brandLink(String id) {return new
BookmarkablePageLink(id, IndexPage.class)}
}
class BasePage2 extend BasePage {
...
protected BookmarkablePageLink brandLink(String id) {return new
BookmarkablePageLink(id, ManagementPage.class)}
}
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Dec 17, 2014 at 11:46 PM, Hasan Çelik <[email protected]> wrote:
>
> Hi,
>
> Normally I have one Base Page, but I want to create more than one..
>
> For example
>
> LoginPage extend BasePage1
> ManagmentPage extend BasePage2
>
> A user login in the website, redirect to ManagementPage... but when user
> click BrandName, redirect to LoginPage ...Can I change the brandname for
> other BasePages
>
> For example
>
> In the ManagmentPage brandName link may be/managementPage ,
> In the LoginPage brandName link may be /index
>
> Is there a way to change it ?
>