migration to 3.0.1: pagination

35 views
Skip to first unread message

Boris Chazalet

unread,
Jan 17, 2017, 9:57:00ā€ÆAM1/17/17
to Lift
Hi everyone,

In my effort towards migrating to 3.0.1 I am struggling with making my existing pagination logic work with the Paginator rewriting using css selectors.

In particular, paginate use to bind to nav elements, e.g. <nav:prev>, <nav:next>, etc. By looking at the new code, even though is stillĀ navPrefixĀ present (but not used anywhere), it looks like the binding is done by using css classes.

My conclusion is that I need to add these classes to my nav in my templates, e.g. <nav:prev class="next"> . Is that correct, and is this documented somewhere?

Antonio Salazar Cardozo

unread,
Jan 18, 2017, 11:48:22ā€ÆAM1/18/17
to Lift
Hmm, I meant to write that but I'm not finding it so it's possible I missed it.

Let me see if I can write something up for you today, and apologies for the lack of
documentation on day 0 of the release.
Thanks,
Antonio

Antonio Salazar Cardozo

unread,
Jan 19, 2017, 9:39:00ā€ÆAM1/19/17
to Lift
An update here, I only managed to get halfway through this yesterday as I was
on a plane much of the day. Hoping to wrap up today!
Thanks,
Antonio

Boris Chazalet

unread,
Jan 20, 2017, 3:40:57ā€ÆAM1/20/17
to Lift
Hi Antonio,

I have managed to fix my code by adding css classes to my <nav> elements, so as far as I'm concerned there is no rush.

Antonio Salazar Cardozo

unread,
Jan 20, 2017, 8:10:39ā€ÆAM1/20/17
to Lift
Cool cool. Will still have something for you soon :)

Antonio Salazar Cardozo

unread,
Jan 28, 2017, 10:49:12ā€ÆAM1/28/17
to Lift
Well, that devolved into a nutty series of days, but I managed to finish this
document. It's now available at docs/migration/2.6-to-3.0-paginator.adoc in
the Lift repo, and I'll be linking it in from the release notes as well.

Glad you figured things out, hopefully that document could provide some
additional new info, and if not then thanks for prompting me to write this for
future folks who have the same question :)
Thanks,
Antonio

Diego Medina

unread,
Jan 28, 2017, 11:51:35ā€ÆPM1/28/17
to Lift
awesome work Antonio!

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Diego Medina
Lift/Scala Consultant
di...@fmpwizard.com
https://blog.fmpwizard.com/

Antonio Salazar Cardozo

unread,
Jan 30, 2017, 2:40:23ā€ÆPM1/30/17
to Lift

šŸ™‡šŸ»


As they say at Chick-fil-a, my pleasure! ;)

Antonio

Reply all
Reply to author
Forward
0 new messages