[Lift Announce] **BREAKING CHANGES** Paginator

4 views
Skip to first unread message

Timothy Perrett

unread,
Apr 24, 2010, 5:01:01 PM4/24/10
to lift-announce
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
Reply all
Reply to author
Forward
0 new messages