On Thu, Jun 12, 2008 at 2:06 PM, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: > Some useful design patterns like Decorator don't work with final methods. > Wicket components sometimes have overridable factory methods for child > components. The decorator pattern could be very useful here, because you'd > be able to decorate the original component with some extra functionality > (Link.onClick for example). Unfortunately this doesn't work because some > methods are final.
True, it's been weighing the disadvantages vs the advantages, and so far, ensuring that we wouldn't paint ourselves in the corner too quickly won over flexibility. I think it would be a good idea to take this into consideration with the next major API. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]