Lifted,

Apparently i'm not keeping pace with the Jones'. The following code fragment
used to work and now it doesn't.

  val entries =
      (Menu(Loc("Home", "/", "Home"))
       :: Menu(Loc("REPLForm.1", "/AJAXREPLForm", "R-E-P-L",
If(User.loggedIn_? _, "x")))
       :: Menu(Loc("GrammarSpec.1", "/GrammarSpec", "Grammar",
If(User.loggedIn_? _, "x")))
//       :: Menu(Loc("Examples.1", "examples", "Examples",
If(User.loggedIn_? _, "x")))
       :: User.sitemap)

This now generates the following complaints.

> mvn compile
...

[INFO] Compiling 93 source files to
/Users/lgm/work/src/projex/biosimilarity/agency/target/classes
[WARNING]
/Users/lgm/work/src/projex/biosimilarity/agency/src/main/scala/bootstrap/liftweb/Boot.scala:28:
error: type mismatch;
[WARNING]  found   : java.lang.String("/")
[WARNING]  required:
net.liftweb.sitemap.Loc.Link[net.liftweb.sitemap.NullLocParams]
[WARNING]       (Menu(Loc("Home", "/", "Home"))
[WARNING]                         ^
[WARNING]
/Users/lgm/work/src/projex/biosimilarity/agency/src/main/scala/bootstrap/liftweb/Boot.scala:29:
error: overloaded method value apply with alternatives
(String,net.liftweb.sitemap.Loc.Link[net.liftweb.sitemap.NullLocParams],net.liftweb.sitemap.Loc.LinkText[net.liftweb.sitemap.NullLocParams],List[net.liftweb.sitemap.Loc.LocParam])net.liftweb.sitemap.Loc[net.liftweb.sitemap.NullLocParams]
<and>
(String,net.liftweb.sitemap.Loc.Link[net.liftweb.sitemap.NullLocParams],net.liftweb.sitemap.Loc.LinkText[net.liftweb.sitemap.NullLocParams],net.liftweb.sitemap.Loc.LocParam*)net.liftweb.sitemap.Loc[net.liftweb.sitemap.NullLocParams]
cannot be applied to
(java.lang.String,java.lang.String,java.lang.String,net.liftweb.sitemap.Loc.If)
[WARNING]        :: Menu(Loc("REPLForm.1", "/AJAXREPLForm", "R-E-P-L",
If(User.loggedIn_? _, "x")))
[WARNING]                ^
[WARNING] two errors found
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] command line returned non-zero value:1
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 27 seconds

Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to