Re: [Lift] Multipage wizards

2009-11-25 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Folks, I've completed the first pass at multi-page input Wizards in Lift. You can see an example at: http://demo.liftweb.net/wiz Great news! [...] The building of HTML forms from the given field type is based on the type (currently,

Re: [Lift] Re: Improving lift-flot

2009-11-25 Thread Timothy Perrett
David, Francois is still lurking - if changes are needed, just ping him a mail or IM and im sure he'd be happy to fix whatever peter wants. Cheers, Tim On 24 Nov 2009, at 23:59, Peter Robinett wrote: I'd be happy to but I'd appreciate some advice and guidance. Peter On Nov 24, 2:26 pm,

[Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Timothy Perrett
Guys, I have some major issues with LiftRules.explicitlyParsedSuffixes - I just wasted almost a whole day yesterday chasing around what I thought were bugs in my code but were actually issues with the new suffix handling. The list of defaults are just wa to narrow. Missing out standard web

Re: [Lift] Need for lift application to coexist with spring in the same webapp

2009-11-25 Thread Chris Lewis
Don't forget that if the lift filter is inspecting the request before your servlet, you'll need to tell lift to pass it on. In boot: LiftRules.passNotFoundToChain = true chris sunanda wrote: Hi David, Thank for all the help so far. My lift application needs to coexist with the

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Derek Chen-Becker
Was that what was preventing your dispatch from working? On Wed, Nov 25, 2009 at 4:43 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys, I have some major issues with LiftRules.explicitlyParsedSuffixes - I just wasted almost a whole day yesterday chasing around what I thought were bugs

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Timothy Perrett
Yeah :-) I had not realised that there was this list of approved extensions. I actually have a custom mime type and extension in my application and upgrading from M6 to SNAPSHOT caused this extremely difficult to debug situation. As below, some warnings or something like that would really

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Derek Chen-Becker
I would agree. In general I would lean toward being overly verbose about what's happening in Lift when in dev mode. On Wed, Nov 25, 2009 at 6:49 AM, Timothy Perrett timo...@getintheloop.euwrote: Yeah :-) I had not realised that there was this list of approved extensions. I actually have a

Re: [Lift] Is there a togglable ajax button in lift?

2009-11-25 Thread Derek Chen-Becker
I haven't tried it, but I'm pretty sure that if you give the button an id you should be able to fire the text change from the AJAX handler. Something like: import net.liftweb.http.js._ import JE._ SHtml.ajaxButton(Click me!, () = { doSomethingServerSide(); JsCmds.SetElemById(myButton, Click me

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread David Pollak
I'm not overly keen on the whitelist stuff. Someone's going to get cranky about it. I'm open to either adding a whole lot more to the white list or saying that everything n characters (e.g., 5) is a suffix unless it's on a blacklist. On Wed, Nov 25, 2009 at 5:49 AM, Timothy Perrett

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Timothy Perrett
Agreed - I work with lift every day and this was a new one on me! I think adding a whole raft of common types would be the simplest way to go an be quickest to implement. If memory serves there is a fairly comprehensive list on IANA (or some similar acronym) that we could grab and implement

[Lift] partialUpdate

2009-11-25 Thread jack
I have the following method in a CometActor override def highPriority = { case Tick(page) = { pages = processPages(pages,page) reRender(false) } } where pages is a list of Page objects. How do I make this into a partialUpdate. I looked at the chat example but do not see

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread David Pollak
On Wed, Nov 25, 2009 at 7:59 AM, Timothy Perrett timo...@getintheloop.euwrote: Agreed - I work with lift every day and this was a new one on me! I think adding a whole raft of common types would be the simplest way to go an be quickest to implement. If memory serves there is a fairly

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Timothy Perrett
Im all over it. I'll have a fix on review board within the hour. Cheers, Tim On 25 Nov 2009, at 17:09, David Pollak wrote: On Wed, Nov 25, 2009 at 7:59 AM, Timothy Perrett timo...@getintheloop.eu wrote: Agreed - I work with lift every day and this was a new one on me! I think adding

[Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread Timothy Perrett
As promised: http://reviewboard.liftweb.net/r/126/ These 447 extension types should cover mode dispatch use cases. Custom extensions / mime types will still need to add to the list, but this is alright IMHO. Your thoughts please! Cheers, Tim On Nov 25, 5:39 pm, Timothy Perrett

[Lift] Re: Newbie Question: Problems compiling/running examples

2009-11-25 Thread Jcon
Thanks for the quick response. I'm still having the same error after trying the following: 1. upgrade to maven 2.2 as suggested 2. ran 'mvn install' in the lift-examples directory again. Same error (tests failing, although I think the root cause is actually ClassNotFoundException

[Lift] lift-json question related to Lists of things

2009-11-25 Thread harryh
consider: case class Foo(id: Int, bars: List[Bar]) case class Bar(id: Int) val foo = json.extract[Foo] The following json will cause a problem: { id: 12 } This can be fixed by changing bars to an Option[List[Bar]]. Should that really be necessary though? Can't bars just be an empty list

[Lift] Validations

2009-11-25 Thread suls
Hi guys, It seems that I don't completely understand how validations work.. I am having a model with the following property: object size extends MappedInt(this) { override def validations = validPosition _ :: super.validations def validPosition(in: Int): List[FieldError] = if

Re: [Lift] Validations

2009-11-25 Thread David Pollak
On Wed, Nov 25, 2009 at 11:52 AM, suls s...@suls.org wrote: Hi guys, It seems that I don't completely understand how validations work.. I am having a model with the following property: object size extends MappedInt(this) { override def validations = validPosition _ :: super.validations

[Lift] Re: lift-json question related to Lists of things

2009-11-25 Thread Joni Freeman
Hi, Totally agreed, this makes List extraction more robust. The change is in reviewboard now: http://reviewboard.liftweb.net/r/127/ Cheers Joni On 25 marras, 20:42, harryh har...@gmail.com wrote: consider: case class Foo(id: Int, bars: List[Bar]) case class Bar(id: Int) val foo =

[Lift] Re: how does lift work with redis?

2009-11-25 Thread surfman
Thanks. Does it mean I may not use lift mapper and I have to write everything for database manipulation? regards, surfman On 11月24日, 下午5时12分, Timothy Perrett timo...@getintheloop.eu wrote: There is no out of the box implementation. You could write a record   back end though - it depends on

[Lift] Re: partialUpdate

2009-11-25 Thread jack
Just to clarify: the render function takes the list 'pages' and transforms it into HTML. On Nov 25, 11:25 am, jack jack.wid...@gmail.com wrote: I have the following method in a CometActor override def highPriority = {     case Tick(page) = {       pages = processPages(pages,page)      

Re: [Lift] Re: how does lift work with redis?

2009-11-25 Thread Tim Nelson
I haven't used redis at all but it looks like they have a jdbc driver that you might be able to use with mapper. It doesn't support all jdbc functionality but it might work well enough for your needs. If that doesn't work you could either use the jredis java client code directly inside lift or

Re: [Lift] Re: how does lift work with redis?

2009-11-25 Thread Timothy Perrett
Correct - Redis is a nosql database, mapper is only for RDBMS Cheers, Tim On 25 Nov 2009, at 20:13, surfman wrote: Thanks. Does it mean I may not use lift mapper and I have to write everything for database manipulation? regards, surfman On 11月24日, 下午5时12分, Timothy Perrett

[Lift] Re: Strip ?xml ? header from a subset of pages

2009-11-25 Thread harryh
It is not 100% obvious to me how I would, after this change is submitted, avoid sending an ?xml? header when serving pages under a certain path. Should we be adding something similar to S.skipDocType (S.skipXmlHeader)? -harryh -- You received this message because you are subscribed to the

Re: [Lift] Is there a togglable ajax button in lift?

2009-11-25 Thread Jonathan Ferguson
Will have a look over the next few days. Thanks you very much. Jono 2009/11/26 Derek Chen-Becker dchenbec...@gmail.com I haven't tried it, but I'm pretty sure that if you give the button an id you should be able to fire the text change from the AJAX handler. Something like: import

[Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
I'm using JPA, and need to do a One-Many, or master detail view. So I tried the obvious: lift:PersonSnippets.save form=post !-- form -- /lift:PersonSnippets.save lift:PersonSnippets.addContactMechanism form=post /lift:PersonSnippets.addContactMechanism However, the HTML that gets generated is

Re: [Lift] Re: Strip ?xml ? header from a subset of pages

2009-11-25 Thread David Pollak
object excludeXmlHeaderStuff extends RequestVar(false) in boot: val current = LiftRules.calculateXmlHeader LiftRules.calculateXmlHeader = (resp, node, contentType) = if (excludeXmlHeaderStuff) else current(resp, node, contentType) On Wed, Nov 25, 2009 at 2:09 PM, harryh har...@gmail.com

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Derek Chen-Becker
I don't think that that should be happening, but I would need to see the code for PersonSnippets to really see what's going on. Derek On Wed, Nov 25, 2009 at 4:16 PM, Jim Barrows jim.barr...@gmail.com wrote: I'm using JPA, and need to do a One-Many, or master detail view. So I tried the

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
package com.nsfw.snippet import _root_.net.liftweb._ import common.{Empty, Full, Box} import sitemap.{Loc} import http._ import js.{JsCmd, JsCmds} import JsCmds._ import S._ import SHtml._ import util._ import Helpers._ import _root_.javax.persistence.{EntityExistsException,

Re: [Lift] Re: Strip ?xml ? header from a subset of pages

2009-11-25 Thread Timothy Perrett
David, I read harry's other email with interest - and thinking about it, it seems this style of implementation differs quite significantly from S.skipDocType. It strikes me that a LiftRules configuration is our usual idiom; is there a reason that S.skipDocType falls out of this? One way or

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Timothy Perrett
Lift does not use markup like that - there is no magic mapping between persistence and view. You would most likly have to construct the appropriate master - detail code in your snippets and work like that. Cheers, Tim On 25 Nov 2009, at 23:16, Jim Barrows wrote: I'm using JPA, and need to

Re: [Lift] Re: Strip ?xml ? header from a subset of pages

2009-11-25 Thread David Pollak
I'm not opposed to adding a skipXmlThingy style as well, but giving the developer a generic function for inserting this XML top-matter is the higher priority. On Wed, Nov 25, 2009 at 3:24 PM, Timothy Perrett timo...@getintheloop.euwrote: David, I read harry's other email with interest - and

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
On Wed, Nov 25, 2009 at 4:26 PM, Timothy Perrett timo...@getintheloop.euwrote: Lift does not use markup like that - there is no magic mapping between persistence and view. You would most likly have to construct the appropriate master - detail code in your snippets and work like that.

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Derek Chen-Becker
That markup should be in a template file somewhere, which would then call the snippets appropriately. I don't see markup for a second form, but I might just be missing it. A couple of other notes: - Generally, on links, omit the suffix and Lift will then do I18N lookup for you as needed.

[Lift] Re: Need for lift application to coexist with spring in the same webapp

2009-11-25 Thread sunanda
Many Many thanks to David and Chris. Your suggestions helped me a lot and I am now able to run my application using both Lift Filter and Spring Servlet . Regards, Sunanda. On Nov 25, 11:35 pm, Chris Lewis burningodzi...@gmail.com wrote: Don't forget that if the lift filter is inspecting the

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
ARGGG It's contactMechanism:comment not contactMechanism.comment It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml it's colons not dots in xhtml It's colons not dots in xhtml It's

Re: [Lift] Re: Strip ?xml ? header from a subset of pages

2009-11-25 Thread Timothy Perrett
I dont disagree - I was just wanting to comment on the consistency of the API :-) Cheers, Tim On 25 Nov 2009, at 23:26, David Pollak wrote: I'm not opposed to adding a skipXmlThingy style as well, but giving the developer a generic function for inserting this XML top-matter is the higher

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Ross Mellgren
Well, except for after the snippet class name in lift:Snippet tags ;-) -Ross On Nov 25, 2009, at 7:45 PM, Jim Barrows wrote: ARGGG It's contactMechanism:comment not contactMechanism.comment It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread David Pollak
Kris blogged about a really nice pattern: http://logji.blogspot.com/ On Wed, Nov 25, 2009 at 3:16 PM, Jim Barrows jim.barr...@gmail.com wrote: I'm using JPA, and need to do a One-Many, or master detail view. So I tried the obvious: lift:PersonSnippets.save form=post !-- form --

[Lift] derby

2009-11-25 Thread jack
Could somebody point me to a quickstart or tutorial about how to use Derby with Lift? -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to