[Lift] Re: how to serve html fragments

2009-05-20 Thread fatu
Timothy, thanks for the links, I found them useful and I find your blog in general very interesting. Came across scala-blogs.org and it looks quite promising as well. I knew bind already from the Exploring Lift book which I pull from git, build with Lyx and keep at hand regularly. In the

[Lift] Re: how to serve html fragments

2009-05-20 Thread marius d.
As I understood you want to make an Ajax request and serve back a Document Fragment. If so please also take a look at Jx stuff. We discuss Jx classes in a fairly amount of details in the lift book. Br's, Marius On May 20, 9:32 am, fatu fab...@gmail.com wrote: Timothy, thanks for the links, I

[Lift] Re: More Actor garbage (collection)

2009-05-20 Thread Jonas Bonér
Great job. 2009/5/18 David Pollak feeder.of.the.be...@gmail.com: Folks, As you all may or may not know, I've been battling memory retention issues with the Scala Actor libraries for 6 or so months now.  I believe that I've finally nailed the complete issues. They are as follows: There

[Lift] Re: More Actor garbage (collection)

2009-05-20 Thread Timothy Perrett
Sounds great - you mention the schedular library... are you talking about the actor schedular in lift-util ? Can you describe what would cause it? Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: how to serve html fragments

2009-05-20 Thread fatu
Hi Marius, as I understand them, Jx classes help in generating JS that can itself generate DOM at the client. Am I wrong? I'd really like to serve back an HTML fragment built by using the normal Lift template pipeline (so including surround bind). Is that possible? Thanks On 20 Mag, 13:16,

[Lift] Re: how to serve html fragments

2009-05-20 Thread David Pollak
I'm about to commit S.skipDocType = true | false. If you set it to true, the !DOCTYPE .../ will be omitted from the response page. This will allow your AJAX fragements to pull parts of pages from the server. Note that someplace in your snippets, you'll have to set S.skipDocType = true. Does

[Lift] Re: More Actor garbage (collection)

2009-05-20 Thread Barry Kaplan
Can these fixes be used outside of lift? --~--~-~--~~~---~--~~ 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, send email to

[Lift] Re: More Actor garbage (collection)

2009-05-20 Thread David Pollak
On Wed, May 20, 2009 at 7:15 AM, Barry Kaplan meme...@gmail.com wrote: Can these fixes be used outside of lift? You can copy the two objects from Lift and use them elsewhere. There's nothing Lift-specific about them. -- Lift, the simply functional web framework http://liftweb.net

[Lift] Re: how to serve html fragments

2009-05-20 Thread Timothy Perrett
Neat! Not sure how it is that we have no come across this need before! Lol. Cheers, Tim On 20/05/2009 15:05, David Pollak feeder.of.the.be...@gmail.com wrote: I'm about to commit S.skipDocType = true | false.  If you set it to true, the !DOCTYPE .../ will be omitted from the response page. 

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread Gonzalo N
Thanks for the quick response. Yes, I've initialised the widget in the boot with Widget init ** In boot.scala: * package bootstrap.liftweb import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import _root_.net.liftweb.sitemap._ import _root_.net.liftweb.sitemap.Loc._ import

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
It looks like the CSS and potentially the JSdependecies are not seen by the browser ... From your page rendered take the URI for the superfish CSS and JS and put it in your browser and see if they are seen. Also firebug should yell if the CSS/JS is can not be loaded I assume that lift-widgets

[Lift] Re: Snippet name clashes

2009-05-20 Thread Alex Boisvert
Maybe an optional package attribute? e.g., lift:snippet package=com.example type=Foo.bar form=POST ... /lift:snippet alex On Wed, May 20, 2009 at 9:19 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, May 19, 2009 at 9:28 PM, Heiko Seeberger

[Lift] Problems with the MenuWidget

2009-05-20 Thread Gonzalo N
Hi, I've recently started using Lift in a project and probably my difficulty is basic, but I've tried the Widgets that are uploaded in the github web page. When I run the example, it all worked fine, the menu did have the drop-down sub-menus, but when I integrate the code of the menu (to be more

[Lift] Re: your first Lift application on GAE/J

2009-05-20 Thread glenn
I like what you've accomplished with this. I tried to set this up from the GAE side, using the GAE Eclipse plugin rather than the maven lift archetype? I took all the 30+ jars the archetype now installs and created a Eclipse User Library that I put in the project classpath. I then just put the

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
Could you please post your code ? ... Are you initializing the widget in your boot ? Br's, Marius On May 20, 7:52 pm, Gonzalo N gonn...@gmail.com wrote: Hi, I've recently started using Lift in a project and probably my difficulty is basic, but I've tried the Widgets that are uploaded in

[Lift] Re: S.init visibility?

2009-05-20 Thread David Pollak
It should be public. There may be cases when the user wants to do something on a non-request and non-CometActor thread that's still in the context of the session. On Wed, May 20, 2009 at 11:50 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: I'm working on docs and I noticed that S.init is

[Lift] Re: Snippet name clashes

2009-05-20 Thread Derek Chen-Becker
Well, I don't know that it prevents all name clashes, but you have to use LiftRules.addToPackages to tell Lift which packages to search for snippet and view classes. On Tue, May 19, 2009 at 10:28 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, As far as I understand it is not

[Lift] Re: Snippet name clashes

2009-05-20 Thread David Pollak
On Tue, May 19, 2009 at 9:28 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, As far as I understand it is not possible to specify the FQCN of a snippet class in a snippet tag. Is this true? If so, there might be name clashes: Just imagine popular names like user, customer,

[Lift] Re: S.init visibility?

2009-05-20 Thread Derek Chen-Becker
Fair enough. Thanks! On Wed, May 20, 2009 at 12:51 PM, David Pollak feeder.of.the.be...@gmail.com wrote: It should be public. There may be cases when the user wants to do something on a non-request and non-CometActor thread that's still in the context of the session. On Wed, May 20, 2009

[Lift] Re: Snippet name clashes

2009-05-20 Thread David Pollak
On Wed, May 20, 2009 at 9:38 AM, Alex Boisvert boisv...@intalio.com wrote: Maybe an optional package attribute? e.g., lift:snippet package=com.example type=Foo.bar form=POST ... /lift:snippet Dude... you're so 2008 with that syntax... :-) The current syntax is: lift:Foo.bar

[Lift] Re: Snippet name clashes

2009-05-20 Thread Alex Boisvert
2009/5/20 David Pollak feeder.of.the.be...@gmail.com On Wed, May 20, 2009 at 9:38 AM, Alex Boisvert boisv...@intalio.comwrote: Maybe an optional package attribute? e.g., lift:snippet package=com.example type=Foo.bar form=POST ... /lift:snippet Dude... you're so 2008 with that

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread Gonzalo N
After using firebug and putting the URI localhost:8080/classpath/menu/ superfish.js,as weel as the css and the jquery.hoverintent, all are being seen by the browser and in the terminal shell it doesn't return errors when reading/locating those files. In the pom I added the dependency:

[Lift] The 1.0_maint branch

2009-05-20 Thread David Pollak
Folks, I've committed code for the 1.0.1-SNAPSHOT to the 1.0_maint branch in the repository. I've tested the sample app against IE8 and it works just fine. Please give it a whirl (there's nothing in the Maven repository, you'll have to hand-build) and let me know how it's working for you.

[Lift] Re: Problems with the MenuWidget

2009-05-20 Thread marius d.
I emailed you privately an simple chat application that has the MenuWidget in it. I had no problem with putting it. If you stil can't figure it out please email me a minimalistic lift app where it just doesn't work. Br's, Marius On May 20, 10:04 pm, Gonzalo N gonn...@gmail.com wrote: After

[Lift] Cron style job support?

2009-05-20 Thread Ewan
Apologies for the cross-post with the Lift-book group but this is the more appropriate group... While this does not necessarily have anything to do with a webapp does anyone have suggestions for the means to create/register and run a cron style job? Specifically I would like to extract data

[Lift] trang maven repo/plugin?

2009-05-20 Thread Meredith Gregory
Lifted, Does anybody have a lead on a repo for trang? Even better -- a plugin would be awesome. Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com

[Lift] Re: Snippet name clashes

2009-05-20 Thread David Pollak
On Wed, May 20, 2009 at 12:02 PM, Alex Boisvert boisv...@intalio.comwrote: 2009/5/20 David Pollak feeder.of.the.be...@gmail.com On Wed, May 20, 2009 at 9:38 AM, Alex Boisvert boisv...@intalio.comwrote: Maybe an optional package attribute? e.g., lift:snippet package=com.example

[Lift] Problem with S.params

2009-05-20 Thread wilkinspoe
Hi, I have been having trouble reading a list of HTTP parameters with the same name that may or may not exist. If I call S.params(nn) and nn doesn't exist, it throws a NoSuchElementException: key not found. I was expecting an empty List. The code for S.params is def params(n: String):

[Lift] set currentUser as owner

2009-05-20 Thread Tobias Daub
Hello Lifters, I wanted to override the defaultValue of my owner field, to always set it to the currentUser. I cannot compile this, because I get an error (what I kind of understand). During compilation, there's no currentUser so this function call has to be delayed somehow, but how? The

[Lift] Re: Problem with S.params

2009-05-20 Thread Derek Chen-Becker
Definitely looks wrong to me. Maybe we can get this in for the 1.0.1 release. Derek On Wed, May 20, 2009 at 6:22 PM, wilkinspoe wilkins...@gmail.com wrote: Hi, I have been having trouble reading a list of HTTP parameters with the same name that may or may not exist. If I call S.params(nn)

[Lift] Double as primary key

2009-05-20 Thread vseryakov
Hi, For anyone who may use Double as a primary key. I know it is not usual but still doubles are prett usefull as indexes. --- trait DoubleKeyedMetaMapper[A : DoubleKeyedMapper[A]] extends KeyedMetaMapper[Double, A] { self: A = } trait DoubleKeyedMapper[OwnerType :

[Lift] Re: Double as primary key

2009-05-20 Thread David Pollak
Very cool! On Wed, May 20, 2009 at 8:02 PM, vseryakov vserya...@gmail.com wrote: Hi, For anyone who may use Double as a primary key. I know it is not usual but still doubles are prett usefull as indexes. --- trait DoubleKeyedMetaMapper[A : DoubleKeyedMapper[A]] extends

[Lift] Re: set currentUser as owner

2009-05-20 Thread David Pollak
Can you post a code sample and the error? try: object owner extends MappedLongForeignKey(this, User) { override def defaultValue = User.currentUserId openOr 0L } On Wed, May 20, 2009 at 5:38 PM, Tobias Daub hannes.flo...@gmx.li wrote: Hello Lifters, I wanted to override the defaultValue

[Lift] Re: Problem with S.params

2009-05-20 Thread David Pollak
Fixed in 1.1-SNAPSHOT and 1.0.1-SNAPSHOT On Wed, May 20, 2009 at 7:13 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Definitely looks wrong to me. Maybe we can get this in for the 1.0.1 release. Derek On Wed, May 20, 2009 at 6:22 PM, wilkinspoe wilkins...@gmail.com wrote: Hi, I

[Lift] Re: how to serve html fragments

2009-05-20 Thread David Pollak
On Wed, May 20, 2009 at 8:38 PM, fatu fab...@gmail.com wrote: Hi David, yes it will do, thank you so much for such a lightning-fast development in reply! I'm only thinking about a case that is probably much more of an exception than a rule, i.e. when the snippet dynamically decides if it

[Lift] Re: Problem with S.params

2009-05-20 Thread wilkinspoe
Thanks for the quick fix. You guys are great. On May 20, 8:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Fixed in 1.1-SNAPSHOT and 1.0.1-SNAPSHOT On Wed, May 20, 2009 at 7:13 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Definitely looks wrong to me. Maybe we can get