Is it possible to give a more fleshed out example (some pseudo-code
would be nice) of markup inheritance? I still don't understand it.
Gili
Eelco Hillenius wrote:
Examples of where proper inheritance works better than borders.
Say:
I have BasePage
that has MyBorder
MyPage extends BasePage, thus all components added to MyPage are
actually added to MyBorder.
The effect is that:
* if I wanted to define my messages for all pages by using the default
resource mechanism (providing a properties file), BasePage.properties is
never found as it is not part of the component hierarchy.
MyBorder.properties works, but imo is not as nice as BasePage. Having
proper inheritance, where Java inheritance matches the component
hierarchy, this would work (or should work).
* If I would define a form on BasePage, any form components on MyPage
would not participate in the validation/modelUpdate game, as they are
not part of the component hierarchy. Again, this is something that
should work when having markup inheritance.
Conclusion: though borders are nice for some things, they are in the way
of anything that needs component hierarchy, while the effect we seek by
using borders usually is to create abstractions that have a hierarchy
meaning.
Eelco
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop