[Lift] Re: Full stack for building RIAs

2009-08-07 Thread marius d.
On Aug 8, 3:37 am, ivo wrote: > Well, it has to have a good event handling model, it needs all the > essential widgets to be able to create enterprise ready applications > (sortable and filterable tables, trees, etc.), and it would be nice to > include a good data source model for the widgets.

[Lift] Re: Full stack for building RIAs

2009-08-07 Thread ivo
Well, it has to have a good event handling model, it needs all the essential widgets to be able to create enterprise ready applications (sortable and filterable tables, trees, etc.), and it would be nice to include a good data source model for the widgets. What I'm talking about is something in t

[Lift] Re: New Mapped Fields (MappedTimestamp and MappedMac)

2009-08-07 Thread David Pollak
Why are you trying to make this a mixin? Why not just create a MappedTimestamp field? On Tue, Aug 4, 2009 at 2:27 PM, Peter Robinett wrote: > > Ahh, good idea. The compile errors all had to do with the the type > parameters. I don't know much about Scala's type system yet, so I was > defining th

[Lift] Re: amqp library error

2009-08-07 Thread Timothy Perrett
Ahhh, think I know what your problem is - in my example video notice how I start the sending code first... That's because they register the routing with rabbitmq; so perhaps that's the problem here. have you tried doing it with my code exactly as I do in the sample video? I'll check in the

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 3:42 PM, fbettag wrote: > > I still don't understand how and where it loads its template.. What do you mean by "template"? Do you mean the thing that Lift parses to generate the XHTML output (e.g., the thing that contains the snippet tags) or do you mean the content that

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread Derek Chen-Becker
In the example that David is talking about the markup in the database is Textile (see the displayRecord method), not Lift XML, so I don't think that this is exactly what you're looking for. Derek On Fri, Aug 7, 2009 at 4:42 PM, fbettag wrote: > > I still don't understand how and where it loads

[Lift] Re: todo app., Oracle: Invalid column type

2009-08-07 Thread Derek Chen-Becker
Jon, could you please send me your project so that I can debug locally? I finally got Oracle XE installed after a long battle and I'd like to do some direct tests here. Thanks, Derek On Fri, Aug 7, 2009 at 9:23 AM, Derek Chen-Becker wrote: > OK, I'm going to look into this some more. I have no

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread fbettag
I still don't understand how and where it loads its template.. i'll guess i'll stick with my comet-approach. On Aug 7, 5:28 pm, David Pollak wrote: > On Fri, Aug 7, 2009 at 5:27 AM, fbettag wrote: > > > Do you mean the Template example? (shortened) > > No, I mean the wiki example: > > http://g

[Lift] Re: Eclipse setup

2009-08-07 Thread Miles Sabin
On Fri, Aug 7, 2009 at 10:06 PM, Naftoli Gugenheim wrote: > I don't think I used it to import projects, only to create them or > add maven support to them. It's possible that adding and removing > natures isn't something that would stick out in my memory, so I > can't say whether I needed to or th

[Lift] Re: Eclipse setup

2009-08-07 Thread Naftoli Gugenheim
I don't think I used it to import projects, only to create them or add maven support to them. It's possible that adding and removing natures isn't something that would stick out in my memory, so I can't say whether I needed to or thought that I wouldn't need to. After all if I was using GAE wit

[Lift] Re: IE8 and single-field forms

2009-08-07 Thread Ryan Donahue
That works perfectly. Thanks. On Aug 7, 11:43 am, David Pollak wrote: > When you use a Button and it doesn't get included in the POST (either on IE8 > or for Ajax forms), use the SHtml.hidden() method to include a hidden field > that's included in the server request. > > > > On Thu, Aug 6, 2009

[Lift] Re: Eclipse setup

2009-08-07 Thread Miles Sabin
On Fri, Aug 7, 2009 at 9:30 PM, Naftoli Gugenheim wrote: > I didn't see the ticket, but I use m2eclipse all the time. What > problems is it accused of causing? :) I thought that the command line > mvn eclipse:eclipse was dangerous because it changed metadata from outside > eclipse! See that ticke

[Lift] Re: URL rewriting woes

2009-08-07 Thread Naftoli Gugenheim
I contributed some pagination support for Mapper, in net.liftweb.mapper.view.Paginator. It includes support for navigation links and sortable column headers. Its paginate method binds the navigation and sorting links (its scaladoc specifies the xml for them), and its page method returns the ite

[Lift] Re: Asynchronous Javascript problem

2009-08-07 Thread David Pollak
I reproduced the issue on Opera... then Google banned my IP address for excessive requests... :-( I'll sign up for a google maps account. On Thu, Aug 6, 2009 at 1:33 AM, Channing Walton wrote: > > I've added a much simpler example too, see simple.html > > > -- Lift, the simply functional web

[Lift] Re: Eclipse setup

2009-08-07 Thread Naftoli Gugenheim
I didn't see the ticket, but I use m2eclipse all the time. What problems is it accused of causing? :) I thought that the command line mvn eclipse:eclipse was dangerous because it changed metadata from outside eclipse! - Miles Sabin wrote: On Fri, Aug 7, 200

[Lift] Re: URL rewriting woes

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 11:46 AM, pabraham wrote: > > Hi there, > > Thanks to both of you for your responses. I'm running Lift 1.0. > > Maybe I'm missing the point of URL rewriting, so here's what I really > want to do. > > My "Customers" link shows /customer/list/1, and when I click on this I > w

[Lift] Re: Full stack for building RIAs

2009-08-07 Thread marius d.
What do you mean by UI framework here? Lift is pretty neatly integrated with JQuery, or you can use YUI or virtually any UI framework. So what are your expectations from a UI framework? Br's, Marius On Aug 7, 10:55 pm, ivo wrote: > Hi all, > > I want to start learning about promising technolog

[Lift] Re: Using ExtJS with Lift?

2009-08-07 Thread marius d.
Keep in mind that for YUI to work with lift you also need to include liftYUI.js Br's, Marius On Aug 7, 10:16 pm, Stefan Scott wrote: > Hi Dirk - > > Nice to meet you. I'm still rather new to lift myself, and completely > new to ExtJS. I'm studying this stuff in my spare time, and I haven't > ha

[Lift] Re: *** BREAKING CHANGES COMMITTED ***

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 12:35 PM, Kevin Wright wrote: > Impressive stuff :) +1 Way to go Marius. > > > On Fri, Aug 7, 2009 at 6:54 PM, marius d. wrote: > >> >> Dear all, >> >> I'f committed today in the master the support for abstracting HTTP >> stack in lift so that Lift itself does not dep

[Lift] Full stack for building RIAs

2009-08-07 Thread ivo
Hi all, I want to start learning about promising technologies for building full stack RIAs. It doesn't need to be something very powerful today, but something that I can seriously consider for building commercial applications in 1 or 2 years from now. Let me divide what I mean by "full stack" in

[Lift] Re: Using ExtJS with Lift?

2009-08-07 Thread Charles F. Munat
I'm using Ext Js 3.0 in a couple of Lift projects (just as soon as I finish this damn desktop app -- hopefully by Monday). Would be interested in anything you're doing re Ext Js. Chas. Stefan Scott wrote: > Hi Dirk - > > Nice to meet you. I'm still rather new to lift myself, and completely >

[Lift] Re: *** BREAKING CHANGES COMMITTED ***

2009-08-07 Thread Kevin Wright
Impressive stuff :) On Fri, Aug 7, 2009 at 6:54 PM, marius d. wrote: > > Dear all, > > I'f committed today in the master the support for abstracting HTTP > stack in lift so that Lift itself does not depend on javax.servlet._ > classes. This allows us to add support for Netty, AsyncWeb, etc. or >

[Lift] Re: Using ExtJS with Lift?

2009-08-07 Thread Stefan Scott
Hi Dirk - Nice to meet you. I'm still rather new to lift myself, and completely new to ExtJS. I'm studying this stuff in my spare time, and I haven't had a chance to roll up my sleeves and do any work yet on implementing lift's JsArtifacts trait for the ExtJS JavaScript library. Of course, if and

[Lift] Re: URL rewriting woes

2009-08-07 Thread pabraham
Hi there, Thanks to both of you for your responses. I'm running Lift 1.0. Maybe I'm missing the point of URL rewriting, so here's what I really want to do. My "Customers" link shows /customer/list/1, and when I click on this I want to see a page (cust.html or customer.html -- I don't really mi

[Lift] Re: *** BREAKING CHANGES COMMITTED ***

2009-08-07 Thread marius d.
Dear all, I'f committed today in the master the support for abstracting HTTP stack in lift so that Lift itself does not depend on javax.servlet._ classes. This allows us to add support for Netty, AsyncWeb, etc. or even your own implementation of a HTTP server etc. This effort lead to several bre

[Lift] Re: New Mapped Fields (MappedTimestamp and MappedMac)

2009-08-07 Thread Peter Robinett
Just to give this thread a little bump, could someone give me some tips on what's wrong with the types of the MappedTimestamp trait? Thanks, Peter On Aug 4, 2:27 pm, Peter Robinett wrote: > Ahh, good idea. The compile errors all had to do with the the type > parameters. I don't know much about

[Lift] Re: URL rewriting woes

2009-08-07 Thread Tim Nelson
Paul, The basic problem here is that whatever you put in the RewiteResponse must be in your SiteMap. So, to get a url like /customer/list/1 to be rewritten to /cust.html?page=1 you would need: Menu(Loc("Customers", "cust"::Nil, "Customers")) in your SiteMap. Doing this however means that your m

[Lift] Re: StatefulSnippet link and functionMap

2009-08-07 Thread glenn
Here's my code sample that illustrates the problem: class UserView(entity:User, snippet:ManageUsers) extends ModelView [User](entity, snippet){ override val editAction = TheBindParam("edit", snippet.link("edit", ()=>load, Text(S?("Edit Roles" val addRole = TheBindParam("insert", snippet.

[Lift] Re: URL rewriting woes

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 9:28 AM, pabraham wrote: > > Hello again, > > I've been looking at the article on URL rewriting at [1] and am having > a problem getting a URL rewrite to work. > > My sitemap contains Menu(Loc("Customers", > "customer"::"list"::"1"::Nil, "Customers")), so clicking on Custome

[Lift] URL rewriting woes

2009-08-07 Thread pabraham
Hello again, I've been looking at the article on URL rewriting at [1] and am having a problem getting a URL rewrite to work. My sitemap contains Menu(Loc("Customers", "customer"::"list"::"1"::Nil, "Customers")), so clicking on Customers gives a link to /customer/list/1. My rewrite is: LiftR

[Lift] Re: Comet render and jQuery

2009-08-07 Thread David Pollak
On Wed, Aug 5, 2009 at 1:55 PM, Avo Reid wrote: > > I am might be going about this in the wrong way but I wanted to get > confirmation. > > I have a comet lift snippet that waits for a comet actor to send down > search results triggered by a button click after entering keywords. > > >

[Lift] Re: amqp library error

2009-08-07 Thread David Pollak
This stack trace indicates that you've mixed libraries from different Scala versions. If you're using Lift 1.0, make sure that everything is compiled using Scala 2.7.3 and all libraries are Scala 2.7.3. You can do this in the pom.xml file. If you're using Lift 1.1-M4, make sure that everything i

[Lift] Re: amqp library error

2009-08-07 Thread ph
not in release repository (http://scala-tools.org/repo-releases/net/ liftweb/lift/) which I'm using I wouldn't use snapshot repository... On Aug 7, 11:34 am, David Pollak wrote: > On Fri, Aug 7, 2009 at 7:23 AM, ph wrote: > > > This is, actually, where I started. I took your example and compile

[Lift] Re: IE8 and single-field forms

2009-08-07 Thread David Pollak
When you use a Button and it doesn't get included in the POST (either on IE8 or for Ajax forms), use the SHtml.hidden() method to include a hidden field that's included in the server request. On Thu, Aug 6, 2009 at 7:39 AM, Ryan Donahue wrote: > > Apparently if your form has only one text field

[Lift] Re: StatefulSnippet link and functionMap

2009-08-07 Thread David Pollak
On Thu, Aug 6, 2009 at 3:09 PM, glenn wrote: > > I have a stateful snippet with multiple StatefulSnippet links in the > bind helper. Clicking on each link gives me a > 403 error. I noticed that the function map for each link is different. > Shouldn't they be the same, since I'm trying to reload t

[Lift] Re: amqp library error

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 7:23 AM, ph wrote: > > This is, actually, where I started. I took your example and compiled; > tried to change dependency on lift from 1.1-snapshot (as it is not in > repo) Which Repo is 1.1-SNAPSHOT not in? > to 1.0 and to 1.1-M4; neither works. > When I'm trying to cr

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 5:27 AM, fbettag wrote: > > Do you mean the Template example? (shortened) No, I mean the wiki example: http://github.com/dpp/liftweb/blob/master/sites/example/src/main/scala/net/liftweb/example/lib/WikiStuff.scala It's a SiteMap Loc that implements a full URL-based CMS.

[Lift] Re: Lift demo website down

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 6:43 AM, jon wrote: > > Hi David, > > What strategies would you employ to protect yourself against such an > attack? I'm not sure it's an attack. It may be a poorly designed search engine. But, one could write code to analyze the session creation and if lots of sessions

[Lift] Re: Eclipse setup

2009-08-07 Thread Steffen Weißmann
On Fri, Aug 7, 2009 at 3:33 PM, Miles Sabin wrote: > > On Fri, Aug 7, 2009 at 2:24 PM, Steffen > Weißmann wrote: >> And I have removed the maven plugin completely, I >> think that helped a lot... > > FWIW, after a slightly heated exchange around this Trac ticket, > >  https://lampsvn.epfl.ch/trac/

[Lift] Re: amqp library error

2009-08-07 Thread ph
This is, actually, where I started. I took your example and compiled; tried to change dependency on lift from 1.1-snapshot (as it is not in repo) to 1.0 and to 1.1-M4; neither works. When I'm trying to create a new instance of class (listener) in scala console it just hangs, never riches RabbitMQ

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread fbettag
hm, sorry, that one i can't figure out. Is there anything unsafe about my way? On Aug 7, 2:27 pm, fbettag wrote: > Do you mean the Template example? (shortened) > > LiftRules.snippetDispatch.append(NamedPF("Template") (Map("Template" - > > > Template)) > > object Template extends DispatchSnippe

[Lift] Re: Lift demo website down

2009-08-07 Thread jon
Hi David, What strategies would you employ to protect yourself against such an attack? Thanks - Jon On Aug 7, 9:30 am, David Pollak wrote: > It's up.  Please try again. > Occasionally, the site gets session-bombed (some external system creates > thousands of new sessions) which causes an out o

[Lift] Re: Eclipse setup

2009-08-07 Thread Miles Sabin
On Fri, Aug 7, 2009 at 2:24 PM, Steffen Weißmann wrote: > And I have removed the maven plugin completely, I > think that helped a lot... FWIW, after a slightly heated exchange around this Trac ticket, https://lampsvn.epfl.ch/trac/scala/ticket/2226 I've come to the conclusion that m2eclipse sh

[Lift] Re: Eclipse setup

2009-08-07 Thread Steffen Weißmann
> Is anyone else using javarebel with eclipse?  I just run "RunWebApp" > as a scala Application from within eclipse with javarebel.  It works I dont use javarebel, but RunWebApp works great from eclipse. It starts up very fast, compared to mvn jetty:run. Thanks for the hint. Steffen. > well whe

[Lift] Re: Lift demo website down

2009-08-07 Thread David Pollak
It's up. Please try again. Occasionally, the site gets session-bombed (some external system creates thousands of new sessions) which causes an out of memory condition on the slice-hosted instance. On Fri, Aug 7, 2009 at 6:23 AM, Terry J. Leach wrote: > > The Lift demo website is displaying a "50

[Lift] Re: strange behaviour of findAll(By(...))

2009-08-07 Thread David Pollak
On Fri, Aug 7, 2009 at 2:07 AM, Hannes wrote: > > Why does the By method not accept two integers to compare? Because By() compares a field (column) to a value that is in the type of that field (column). I'm not sure I can think of a use case for something that would generate the SQL "SELECT *

[Lift] Re: Eclipse setup

2009-08-07 Thread Steffen Weißmann
> See if the following configuration helps you as it solved most of my > problems. > >         > http://blog.spiralarm.com/richard/2009/07/using-existing-scala-maven-project-in.html Thanks, works much better now. I create the eclipse project via mvn eclipse:eclipse, import it, remove all src-fold

[Lift] Lift demo website down

2009-08-07 Thread Terry J. Leach
The Lift demo website is displaying a "502 Bad Gateway" error message --~--~-~--~~~---~--~~ 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 th

[Lift] Re: Using ExtJS with Lift?

2009-08-07 Thread Dirk Louwers
Hi, I am new to this group and have used ExtJS for some projects and have recently stumbled across Scala and Lift and am very impressed with both. Stefan, I would greatly appreciate it if you could supply your JsArtifacts trait implementation for ExtJS. Another option that I'm trying now is to u

[Lift] Re: Rendering dynamic templates

2009-08-07 Thread fbettag
Do you mean the Template example? (shortened) LiftRules.snippetDispatch.append(NamedPF("Template") (Map("Template" - > Template)) object Template extends DispatchSnippet { def dispatch: DispatchIt = Map("show" -> show _) def show(in: NodeSeq): NodeSeq = { val re

[Lift] Re: SiteMap gives "No Navigation Defined."

2009-08-07 Thread Tim Nelson
It appears that the listing in the book is wrong. The behavior you are describing is as expected. The first parameter is the name (acts as an id) of the link, while the 3rd param is the text that is displayed in the menu. Here is the relevant snippet in the source: /** * Create a Loc (Location)

[Lift] Re: SiteMap gives "No Navigation Defined."

2009-08-07 Thread pabraham
Yes, I realise I was a bit unclear, and got myself a bit confused about when things were working and when they weren't. I had been changing Boot.scala, running "mvn compile" and letting "mvn jetty:run" pick up the changes. I have now changed the way I'm approaching this to: vi Boot.scala mvn cl

[Lift] strange behaviour of findAll(By(...))

2009-08-07 Thread Hannes
Why does the By method not accept two integers to compare? See erro belowthanks! /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/comet/Market.scala:83: error: overloaded method value apply with alternatives [O <: net.liftweb.mapper.Mapper[O],T,Q <: net.liftweb.mapper

[Lift] Re: SOAP web services?

2009-08-07 Thread Viktor Klang
Hello Jacek, actually, if I were you I'd consider implementing your webservices as REST services and then just have your SOAP stubs call your rest services. (If you're not using anything voodooesque) Then you have the benefit of using the existing plumbing as much as possible, while still maintai

[Lift] Re: Custom Login

2009-08-07 Thread turp1twin
Thanks David! This makes sense to me. Thanks much for the support and keep up the great work! Jeff On Aug 6, 8:48 pm, David Pollak wrote: > I think you could remove the User class/object pair from the app and replace > them with: > object LoginState { >   object primaryKey extends SessionVar[B