Re: extends statement

2011-04-19 Thread Martin Grigorov
Show us some code.
The scenario is valid. It seems you are doing something wrong.

On Mon, Apr 18, 2011 at 9:53 PM, Tomas Mihok  wrote:

> Hello,
>
> I created a web application with module as reausable component in it. Here
> is how it looks like (very simple):
>
> Index.html - 2 links (they are in  list) and module added through 
> Index.Java extends HomePage with three add statements (2 x
> BookmarkablePageLink and one ModuleOne())
> OtherPage.html - 2 links (they are in  list) and module added through
> 
> OtherPage.java - extends HomePage with three add statements (2 x
> BookmarkablePageLink and one ModuleTwo())
>
> When I run the application both modules show up and links don't work.. Can
> both pages extend HomePage? Thank you for your comments.
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: extends statement

2011-04-18 Thread Mike Mander

Am 18.04.2011 20:53, schrieb Tomas Mihok:

Hello,

I created a web application with module as reausable component in it. Here
is how it looks like (very simple):

Index.html - 2 links (they are in  list) and module added through
Index.Java extends HomePage with three add statements (2 x
BookmarkablePageLink and one ModuleOne())
OtherPage.html - 2 links (they are in  list) and module added through

OtherPage.java - extends HomePage with three add statements (2 x
BookmarkablePageLink and one ModuleTwo())

When I run the application both modules show up and links don't work.. Can
both pages extend HomePage? Thank you for your comments.

This is a strange description. Could you please provide the code here. 
Otherwise it is hard to understand where your problem is.


Generaly every class can extend another non-final class.

Cheers
Mike

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



extends statement

2011-04-18 Thread Tomas Mihok
Hello,

I created a web application with module as reausable component in it. Here
is how it looks like (very simple):

Index.html - 2 links (they are in  list) and module added through 
Index.Java extends HomePage with three add statements (2 x
BookmarkablePageLink and one ModuleOne())
OtherPage.html - 2 links (they are in  list) and module added through

OtherPage.java - extends HomePage with three add statements (2 x
BookmarkablePageLink and one ModuleTwo())

When I run the application both modules show up and links don't work.. Can
both pages extend HomePage? Thank you for your comments.