[Lift] Re: Parsing JSON POST

2009-07-16 Thread Jeppe Nejsum Madsen
David Pollak writes: > You can use: > Box.asA[Map[String, _]](in) which will return Full(in) if in is a > Map[String, _] or Empty if it's not. This helps in for comprehensions. Ah, didn't know that. Very nice! /Jeppe --~--~-~--~~~---~--~~ You received this mes

[Lift] Relax test cases?

2009-07-16 Thread Heiko Seeberger
Hi, As I am travelling a lot I often use my MacBook Air for coding. This morning I ran into the following issue when trying to build Lift: --- Test set: net.liftweb.textile.TextileSpecTest -

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-16 Thread Naftoli Gugenheim
Why don't you use a SHtml.hidden with a callback? - Jonathan Meeks wrote: I have a snippet (call it the "file manager" snippet) that creates a list of snippet tags (each called "file deletion" snippets) to create a virtual file listing with a deletion form ne

[Lift] Snippets creating snippets with embedded 'attributes'

2009-07-16 Thread Jonathan Meeks
I have a snippet (call it the "file manager" snippet) that creates a list of snippet tags (each called "file deletion" snippets) to create a virtual file listing with a deletion form next to each of the file names. These "file deletion" snippet methods need to somehow know their corresponding fil

[Lift] Re: Stringing binds

2009-07-16 Thread Naftoli Gugenheim
Is your question why I would want multiple prefixes for a snippet? Or you didn't understand my question? Meanwhile I made myself an implicit so you can call bind on the NodeSeq and chain binds. - David Pollak wrote: Can you provide sample XML? On Thu, Jul 1

[Lift] Re: Using a nonstandard format for notices/warnings/errors

2009-07-16 Thread David Pollak
On Thu, Jul 16, 2009 at 5:10 PM, Ross Mellgren wrote: > Darn if that ain't a fast commit, thanks. > I do have the question though, which is if I'm building new applications > based on lift which will be used in a production setting, which would be the > best codestream to use -- 1.1-Mn, 1.0 or he

[Lift] Re: Using a nonstandard format for notices/warnings/errors

2009-07-16 Thread Ross Mellgren
Darn if that ain't a fast commit, thanks. I do have the question though, which is if I'm building new applications based on lift which will be used in a production setting, which would be the best codestream to use -- 1.1-Mn, 1.0 or head? It seems like head is kept fairly stable. -Ross On

[Lift] Re: Stringing binds

2009-07-16 Thread David Pollak
Can you provide sample XML? On Thu, Jul 16, 2009 at 4:36 PM, Naftoli Gugenheim wrote: > > What's the best way for a snippet to bind multiple prefixes? Currently I > nest one call to bind as the NodeSeq for another, but that isn't so good for > more than two. > > > > -- Lift, the simply functio

[Lift] Stringing binds

2009-07-16 Thread Naftoli Gugenheim
What's the best way for a snippet to bind multiple prefixes? Currently I nest one call to bind as the NodeSeq for another, but that isn't so good for more than two. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Lift] Re: Custom field display name

2009-07-16 Thread David Pollak
On Thu, Jul 16, 2009 at 4:14 PM, Naftoli Gugenheim wrote: > > How do you specify custom display names for MappedFields? object foo extends MappedInt(this) { override def displayName = "Bar" } object baz extends MappedInt(this) { override def displayNameHtml = Full(Biz Baz) } > > > > >

[Lift] Re: Custom field display name

2009-07-16 Thread Naftoli Gugenheim
Never mind, I found MappedField.displayName. - Naftoli Gugenheim wrote: How do you specify custom display names for MappedFields? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Custom field display name

2009-07-16 Thread Naftoli Gugenheim
How do you specify custom display names for MappedFields? --~--~-~--~~~---~--~~ 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, se

[Lift] Re: Using a nonstandard format for notices/warnings/errors

2009-07-16 Thread David Pollak
S.noticesToJsCmd is now a function on LiftRules that you can change up to your heart's content. On Thu, Jul 16, 2009 at 2:30 PM, Ross Mellgren wrote: > > I wrote a custom snippet to replace lift:Msgs because I didn't like > the way the formatting was fixed in place (... div>) and didn't feel lik

[Lift] Using a nonstandard format for notices/warnings/errors

2009-07-16 Thread Ross Mellgren
I wrote a custom snippet to replace lift:Msgs because I didn't like the way the formatting was fixed in place (...) and didn't feel like doing CSS hackery to get what I wanted. The only problem with this is that AJAX notifications apparently use a baked in and unchangeable method S.noticesTo

[Lift] Re: Jetty & PermGen

2009-07-16 Thread Alex Boisvert
I'm not sure how to do this with jetty:run (I don't use it myself). I had a quick look at the config page at http://mojo.codehaus.org/jetty-maven-plugin/usage.html but there isn't any related configuration option to specify jars outside of the webapp itself. alex On Thu, Jul 16, 2009 at 1:08 PM

[Lift] Re: Parsing JSON POST

2009-07-16 Thread David Pollak
You can use: Box.asA[Map[String, _]](in) which will return Full(in) if in is a Map[String, _] or Empty if it's not. This helps in for comprehensions. On Wed, Jul 15, 2009 at 12:00 PM, Jeppe Nejsum Madsen wrote: > > On Wed, Jul 15, 2009 at 11:27 AM, fbettag wrote: > > > > Any variation i try giv

[Lift] Re: Jetty & PermGen

2009-07-16 Thread Naftoli Gugenheim
(Some time has elapsed, sorry...) That definitely could be it. One of my launch configurations is the default mvn jetty:run, and I have H2 added as a dependency. It's being initialized in web.xml as per H2's instructions, with -tcpAllowOthers, and Boot (DBVendor) connects via TCP. What should I

[Lift] Re: LiftRule.maxConcurrentRequests not used anywhere ...

2009-07-16 Thread David Pollak
On Thu, Jul 16, 2009 at 11:21 AM, marius d. wrote: > > I could probably take a look into this if you're too busy. > > The way I see it is that if this number is exceeded comet-actors for > this session should be terminated and we should probably return an > HTTP error status back to client. Nop

[Lift] Re: Lifespan of mapSnippet

2009-07-16 Thread David Pollak
On Wed, Jul 15, 2009 at 6:18 PM, Naftoli Gugenhem wrote: > So you use it in one snippet function to remap a subsequent snippet in the > same page load? You can also use a function that's part of a query parameter to set the instance that should service a snippet. This is how stateful snippets w

[Lift] Re: LiftRule.maxConcurrentRequests not used anywhere ...

2009-07-16 Thread marius d.
I could probably take a look into this if you're too busy. The way I see it is that if this number is exceeded comet-actors for this session should be terminated and we should probably return an HTTP error status back to client. Br's, Marius On Jul 16, 7:21 pm, David Pollak wrote: > On Thu, Ju

[Lift] TableSorter and Crudify

2009-07-16 Thread Andrea Peruffo
Hello, I'm extending the crudify to use tablesorter as default into the list table, but it looks like jquery cannot be used in the page. I've imported it in the default page wrapper and I have no problem (also with the same code) in the pages that I create manually... Any idea? This is an exa

[Lift] Re: Iterate over mapper fields

2009-07-16 Thread David Pollak
On Wed, Jul 15, 2009 at 9:00 PM, Naftoli Gugenhem wrote: > > Is there a way to get a list of a mapper's fields, without relying on > fieldOrder being defined? On MetaMapper: /** * Get the fields (in order) for displaying a form */ def formFields(toMap: A): List[MappedField[_, A]] = de

[Lift] Re: Disabling the lift auto-reload on webapp restart?

2009-07-16 Thread David Pollak
On Thu, Jul 16, 2009 at 3:20 AM, Ellis wrote: > > > liftweb auto-reinjects it. > > Hmm, I know it puts some extra code in, but I stopped the auto-loading > a few weeks ago by just editing the template file... > > Another possibility is to tell lift not to use jQuery. It's just a > single command

[Lift] Re: LiftRule.maxConcurrentRequests not used anywhere ...

2009-07-16 Thread David Pollak
On Thu, Jul 16, 2009 at 9:13 AM, Marius wrote: > > Do we have any plans of using this or should we remove it ? > > Generally limiting the number of concurrent requests per session is a > good thing but jus' checking We will have a use for it. Please do not remove. It has to do with the number

[Lift] LiftRule.maxConcurrentRequests not used anywhere ...

2009-07-16 Thread Marius
Do we have any plans of using this or should we remove it ? Generally limiting the number of concurrent requests per session is a good thing but jus' checking Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[Lift] Re: Error with building on mac

2009-07-16 Thread Timothy Perrett
Yeah I just found the same problem - this is quite strange... On 16/07/2009 15:52, "Janko Boehme" wrote: > > I had to update the jetty version from 6.1.16 to 6.1.19 in my pom.xml > this morning to get my project to compile. > > janko --~--~-~--~~~---~--~~ Y

[Lift] Re: Error with building on mac

2009-07-16 Thread Janko Boehme
I had to update the jetty version from 6.1.16 to 6.1.19 in my pom.xml this morning to get my project to compile. janko On Jul 16, 2009, at 5:42 AM, Timothy Perrett wrote: > > Hey guys, > > Lift appears to be building ok on hudson, but it wont build on mac > with the following stack trace: >

[Lift] Re: ProtoUser and securing pages

2009-07-16 Thread Chris Lewis
I did use an archetype, but it was a 1.0 and must have been the bare-bones (there were no models generated). David Pollak wrote: > > > On Wed, Jul 15, 2009 at 3:17 AM, Chris Lewis > wrote: > > > I didn't, but I'd been looking through liftweb/sites for ex

[Lift] Re: Disabling the lift auto-reload on webapp restart?

2009-07-16 Thread Ellis
> liftweb auto-reinjects it. Hmm, I know it puts some extra code in, but I stopped the auto-loading a few weeks ago by just editing the template file... Another possibility is to tell lift not to use jQuery. It's just a single command you need to put in Boot.scala, but I don't remember it off-h

[Lift] Error with building on mac

2009-07-16 Thread Timothy Perrett
Hey guys, Lift appears to be building ok on hudson, but it wont build on mac with the following stack trace: [INFO] JavaRebel: A newer version '2.0.2a' is available for download [INFO] JavaRebel: from http://www.zeroturnaround.com/download. [INFO] [INFO] + Error stacktraces are turned on. [INFO]