Hi Martin,

If I use these construction, How can I change my BasePage markup and java
class

Normally my BasePage.html

https://gist.github.com/cortix/68b584310e9be62de4c6

​and BasePage.java

https://gist.github.com/cortix/7a5453cddac75b90f29a

According your code, I tried to create new BasePage, BasePage1, BasePage2

but I didn't succeed to create markup for BasePage, BasePage1, BasePage2
and also java pages...

If BasePage.java would be my main page, How can I edit child and extend tag
for BasePage1, BasePage2

because

LoginPage extend BasePage1
ManagmentPage extend BasePage2

and

BasePage1 extend BasePage
BasePage2 extend BasePage

sorry about that because I try to learn the usage of wicket



Web Sitesi : www.ab-hibe.com
E-mail: hasance...@berkadem.com
E-mail: i...@ab-hibe.com
Gsm1: 0 544 640 96 25
Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara

On 18 December 2014 at 12:02, Martin Grigorov <mgrigo...@apache.org> wrote:

> 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 <hsnclk1...@gmail.com>
> 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 ?
> >
>

Reply via email to