On Thu, Jan 6, 2011 at 7:24 PM, Gustavo Hexsel <ghex...@gmail.com> wrote: > One of the cool things about scala is that you could have a model concept > without a model class. You just need to receive 2 functions, a setter and a > getter (or just a setter for read-only models). So for instance a ListView > could have a model-less signature like: > ListView[T](id:String, => Iterable[T]) > or the like. You can then just use first-class functions to do that: > add(new ListView("rows", myService.list)) >
What about detaching?