[Lift] Re: Snippet inside of a Snippet

2009-09-03 Thread José María
Ok, I've run mvn clean jetty:run and it works now. Thanks. On 3 sep, 03:16, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 2, 2009 at 3:55 PM, José María josemariar...@gmail.com wrote: SOLVED lazy val id = S.param(id).flatMap(Helpers.asLong) openOr -1L I changed it to:

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
Unfortunately you cannot escape from asInstanceOf . Forcing self:MapperType the type of this will be TimeStamp with MapperType violating the constraint for the type of the first parameter of MappedDateTime :T : Mapper[T]. Regards Giuseppe On 3 Set, 07:08, Naftoli Gugenheim naftoli...@gmail.com

[Lift] Re: XML - JSON converter?

2009-09-03 Thread David Pollak
Nothing that I know of but maybe Joni could add it to the new json parse On Wednesday, September 2, 2009, harryh har...@gmail.com wrote: Is there anything built into lift that will do XML - JSON conversion?  For example: foos  foo    id1/id    nameHarry/name  /foo  foo    id2/id

[Lift] Re: Wizard code in master

2009-09-03 Thread Timothy Perrett
Thought as much ;-) Just something else to throw into discussion, but perhaps it would be great if wizard processes could be serialised into a couple of formats (XML, JSON??)... this is something that I could see myself using to load different wizard steps dynamically from my database or such.

[Lift] Re: Mapper and Primary Keys

2009-09-03 Thread Somindra Bhattacharya
Indrajit, Thanks! The problem was in the pom.xml. I fixed that to 1.1-SNAPSHOT and the problem went away. Regards, Som On Sep 2, 8:59 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: Som, 1. Your source code had dbAutoGenerated_?. The actual function is dbAutogenerated_? (g is in

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-09-03 Thread finelinestudio
test .. can't see previous post On Sep 1, 6:31 pm, Timothy Perrett timo...@getintheloop.eu wrote: It's on the github wiki: http://wiki.github.com/dpp/liftweb Cheers, Tim Sent from my iPhone On 1 Sep 2009, at 07:23, Andreas andreas.heissenber...@gmail.com   wrote: How do I

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-09-03 Thread TylerWeir
test .. can't see previous post New members are moderated. --~--~-~--~~~---~--~~ 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,

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-09-03 Thread finelinestudio
Hi, I followed this: http://jpkutner.blogspot.com/2009/08/scala-and-lift-on-google-app-engine.html then copied all the liftweb 1.1 and associated JARs into a GAE web project WEB-INF/lib, and added them to the classpath, and the app source files into src, (appropriately packaged). I found it all

[Lift] May I know websites powered by Lift?

2009-09-03 Thread surfman
I tried searching websites powered by Lift but failed. Any one knows any? I suggest that David should edit a page list all websites powered by Lift on Liftweb Project. It will be great useful. Thanks. --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: XML - JSON converter?

2009-09-03 Thread Joni Freeman
Ok, added. This is a quick hack just to explore the problem so expect bugs, holes in logic and such. Example usage: http://github.com/dpp/liftweb/blob/f974b41c56afa500e9d93371f0ce21bde3c854ce/lift-json/src/test/scala/net/liftweb/json/XmlExamples.scala Cheers Joni On Sep 3, 2:40 am, David

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
As an alternative to asInstanceOf you could use explicit type parameter in MappedField creation: self:MapperType = object xdatetime extends MappedDateTime[MapperType](this) On 3 Set, 09:19, Giuseppe Fogliazza g.foglia...@mcmspa.it wrote: Unfortunately you cannot escape from asInstanceOf .

[Lift] Re: Mapper subclasses

2009-09-03 Thread jon
You could also do this: trait HasCreated [T : HasCreated[T]] extends KeyedMapper[Long, T] { self: T = object created_at extends MappedDateTime(this) } //mix into your meta object: trait HasCreatedMetaMapper[T : HasCreated[T]] { self: T with LongKeyedMetaMapper[T] = import

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
jon suggested to me the way to avoid both explicit type parameter and asinstance of: trait Timestamp[MapperType : TimeStamp[MapperType]] extends Mapper [MapperType] { self:MapperType = object xdatetime extends MappedDateTime(this) // all sorts of utility functions for dealing with timestamps

[Lift] Re: Dependency Injection in Lift

2009-09-03 Thread Kris Nuttycombe
On Wed, Sep 2, 2009 at 11:05 PM, Chris Lewisburningodzi...@gmail.com wrote: DPP's explanation of how to mock infrastructure code (bound to S, etc) made since, but it still feels a bit sketchy. Again, this may be my misunderstanding, but he's saying to do something like replace the value of

[Lift] Re: Dependency Injection in Lift

2009-09-03 Thread Chris Shorrock
Let me prefix this by saying this has been a brilliant conversation with some obviously smart people and has been enjoyable to follow over the past little bit. I'll argue (briefly as possible, although I'm notoriously wordy) that one of the biggest deltas between the two sides of the conversation

[Lift] Re: Dependency Injection in Lift

2009-09-03 Thread Kris Nuttycombe
This is a great analysis, Chris, thank you. I'll be saving this one away for my next discussion of DI and IOC - the Law of Demeter point is a particularly salient one that had been implicit in my thinking but really needs to be discussed. As usual, when people have different axioms communication

[Lift] Re: Mapper subclasses

2009-09-03 Thread glenn
I'm not sure of what the exact problem is. I created an Address trait that I couple with a number of mapper classes. trait Address[OwnerType : KeyedMapper[Long, OwnerType]]{ def owner = this.asInstanceOf[OwnerType] Where exactly does this construct break down? Glenn... On Sep 3, 7:55 

[Lift] Re: Mapper subclasses

2009-09-03 Thread glenn
Isn't this really a matter of type casting, and asInstanceOf is just Scala's way of doing this. It's always best if you don't have to downcast your objects, but sometimes its unavoidable. Glenn... On Sep 3, 10:29 am, glenn gl...@exmbly.com wrote: I'm not sure of what the exact problem is. I

[Lift] Re: Dependency Injection in Lift

2009-09-03 Thread Timothy Perrett
Guys, Can I direct this thread to a previous discussion on DI / IoC that took place on EPFL scala-user list: http://www.nabble.com/Dependency-injection-in-Scala--ts15229956.html Some interesting thoughts on there that appear to be most relevant to this thread :-) Cheers, Tim

[Lift] Re: Mapping MappedDouble to Postgres database

2009-09-03 Thread Derek Chen-Becker
Sorry, had the date wrong. It's next Wednesday. Derek On Tue, Sep 1, 2009 at 5:06 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: There's 1.0.1-SNAPSHOT, and tomorrow I'll be rolling out 1.0.1 (final). Both of these have the fix. On Tue, Sep 1, 2009 at 3:45 PM, Naftoli Gugenheim

[Lift] lift:msgs - how to override the default markup?

2009-09-03 Thread george
Hello folks, If I want to change the XHTML output of the builtin snippet Msgs, what is the best way to do that? / Can I do that? Say for example if I didn't want an unordered list.. thanks --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: lift:msgs - how to override the default markup?

2009-09-03 Thread Ross Mellgren
I built my own snippet and then used the hook DPP gracefully provided in LiftRules called noticesToJsCmd to make the AJAX generated notices look the same. -Ross Here's the version I use, for reference: /** * Snippet for showing page level and field level messages, like the lift builtin

[Lift] Re: lift:msgs - how to override the default markup?

2009-09-03 Thread marius d.
In Boot you can do: LiftRules.snippetDispatch.prepend { case Msgs = MyMsgs } where MyMsg is : object MyMsg extends DispatchSnippet { } But the simplest way is to simply not use Msgs snippet and build your own one. There is no magic in Msgs snippet. You can probably inspire your code

[Lift] Re: lift:msgs - how to override the default markup?

2009-09-03 Thread Ross Mellgren
Ah, graciously is what I meant, I can't comment on the gracefulness of his commit ;-) -Ross On Sep 3, 2009, at 3:29 PM, Ross Mellgren wrote: I built my own snippet and then used the hook DPP gracefully provided in LiftRules called noticesToJsCmd to make the AJAX generated notices look

[Lift] Re: lift:msgs - how to override the default markup?

2009-09-03 Thread george
thanks marius, I'll explore both options and hopefully I'll learn some more about scala and lift along the way.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: lift:msgs - how to override the default markup?

2009-09-03 Thread marius d.
Note that noticesToJsCmd is used for Ajax propagated notices and not when rendering the actual page when the Msgs snippet is executed. Br's, Marius On Sep 3, 10:59 pm, george geo...@mattandgeorge.com wrote: thanks marius, I'll explore both options and hopefully I'll learn some more about

[Lift] Common type of several MetMappers

2009-09-03 Thread Naftoli Gugenheim
def lookupTable(v: Value) = v match { case Lookup = LookupTable case RangleLookup = RangeLookupTable } Causes a compiler crash (sometimes?). LookupTable and RangeLookupTable are LongKeyedMetaMappers. What type information can I add without casting? Thanks.

[Lift] Lift and Cappuccino integration... a first step

2009-09-03 Thread David Pollak
Folks, Hearkening back to my NextStep days, I took a dive into Cappuccino today. Yep... Obj-J is just like Obj-C and Cappuccino faithfully captures AppKit goodness. I've integrated Lift with Cappuccino. The integration points are as follows: 1. A Lift application serves the Cappuccino

[Lift] Re: Lift and Cappuccino integration... a first step

2009-09-03 Thread Daniel Daley
Wow, great stuff! I was considering looking into using Cappuccino but was afraid of the integration troubles with Lift. Now I think I'll take a second look, I've always been a fan of Obj-C. --Dan-- On Sep 3, 2009, at 4:10 PM, David Pollak wrote: Folks, Hearkening back to my NextStep

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-09-03 Thread finelinestudio
Thanks Tyler, thought it might be something like that. I can see that a more conventional approach of running mvn: eclipse on the standard lift example project creates an eclipse project without the problems mentioned above - so that gives me something to go on to find what's up with my GAE

[Lift] Mastering SiteMap

2009-09-03 Thread Peter Robinett
Hi all, I haven't been able to find many detailed explanations about how use SiteMap, so I went through and tried write up a decent walkthrough: http://www.bubblefoundry.com/blog/2009/09/understanding-lifts-sitemap/ My knowledge is still pretty basic, so I'd appreciate any comments and

[Lift] Re: May I know websites powered by Lift?

2009-09-03 Thread Randinn
http://groups.google.com/group/liftweb/browse_thread/thread/ed8f9e8e44f3c23f On Sep 4, 12:07 am, surfman chinasmile...@gmail.com wrote: I tried searching websites powered by Lift but failed. Any one knows any? I suggest that David should edit a page list all websites powered by Lift on

[Lift] Re: Common type of several MetMappers

2009-09-03 Thread David Pollak
On Thu, Sep 3, 2009 at 3:15 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: def lookupTable(v: Value) = v match { case Lookup = LookupTable case RangleLookup = RangeLookupTable } Causes a compiler crash (sometimes?). Hmmm what's the compiler crash? LookupTable and

[Lift] Label in ChoiceHolder.toForm

2009-09-03 Thread Naftoli Gugenheim
Shouldn't ChoiceHolder.toForm use a label instead of a span? This way you can click on the text, not just the control, to select it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] Re: Common type of several MetMappers

2009-09-03 Thread Naftoli Gugenheim
One of those exception when transforming types -- it prints the verbosified version of the function, then keeps going up the AST tree and printing. Then there's a InvocationTargetException caused by ...symtab.Types$TypeError: type mismatch; found: (Super-expanded recursive type) Etc. This

[Lift] Re: Common type of several MetMappers

2009-09-03 Thread David Pollak
On Thu, Sep 3, 2009 at 4:21 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: One of those exception when transforming types -- it prints the verbosified version of the function, then keeps going up the AST tree and printing. Then there's a InvocationTargetException caused by

[Lift] Re: Label in ChoiceHolder.toForm

2009-09-03 Thread David Pollak
http://github.com/dpp/liftweb/commit/68c85dcd5f11c860af5e6a5c034fbe70f7a5d387 You can specify (inject ;-) ) a different mechanism for turning the ChoiceItem into NodeSeq in the ChoiceHolder companion object. On Thu, Sep 3, 2009 at 4:11 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Shouldn't

[Lift] Re: Label in ChoiceHolder.toForm

2009-09-03 Thread Ross Mellgren
FYI, you leaked some extra characters into the license block: - * See the License for the specific language governing permissions 0 + * See the License for the specifichoicec language governing permissions -Ross On Sep 3, 2009, at 7:40 PM, David Pollak wrote:

[Lift] Re: Label in ChoiceHolder.toForm

2009-09-03 Thread David Pollak
On Thu, Sep 3, 2009 at 4:48 PM, Ross Mellgren dri...@gmail.com wrote: FYI, you leaked some extra characters into the license block: - * See the License for the specific language governing permissions 0 + * See the License for the specifichoicec language governing permissions tnx -Ross

[Lift] Re: Dependency Injection in Lift

2009-09-03 Thread David Pollak
On Wed, Sep 2, 2009 at 9:06 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: On Wed, Sep 2, 2009 at 4:30 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: On Wed, Sep 2, 2009 at 1:27 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: I think that the following really

[Lift] Re: Lift and Cappuccino integration... a first step

2009-09-03 Thread TylerWeir
Stupendous stuff Dave! On Sep 3, 6:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Hearkening back to my NextStep days, I took a dive into Cappuccino today. Yep... Obj-J is just like Obj-C and Cappuccino faithfully captures AppKit goodness. I've integrated Lift with