Massively huge *BREAKING CHANGES*

0 views
Skip to first unread message

David Pollak

unread,
Dec 5, 2008, 7:14:23 PM12/5/08
to liftweb
Folks,

I just committed a huge set of changes to Lift:
  • net.liftweb.util is broken out into its own stand-alone lift-util pacakge/JAR
  • net.liftweb.mapper is broken out into its own stand-alone lift-mapper package/JAR
  • net.liftweb.machine is broken out into its own stand-alone lift-machine package/JAR
  • net.liftweb.record is broken out into its own stand-alone lift-record package/JAR
If you are using any of those packages (99% chance you are), you must make sure your pom.xml has the following in the <dependencies> tag:
   <dependency>
      <groupId>net.liftweb</groupId>
      <artifactId>lift-util</artifactId>
      <version>0.10-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>net.liftweb</groupId>
      <artifactId>lift-webkit</artifactId>
      <version>0.10-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>net.liftweb</groupId>
      <artifactId>lift-mapper</artifactId>
      <version>0.10-SNAPSHOT</version>
    </dependency>
    <dependency>

LiftRules.TemplatePF has been removed and Lift's template look-up mechanism has been unified in LiftRules.ViewDispatchPF:
  type ViewDispatchPF = PartialFunction[List[String], Either[() => Can[NodeSeq], LiftView]]

The ProtoUser's templates method has been removed.  The LiftRules.addTemplateBefore(User.templates) will cause a compiler error.  It may be removed.  Additionally, the S.addArround(User.requestLoans) line will cause a compiler error.  It may be removed.

If you are using ProtoUser and have subclassed any menu creation methods, the Loc() in the menus must now contain a Template() item to render the proper template:

  def logoutMenuLoc: Can[Menu] =
  Full(Menu(Loc("Logout", logoutPath, S.??("logout"),
                Template(() => wrapIt(logout)),
                testLogginIn)))

Please note the highlighted line.  It contains Template(() => wrapIt(logout))  Each of your menu items must contain a similar line.

Questions?

Thanks,

David

--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

Tim Perrett

unread,
Dec 6, 2008, 11:06:33 AM12/6/08
to Lift
Excellent - this has been needed for some time and is a very welcome
addition :-)

Cheers, Tim

mbh....@gmail.com

unread,
Dec 6, 2008, 7:23:48 PM12/6/08
to Lift
On Dec 5, 4:14 pm, "David Pollak" <feeder.of.the.be...@gmail.com>
wrote:

> If you are using any of those packages (99% chance you are), you must make
> sure your pom.xml has the following in the <dependencies> tag:
>    <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-util</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-webkit</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-mapper</artifactId>
>       <version>0.10-SNAPSHOT</version>
>     </dependency>
>     <dependency>

It might be obvious to everyone, but my strained eyes didn't catch the
extra <dependency> tag in the above snippet and I scratched my head
for a few minutes trying to figure out what went wrong. Just a little
heads-up to the casual reader who may just cut-and-paste.

---Matt

David Bernard

unread,
Dec 7, 2008, 7:46:15 AM12/7/08
to lif...@googlegroups.com
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-webkit</artifactId>
<version>0.10-SNAPSHOT</version>
</dependency>

<!-- TO ADD if you use net.liftweb.util -->
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-util</artifactId>
<version>0.10-SNAPSHOT</version>
</dependency>

<!-- TO ADD if you use net.liftweb.mapper -->
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mapper</artifactId>
<version>0.10-SNAPSHOT</version>
</dependency>

... idem for machine and record.

Matt, Is it clearer ?

Matt Harrington

unread,
Dec 7, 2008, 12:38:35 PM12/7/08
to lif...@googlegroups.com
On Sun, Dec 7, 2008 at 4:46 AM, David Bernard
<david.be...@gmail.com> wrote:
>
> <dependency>
> <groupId>net.liftweb</groupId>
> <artifactId>lift-webkit</artifactId>
> <version>0.10-SNAPSHOT</version>
> </dependency>
>
> <!-- TO ADD if you use net.liftweb.util -->
> <dependency>
> <groupId>net.liftweb</groupId>
> <artifactId>lift-util</artifactId>
> <version>0.10-SNAPSHOT</version>
> </dependency>
>
> <!-- TO ADD if you use net.liftweb.mapper -->
> <dependency>
> <groupId>net.liftweb</groupId>
> <artifactId>lift-mapper</artifactId>
> <version>0.10-SNAPSHOT</version>
> </dependency>
>
> ... idem for machine and record.
>
> Matt, Is it clearer ?


Yep -- I just meant that the original snippet contained a trailing
<dependency> tag, probably from the entry for Derby since that's
typically the next one down in pom.xml.

Matt

Reply all
Reply to author
Forward
0 new messages