this wont work.
-igor
On 3/8/07, cowwoc <[EMAIL PROTECTED]> wrote:
How about a hybrid system?
Is there a clear-cut way to know up-front which components have an
immutable parent versus others that might require it to change during
rendering time? If so, couldn't you require the use of constructors that
take a parent for components whose parents are immutable and then for
all other components use the add() paradigm?
It seems to me that any component that knows up-front that its
parent
is supposed to change between renderings will not run any operations
that depend on that parent until render time -- hence no need to add a
isInitialized() sanity check from all your methods. All methods that
depend on the parent should only be invoked at render time and if the
component has no parent it will never be rendered in the first place
hence there is no reason to check isInitialized() again.
On the other hand, other components that require an immutable
parent
can then require it in their constructor and their methods can
implicitly assume it exists without that isInitialized() check.
Gili
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user