Hi,

Please create a quickstart application at GitHub and give us the url.

On Sat, Jan 3, 2015 at 6:37 PM, Hasan Çelik <[email protected]> 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*
> <https://gist.github.com/cortix/68b584310e9be62de4c6>
>
> *​and BasePage.java*
>
>
> *https://gist.github.com/cortix/7a5453cddac75b90f29a
> <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: [email protected]
> E-mail: [email protected]
> Gsm1: 0 544 640 96 25
> Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara
>

Reply via email to