Thanks for your suggestions.
I have only one question to your answer: I don't understand why you are talking about multiple inheritance in java? I don't think it is necessary here (all <wicket:child> tags are placed in the same parent class and each of these tags exists in different leaf of component hierarchy tree or maybe I am misunderstood how does these things work ;)).

Daniel

Igor Vaynberg wrote:
since markup inheritance is closely tied to component hieararchy and java does not support multiple inhertance we will not either.

what you can do is easily done with panels or fragments.

the basepage can expose two or more factory methods and derived pages can override them to swap in their own panels.

-igor


On 4/16/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
Ok, I can use panels in this example but this is not a case here (maybe
I shouldn't use leftPanel and rightPanel names, which can suggest that I
should use Panels in this example ;)).

I am talking about markup inheritance
(http://wicket.sourceforge.net/ExampleMarkupInheritance.html):
"This is done using two special Wicket tags: <wicket:child> and
<wicket:extend>. In the super markup you define where the child markup
should be put, and in the sub markup you delineate where the child
markup starts and ends."
But in all examples and in documentation there is possibilty to define
only one <wicket:child> tag per page. The use of murkup inheritance will
be much more flexible, when I can define more than one "child" section.
It is something similar to concept of templates (eg. templates in
Dreamweaver where you can define editable regions): you make a base
template where you define several editable regions (child sections) and
then you can fill these regions with some content (by <wicket:exted>) in
pages derived from this template.

Why I don't want to use panels? Because I am talking about situation
when usage of <wicket:child> and <wicket:extend> tags is more natural
than usage of panels.
I hope now it is a little more clear :).

Daniel

Marc-Andre Houle wrote:
> Maybe what you are searching would be panel?  Is there something you
> that make that make panels not work for you?
>
> Maybe I just don't understand the question, but from what I seen,
> Panel is the way you should go... :)
>
> Marc


----------------------------------------------------------------------
Dzwon za granice z komorki - 1,28 zl/min.
>>> http://link.interia.pl/f1a4c


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user




----------------------------------------------------------------------
Plan to po³owa sukcesu.
Sprawdz na >>> http://link.interia.pl/f1a41
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to