A couple of more 'new insights' ;)

* having a read-only option is good. Still don't agree with the
enumeration though. Jonathan came up with another reason why you don't
want to have an enumeration. If there's any more things we come up
with in the future (which would, in the case of an enumeration mean
adding a new enumeration value), you would have a silent addition
instead of an API break. We think that is bad, as you want to force
clients how to support such new functionality. Having seperate
(boolean returning) methods does that. Again, any implementation is
free to map these seperate methods into one enumeration based method.

We can't guarantee read-only models. Sure, we can proxy any IModel
object, but that would only work for very simple models. All models
that work like property models for instance can't be guaranteed unless
we would make full copies of the model objects and wrap those, which
would be way too expensive. Furthermore, as there are many ways to
secure you domain objects (like not providing public setters, or e.g.
using the new Hibernate functionality in case you use that framework),
I think we shouldn't even try to do this in Wicket. It will otherwise
confuse people/ make Wicket harder to understand, and we can't even
guarantee anything but the simplest use cases.

Eelco


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to