compile error in RestAPI.scala - No implicit view available #11

zachariahkral opened this Issue Oct 21, 2011 · 0 comments


None yet

1 participant


Lift version 2.4 M4
IDE: netbeans 7.0.1

Errors on line 164 and 170: No implicit view available

serveJx {
case Get(List("api", "expense", Expense(expense,_)), _) => Full(expense)

// Just an example of autoconversion
serveJx {
case Get(List("api", "greet", name),_) =>
auto(Map("greeting" ->
Map("who" -> name,
"what" -> ("Hello at " + new java.util.Date))))

as per this thread I gave the first block a hint [Expense] and it solved the issue

serveJx[Expense] {
case Get(List("api", "expense", Expense(expense,_)), _) => Full(expense)

the second (example of autoconversion), since I haven't gotten that far in the book, I just deleted. After those two changes, the whole project compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment