Hi Martin,

Thanks for reply, In the future I may use these pages...brandname link
doesn't work...Afer I click Management.page, I check the brandlink but
again it forward the Homepage... What I want to do,

when I click ManagementPage, brandlink ---> /management
when I click HomePage, brandlink ---> /index

I hope, I made myself clear

Regards



Web Sitesi : www.ab-hibe.com
E-mail: [email protected]
E-mail: [email protected]
Gsm1: 0 544 640 96 25
Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara

On Sun, Jan 11, 2015 at 10:45 PM, Martin Grigorov <[email protected]>
wrote:

> Hi,
>
> There is no need to provide BasePage1.html and BasePage2.html at all.
> If there is no specific html for a page then Wicket will use the markup of
> the parent page (i.e. BasePage.html)
>
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Jan 9, 2015 at 4:09 PM, Hasan Çelik <[email protected]> wrote:
>
> > *Hi,*
> >
> > * I replied my old question but it didn't exist in the forum and I
> choosed
> > this way, sorry about that, I wanted to remind dioalog...Anyway I asked
> > this question before,*
> > ------------------------------------------------------------------
> > 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 ?
> >
> >
> ---------------------------------------------------------------------------------------------
> > *Martin Grigorov  said*
> >
> > 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)}
> > }
> >
> >
> --------------------------------------------------------------------------------------
> > According to this reply,
> >
> > I want to ask another question,
> >
> > 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
> >
> >
> >
> -----------------------------------------------------------------------------------
> > Martin Grigorov said
> >
> > Hi,
> >
> > Please create a quickstart application at GitHub and give us the url.
> >
> >
> >
> ------------------------------------------------------------------------------------
> >
> > Apologize for delay, I tried to learn to create quick start project on
> the
> > github...
> >
> > https://github.com/cortix/project
> >
>

Reply via email to