Fwd: About BasePage's BrandName setting

2015-01-09 Thread Hasan Çelik
Hi Martin,

Apologize for delay, I tried to learn to create quick start project on the
github...

https://github.com/cortix/project




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 Sat, Jan 3, 2015 at 6:49 PM, Martin Grigorov 
wrote:

> Hi,
>
> Please create a quickstart application at GitHub and give us the url.
>
> On Sat, Jan 3, 2015 at 6:37 PM, Hasan Çelik  wrote:
>
> > *Hi,*
> >
> > *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*
> >
> >
> >
> > 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
> >
>


Fwd: About BasePage's BrandName setting

2015-01-03 Thread Hasan Çelik
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

-- Forwarded message --
From: Hasan Çelik 
Date: 29 December 2014 at 22:47
Subject: Re: About BasePage's BrandName setting
To: users@wicket.apache.org


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  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 
> 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 ?
> >
>