On 9 February 2010 13:46, Jeppe Nejsum Madsen <[email protected]> wrote:
> Robert Thurnher <[email protected]> writes:
>
>>
>> [...]
>>
>> Currently, I'm having some issues w/ getting customized page access
>> control of CRUDified models to work properly. Unfortunately, I wasn't
>> able to figure them out solely by reading documentation, code and
>> previous list threads.
>> I'm using lift-core 1.0.2
>
> I suggest you upgrade to 2.0-SNAPSHOT (or M1}, much improved :-)

Am definitely going to give that a spin (wanted to get a better feel
of Lift in general before it).
BTW, how "safe" is it to use M* resp. SNAPSHOT releases?


>> and here's a respective code snippet (from a model mixing in
>> LongCRUDify trait):
>>
>> val loggedIn = If(() => User.loggedIn_?, () =>
>>     RedirectResponse("/user_mgt/login"))
>>
>> override def createMenuLoc: Box[Menu] =
>>   Full(Menu(Loc("Create "+Prefix, createPath, createMenuName,
>> locSnippets,
>>                 loggedIn, Loc.Template(createTemplate))))
>>
>> Now, the compiler complains about a type mismatch at createPath
>> (List[java.lang.String] instead of
>> net.liftweb.sitemap.Loc.Link[net.liftweb.sitemap.NullLocParams]).
>>
>> Probably a solution is obvious, sorry to bother you w/ this in
>> advance. :)
>
> Try to add
>
> import net.liftweb.sitemap.Loc._
>
> to get the implicits in Loc.

Thanks, that did the trick (only imported Loc.If before). :)

-- Robert


> /Jeppe



-- 
http://soup.robert42.com/

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

Reply via email to