All,
I will soon be committing a change (thanks Naftoli) that will cause a
breaking change in Paginator from mapper.view... this will allow the
pagination paridigm to be used in a much more abstract way so it will
work with Record and anything else you can think of :-)
for those currently doing:
class Sample extends DispatchSnippet {
val paginator = new Paginator(MyModel, MyModelView, MyModel.id)
}
Replace that with:
class Sample extends DispatchSnippet {
val paginator = new SortedMapperPaginatorSnippet(MyModel,MyModel.id)
}
The signature of the various paginators is:
class SortedMapperPaginatorSnippet[T <: Mapper[T]](
meta: MetaMapper[T],
initialSort: net.liftweb.mapper.MappedField[_, T],
headers: (String, MappedField[_, T])*
)
class MapperPaginatorSnippet[T <: Mapper[T]](meta: MetaMapper[T])
Cheers, Tim
--
Subscription settings:
http://groups.google.com/group/lift-announce/subscribe?hl=en