[Lift] Re: FieldIdentifier

2009-09-07 Thread marius d.
A MappedField is a FieldIdentifier. In a field you can override validate function and return a list of FieldError. You need to override uniqueFieldId and return the ID of the page element that will hold the specific error message. It is the ID that you specified to the lift:msg id=abc/ tag. In

[Lift] Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
Hi Everyone, I am writing a simple application which, given a HTTP PUT request, attempts to retrieve an entry from the database (MySql in this case), update the entry and respond appropriately. The entry in question has an unique primary key. Here is the code in question: def update(serial:

[Lift] Hudson build down?

2009-09-07 Thread Jeppe Nejsum Madsen
Hi, Seems like it's been 5 days without a build, but there has been plenty of action on github. But looking at the maven repo it looks like there has been a snapshot release on sep 7 Is this a manual build or is this no longer the build server for lift:

[Lift] Where did AnyVar go ?

2009-09-07 Thread Marius
Hi, I just did a pull and get a bunch of compile time errors obviously. Seems like someone kidnapped AnyVar? Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

[Lift] Re: Where did AnyVar go ?

2009-09-07 Thread marius d.
Same question for Injector, SimpleInjector etc. Br's, Marius On Sep 7, 4:08 pm, Marius marius.dan...@gmail.com wrote: Hi, I just did a pull and get a bunch of compile time errors obviously. Seems like someone kidnapped AnyVar? Br's, Marius

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
On Sep 7, 6:23 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: What is the return value of saved_? on the mapper? Also I wonder if there's any relevant information in the thread that discussed writing a MAC address primary key. - Somindra  

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Somindra Bhattacharya
Hi Folks, Apologies for posting in bits. I am very new to LIFT and am discovering many of its aspects. I changed the code and tried doing a delete instead of an update: def updateMJLocalIP(serial: String, req: Req): LiftResponse = { Log.info(updateMJLocalIP: + serial + + req.xml)

[Lift] Re: Where did AnyVar go ?

2009-09-07 Thread Ross Mellgren
http://github.com/dpp/liftweb/commit/4dce48dfe938b92ae2ed50445dab1f4c2d104a4f Looks like DPP removed it, and based on the surrounding commit, maybe the intention was to put it in util somewhere, though the commit did not add it back anywhere. -Ross On Sep 7, 2009, at 9:21 AM, marius d.

[Lift] solution to jetty:run locks files on windows problem

2009-09-07 Thread jon
Hi all, If you happen to be developing under windows you will notice that mvn jetty:run locks files and prevents editing while the server is running. Super annoying. The problem is that jetty memory maps files by default and windows locks memory mapped files. The solution is to turn off the

[Lift] Re: Mapper tries to insert entry instead of updating fetched entry

2009-09-07 Thread Naftoli Gugenheim
So follow the source code of saved_? and figure out what false information it's calculating. You may have to override something like keyIndicatesSaved. I recently asked if the logic for saved_? could be changed to use a flag to track if it actually was saved. DPP didn't seem so thrilled to

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread Timothy Perrett
Jon, good stuff - perhaps write this up on the wiki: http://wiki.github.com/dpp/liftweb Cheers, Tim On Sep 7, 6:09 pm, jon jonhoff...@gmail.com wrote: Hi all, If you happen to be developing under windows you will notice that mvn jetty:run locks files and prevents editing while the server

[Lift] Re: Hudson build down?

2009-09-07 Thread Timothy Perrett
I've just triggered a manual build - so lets see if it works. Cheers, Tim On Sep 7, 9:19 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, Seems like it's been 5 days without a build, but there has been plenty of action on github. But looking at the maven repo it looks like there

[Lift] Re: Hudson build down?

2009-09-07 Thread Timothy Perrett
OK, so its been running for a while now and it looks like its featuring that same file open problem as before Can one of the admins fix it? Cheers, Tim On Sep 7, 6:54 pm, Timothy Perrett timo...@getintheloop.eu wrote: I've just triggered a manual build - so lets see if it works. Cheers,

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread jon
Done: http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-with-jettyrun-in-windows On Sep 7, 1:49 pm, Timothy Perrett timo...@getintheloop.eu wrote: Jon, good stuff - perhaps write this up on the wiki: http://wiki.github.com/dpp/liftweb Cheers, Tim On Sep 7, 6:09 pm, jon

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
Tim, You are right. Protecting resources and menu items is well documented in Lift. But providing read/write permissions, and even restricting access to specific data entities based on a subject's role, if that's what you mean by more granularity, is often a required use case in an application.

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread marius d.
On Sep 7, 10:53 pm, glenn gl...@exmbly.com wrote: Marius, In practical terms, if I am already using an If LocParam, as in the following: If(() = User.isa_?(admin), S.?(not_authorized)) what does adding HttpAuthProtected(() = User.authorize(admin)) to the Loc do? It sais that this Loc

[Lift] Re: solution to jetty:run locks files on windows problem

2009-09-07 Thread Timothy Perrett
Thanks Jon, thats super. Cheers, Tim On Sep 7, 7:25 pm, jon jonhoff...@gmail.com wrote: Done:http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-wi... On Sep 7, 1:49 pm, Timothy Perrett timo...@getintheloop.eu wrote: Jon, good stuff - perhaps write this up on the wiki:

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
Marius, Please bear with me. I'm a little slow in following the logic here. I understand I can protect the resource as you suggest from all but users with admin roles, using the LocParam, HttpAuthProtected(() = Full(AuthRole(admin) . Now, when I click on the link, if no user is logged in,

[Lift] Crazy idea for lift's mega proto user: admin panel.

2009-09-07 Thread DFectuoso
I was thinking about how wonderful it is to get a login/register/ forgotPassword functionality with mega proto user and how it could become even better with a good tool for creating an admin section. I'm just adding the idea here so maybe if other people find value it could be considered for

[Lift] Re: CRUDify

2009-09-07 Thread Randinn
I'll ask the author. On Sep 2, 3:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: Good stuff!  Care to add a wiki page http://wiki.github.com/dpp/liftwebthat points to these blog posts? On Tue, Sep 1, 2009 at 10:10 AM, Randinn rand...@gmail.com wrote: Here are a couple of good

[Lift] vs amp; within attributes in templates

2009-09-07 Thread Grant Wood
Hello Lifters, If I create a template with the following: lift:surround with=page_master at=content a class=thickbox href=/media/?height=440width=640Foo/a lift:bind name=content / /lift:surround I will be served an empty page, containing none of my snippets, and throwing or logging no

[Lift] rewrite problem

2009-09-07 Thread night_stalker
I want to make RESTful urls (not REST API), for example: /post/123 is mapped to post/show.html with param id=123 but the following rewrite rule seems recursive LiftRules.rewrite.append { case RewriteRequest(ParsePath(List(post, id), _, _, _), _, _) =