You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tomas Mihok <to...@cnl.sk> on 2011/04/18 20:53:57 UTC

extends statement

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 <ul> list) and module added through <div>
Index.Java extends HomePage with three add statements (2 x
BookmarkablePageLink and one ModuleOne())
OtherPage.html - 2 links (they are in <ul> list) and module added through
<div>
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.

Re: extends statement

Posted by Mike Mander <wi...@gmx.de>.
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<ul>  list) and module added through<div>
> Index.Java extends HomePage with three add statements (2 x
> BookmarkablePageLink and one ModuleOne())
> OtherPage.html - 2 links (they are in<ul>  list) and module added through
> <div>
> 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: extends statement

Posted by Martin Grigorov <mg...@apache.org>.
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 <to...@cnl.sk> 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 <ul> list) and module added through <div>
> Index.Java extends HomePage with three add statements (2 x
> BookmarkablePageLink and one ModuleOne())
> OtherPage.html - 2 links (they are in <ul> list) and module added through
> <div>
> 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 <http://jweekend.com/>