why? whats the point? you would generate a runtime exception in both cases.
in some variant of add you would fail earlier then in onattach, but the
error message makes it very clear what is wrong.
its just bloat imho. you will never have a design that pleases everyone, in
this case i dont think we will make things any better.
-igor
On 3/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
On 3/5/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
>
> I was hoping to prevent any one implementing the component from ever
being
> able to add more than one at development time by wrapping add() with
> something like setComponent(). I guess I will have to lean on the
method
> below and fall back on run-time exceptions.
>
> Thanks. That is helpful although not ideal.
I agree that it is not very elegant. Igor and others, how about adding
a protected non-final method like allowAdd or something?
Eelco
-------------------------------------------------------------------------
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