Seems like a common requirement to customise a component by having it create a different type of component within it. Like ListView.newItem or IItemFactory. Is extending the component to implement such a method any better than passing in an object that implements some factory interface?
Passing in a factory object seems better for re-use since you can only extend an object once... Limits what the constructor can access more but that may be a good thing? Guess with an interface we get to choose. -- View this message in context: http://www.nabble.com/most-sensible-factory-pattern-for-a-component-tf4514777.html#a12877154 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
