Murphy law is working :)
After spending 3 hours to find a solution - and post message here - I
found it.
I have to use ::: instead :: (create and return new list instead add
objects to old one by using ::)

Question is why this works with one additional autogenerator and
doesn't work with more than one..

On Sep 10, 12:17 pm, Marcin Jurczuk <mjurc...@gmail.com> wrote:
> Hello,
>
> I'm trying to setup basic CRUD and I almost did it.
> Problem is when creating menus:
> Here is Menu builder in Boot.conf
>
> Menu(Loc("home", List("index"), "Home")) :: User.sitemap ::
> MyModelWithCRUD.menus
>
> If I remove one of them (User.sitemap) - everything works but when I
> have both "autogenerators"
> I got following error:
> [INFO] use java command with args in file forced : false
> Boot.scala:30: error: type mismatch;
>  found   : List[Product]
>  required: List[net.liftweb.sitemap.Menu]
> def menu: List[Menu] =  Menu(Loc("home", List("index"), "Home")) ::
>
> If I remove MyModelWithCRUD.menus and leave only User.sitemap -
> everything works - they don't work together :( Why ?
>
> In API docs I can see that both of them are returning the same type  -
>         List[Menu].
>
> Probably solution is simple but I can't find it ..
>
> Best regards,
--~--~---------~--~----~------------~-------~--~----~
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