[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-27 Thread Terry J. Leach
As a newbie who is already onboard with Lift and Scala, this was a very good podcast for me. Thanks, Terry On Jul 27, 7:12 pm, Timothy Perrett wrote: > Sweet link > > Cheers, Tim > > On Jul 27, 7:40 pm, Goldfish wrote: > > > > > Visithttp://pondjumpers.com/2009/07/27/episode-2-interview-about-

[Lift] Help on "Build from source"

2009-07-27 Thread Nile Black
[INFO] Building Lift Utils [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [yuicompressor:compress {execution: default}] [INFO] nb warning

[Lift] Re: Help on "Build from source"

2009-07-27 Thread nile black
why i cann't see my post at group? On Tue, Jul 28, 2009 at 11:48 AM, Nile Black wrote: > [INFO] Building Lift Utils > [INFO]task-segment: [install] > [INFO] > > [INFO] [resources:resources] > [INFO] Using default encod

[Lift] Re: Object Relationships and the .obj method

2009-07-27 Thread Grant Wood
Derek, Just want to thank you for your attention to this thread, and your quick update of the master.pdf, I know this will clear things up for others as well! I will absolutely provide any other feedback I can. Thank You for all your work on Exploring Lift! - Grant Wood --~--~-~--~---

[Lift] Minimizing Memory Usage

2009-07-27 Thread Peter Robinett
Hi all, I'm running Lift on the smallest Slicehost VPS available (256 mb RAM, plus 512 mb swap) and I've recently run into some memory issues. I'm also running Apache and MySQL on the machine, so Lift and its environment is by no means the only cause, but I'd like to ask you all about how Lift us

[Lift] Re: Allow another servlet

2009-07-27 Thread Ross Mellgren
LiftRules.passNotFoundToChain = true -Ross On Jul 27, 2009, at 7:44 PM, Naftoli Gugenheim wrote: > > How do you set up lift to allow access to another servlet, e.g., the > H2 console? > > > --~--~-~--~~~---~--~~ You received this message because you are subsc

[Lift] Allow another servlet

2009-07-27 Thread Naftoli Gugenheim
How do you set up lift to allow access to another servlet, e.g., the H2 console? --~--~-~--~~~---~--~~ 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 unsubscr

[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-27 Thread Timothy Perrett
Sweet link Cheers, Tim On Jul 27, 7:40 pm, Goldfish wrote: > Visithttp://pondjumpers.com/2009/07/27/episode-2-interview-about-lift/ > to hear a podcast interview with David Pollack about Lift. --~--~-~--~~~---~--~~ You received this message because you are subscr

[Lift] Re: Modularization of Lift code

2009-07-27 Thread Timothy Perrett
Hi Glen... I actually do a lot of this - we have a product at work and i've just written a bunch of abstractions for work which just require me to do: MyLib.init In the boot file of a new application and then everything wires up - I couldn't think of anything more straightforward? The vast maj

[Lift] Modularization of Lift code

2009-07-27 Thread glenn
I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to th

[Lift] Re: New features

2009-07-27 Thread Naftoli Gugenheim
I committed it last night, so I think it should be there. To use many-to-many, simply mix ManyToMany to your mapper, then create a MappedManyToMany field like any other field. See the scaladocs for specifics. Then in your view you can use the field like a collection, e.g., remove an element with

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Timothy Perrett
FYI, I detail lift's rewriting scheme here: http://is.gd/wq4K Cheers, Tim On Jul 27, 9:52 pm, edgarchan wrote: > Hola. > All parameters put it on the map are available in the request, so you > can use S.param function to get them. > > in your example > > case RewriteRequest(ParsePath("company"

[Lift] Re: the question abount HelloForm2 of example darwin

2009-07-27 Thread Timothy Perrett
Hey Koji, So I took a look at your problem and made an example, please check the code here under "basic-forms": http://github.com/timperrett/lift-examples/tree/master I have a feeling that S.param used to work differently... lift assigns random names to the inputs at runtime for security, so d

[Lift] Re: New features

2009-07-27 Thread glenn
Sounds great. I've been using hacks such as adding code like this to my mapper classes just to create a Many-to-Many relationship between say, tag and content tables (using an intermediary ContentTag table). Similarly, I've done User/Roles relationships. private object _dbTags extends HasManyThr

[Lift] Re: Object Relationships and the .obj method

2009-07-27 Thread Derek Chen-Becker
OK, updated PDF is on the site. Derek On Mon, Jul 27, 2009 at 2:56 PM, Derek Chen-Becker wrote: > Hi Grant, > Sorry about the frustration with that example. I'll fix the > documentation so that the example is accurate. Please feel free to send any > other feedback on Exploring Lift either to

[Lift] Re: Object Relationships and the .obj method

2009-07-27 Thread Derek Chen-Becker
Hi Grant, Sorry about the frustration with that example. I'll fix the documentation so that the example is accurate. Please feel free to send any other feedback on Exploring Lift either to this list or to the Book's mailing list. Thanks, Derek On Mon, Jul 27, 2009 at 1:49 PM, Grant Wood wro

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread edgarchan
Hola. All parameters put it on the map are available in the request, so you can use S.param function to get them. in your example case RewriteRequest(ParsePath("company" :: id :: page :: text ::Nil, "", true, _), GetRequest, _) => RewriteResponse("company" :: Nil, Map ("id" -> id, "page" -> page

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Derek Chen-Becker
Also, you could define some helpers objects to simplify type testing: object IntField { def unapply (in : String) = try { Some(in.toInt) } catch { case nfe : NumberFormatException => None } } And then you can use it in matching statements: scala> val test = List("One",

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Derek Chen-Becker
What you're doing generally looks right, although depending on the exact syntax you might be able to make it a bit more concise. Is there something in particular that's not working? Derek On Mon, Jul 27, 2009 at 12:23 PM, José María wrote: > > Hi. > > I have the following problem (I'm porting a

[Lift] Re: New features

2009-07-27 Thread Naftoli Gugenheim
I will try but I may not have a chance in the next few days. I did write up scaladocs, although I haven't pushed some clarifications for TableEditor. You probably don't want to use XmlMenu, but David said I may as well throw it in. The advantage is if you want to read it in from an xml file. -

[Lift] Re: erro: MappedDouble is not mapped to 'double precision' datatype in PostgreSQL?

2009-07-27 Thread Derek Chen-Becker
This looks like an issue with PostgreSQLDriver. The type should be "DOUBLE PRECISION". What version of Lift are you using? Let me know and I'll put a fix in the proper place. Derek On Sun, Jul 26, 2009 at 5:59 AM, JanWillem Tulp wrote: > > Still looking to find a solution for this, or at least w

[Lift] Re: New features

2009-07-27 Thread marius d.
Would you please add some examples on the wiki so that people can actually visualize how these things can be used? As far as XmlMenu goes why do we want to express menus as xml ? Br's, Marius On Jul 27, 10:57 pm, Naftoli Gugenheim wrote: > I committed some code last night, which can help buil

[Lift] Re: Object Relationships and the .obj method

2009-07-27 Thread Grant Wood
Thank you Ross and Naftoli, The fact that both of you offered solutions for dealing with a Box directly through the .obj method proves that the example in master.pdf is not accurate. I tried several of your suggestions to see what the trade offs were. Since using Foreign Keys is so common, and

[Lift] Re: log4j problems with Jetty

2009-07-27 Thread Derek Chen-Becker
I'm not 100% positive, but I think that jetty already has a log4j jar file in it, so you can remove the one from webapp-lib. In your pom, add a provided for the log4j dependency. Derek On Sat, Jul 25, 2009 at 4:13 PM, Jeppe Nejsum Madsen wrote: > > Hi, > > I'm trying to use the jetty plugin for

[Lift] New features

2009-07-27 Thread Naftoli Gugenheim
I committed some code last night, which can help building mapper-based view snippets, with G-d's help. It includes the following classes: (1-2) net.liftweb.mapper.OneToMany, ManyToMany: Gives a more object-oriented approach to managing related entites. You can manage the many side of a 1-n and

[Lift] Hear podcast interview with David Pollack about Lift

2009-07-27 Thread Goldfish
Visit http://pondjumpers.com/2009/07/27/episode-2-interview-about-lift/ to hear a podcast interview with David Pollack about Lift. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group,

[Lift] URL Rewrite and complex paths

2009-07-27 Thread José María
Hi. I have the following problem (I'm porting a site from Python): I've an url path that follows the patern /// or the pattern . The type of the diferent parts of the url is important, in other platforms (Python/Ruby) it's possible to use regexp to match the urls... how is this done in Lif

[Lift] Re: the question abount HelloForm2 of example darwin

2009-07-27 Thread koji
thx Tim, I paste my code to the git. here is the index.html http://gist.github.com/156445 and HelloWorld.scala http://gist.github.com/156446 and param("whoField") always shows Empty thanks, koji On Jul 27, 10:45 pm, Timothy Perrett wrote: > Hey koji, > > Perhaps this article will help:http://i

[Lift] Re: the question abount HelloForm2 of example darwin

2009-07-27 Thread Timothy Perrett
Hey koji, Perhaps this article will help: http://is.gd/sfyT Otherwise, can you post the code your using? (perhaps onto gist.github.com) Cheers, Tim On Jul 27, 11:11 am, koji wrote: > Hi, I'm trying the HelloForm2 of darwin example. > The second version of HelloForm2 that who var is RequestVar

[Lift] Re: CircleShare Blog where?

2009-07-27 Thread Timothy Perrett
Yeah I think its an old link. We [the team] are aware that the wiki sucks and are in the process of moving to a new wiki, with fresh new content. Sorry for the run around. Cheers, Tim On 27/07/2009 12:30, "TylerWeir" wrote: > > dpp's blog is here: http://blog.lostlake.org/ > > On Jul 27,

[Lift] Re: CircleShare Blog where?

2009-07-27 Thread TylerWeir
dpp's blog is here: http://blog.lostlake.org/ On Jul 27, 7:15 am, Jon wrote: > At the bottom of this page Contribute> it says: > "When you see an article on Lift, help spread the word by submitting > it to digg, reddit, or hacknews. If you're looking for art

[Lift] CircleShare Blog where?

2009-07-27 Thread Jon
At the bottom of this page it says: "When you see an article on Lift, help spread the word by submitting it to digg, reddit, or hacknews. If you're looking for articles, a great place is to start is The CircleShare Blog where user:dpp blogs about Lif

[Lift] the question abount HelloForm2 of example darwin

2009-07-27 Thread koji
Hi, I'm trying the HelloForm2 of darwin example. The second version of HelloForm2 that who var is RequestVar shows correct on the rendered page, but always showing Empty in my console using param("whofield"). Am i do something wrong? --~--~-~--~~~---~--~~ You recei

[Lift] Custom login

2009-07-27 Thread MrWHO
Hi all! Again a probably silly question, but I haven't been able to find a clue anywhere. I'd like to use my own login page for an application. I can get as far as creating my own form - and posting to "/user_mgt/login" and if the login goes right there is no problem. But if the login fai

[Lift] Re: Comet DispatchPF - RestfulCometActor?

2009-07-27 Thread Timothy Perrett
Hey David, Thanks for the response - got the impression you were swamped :-) Looking forward to your thoughts on this. Cheers, Tim > I have some serious thoughts on this.  I've been swamped with client-based > stupid over-work over the last 10 days.  I have one last set of stuff to do > tomorro

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-27 Thread Oliver Lambert
I've been using a library that works somewhat differently from Record (bottom up rather than top down) and might work in a way more familiar to some people. It provides a syntax something like class FavouriteB extends Binder { val yourName = bindString("yourName") // mandatory is the defau

[Lift] Re: Lift & (AsyncWeb || ...)

2009-07-27 Thread marius d.
I created wip-marius-http-abstractions branch and commits will follow soon. I started the approach of decoupling Lift from HttpServletXXX references and work with our traits HttpRequest, HttpResponse, HttpServiceProvider etc. When Lift runs in a JEE web container the implementation of HttpServiceP