[Lift] Re: A Critique On Lift

2009-10-22 Thread Viktor Klang
Programming is not a simple task, that's why we haven't been replaced by machines. Scala is a _very_ powerful language, and it _is_ a challenge to harness that power in addition to other languagues you have harnessed. However, I do not feel that Scala has much non-explainable complexity, as is th

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Guys, Im confused - Scala is not Java. This my friends, is a very good thing. You cant expect to start a language and be able to use all the advanced features right away I doubt you were a meta-programming ninja when learning ruby! Getting back on topic, I read the original link and I

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread soumik
Hi, I've a few question regarding the changes made. - Firstly, with the changes made, how do I have a method which can now accept both scala Actor as well as a CometActor?? Prior to the changes, I had a function "def registerActor(act: Actor) which could handle both scala Actor as well as CometA

[Lift] Re: A Critique On Lift

2009-10-22 Thread ngocdaothanh
Because Lift's ad is so good. For example: "Lift is the only new framework in the last four years to offer fresh and innovative approaches to web development. It's not just some incremental improvements over the status quo, it redefines the state of the art. If you are a web developer, you should

[Lift] Re: A Critique On Lift

2009-10-22 Thread Marius
+1 Tim & Viktor. Many people with this sort of background and Java web frameworks too find difficult to accept that we don't do MVC. Also they find difficult to accepts XML in Scala Snippets. When I presented Scala & Lift at Transylvania JUG I got the same concerns ... "What? ... markup in Scala

[Lift] Re: Can't add model

2009-10-22 Thread Jeppe Nejsum Madsen
David Pollak writes: > On Wed, Oct 21, 2009 at 10:27 PM, Rahul Somasunderam > wrote: > >> >> I followed the guide here: >> >> http://liftweb.net/docs/getting_started/mod_master.html> >> I'm unable to add the model ToDo. >> >> When I try to add it, I get a compilation failure: >> Description

[Lift] Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread David Pollak
Anyone have a clue as to why the JTA stuff in Lift is unstable on Hudson? -- Forwarded message -- From: Date: Thu, Oct 22, 2009 at 2:28 AM Subject: Build failed in Hudson: Lift #1307 See Changes: [David Pollak] Temporar

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread george
> - Secondly, I also get compilation error for calling > scheduleAtFixedRate method on ActorPing. Says no such method. Has this > method been deprecated and if so, what is the method I should be > calling instead? I have this problem also. --~--~-~--~~~---~--~~ Yo

[Lift] Submitting a form and returning results

2009-10-22 Thread ben
Hi, I'm having trouble working out how to do a really simple thing - submit a form and return some results. Imagine a simple page that took a name of a person to search for, and displayed a list of people matching that name. I've put together a dummy example to show you what I've tried : So the

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Viktor Klang
DPP (and I) recommend just doing schedule and then re-schedule after message recieved. schedule(actor,MyMsg(),3 seconds) in the actor { case MyMsg() => { doMyStuff schedule(this,MyMsg(),3 seconds) } } Makes sense? On Thu, O

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Timothy Perrett
Guys, >   Prior to the changes, I had a function "def registerActor(act: > Actor) which could handle both scala Actor as well as CometActor,; now > if I change this to "def registerActor(act: GenericActor)" it throws > compilation error asking to a type to be specified for the > GenericActor. Wh

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Timothy Perrett
Hmm how strange - it builds fine locally? Cheers, Tim On Oct 22, 10:56 am, David Pollak wrote: > Anyone have a clue as to why the JTA stuff in Lift is unstable on Hudson? > > > > -- Forwarded message -- > From: > Date: Thu, Oct 22, 2009 at 2:28 AM > Subject: Build failed in Hud

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Well said that man! Couldn't agree more with this statement. Cheers, Tim On Oct 22, 9:43 am, Marius wrote: > I accept > that many people think that MVC is the Holly Grail, but I don't > believe that ... and I think most people really using Lift don't > believe that either. --~--~-~--~-

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread george
ok so.. object LocalSmtp extends Actor should become object LocalSmtp extends GenericActor[LocalSmtp] ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@g

[Lift] Newbie question: action beforeSave data

2009-10-22 Thread wibblecp
Hi all, this is my first post, but I read you always, so I apologize if it appear so simple. I am "tasting" this sensational web framework. I'll try to explain using a simple and basic example. Consider a "post" mapper model with a mappedString object named "permalink" I'd like to set this db fi

[Lift] Re: A Critique On Lift

2009-10-22 Thread tiro
> override def validations = validPriority _ :: super.validations funny, I had stumbled on exactly the same line of code when beginning. Took me more than a day to understand what's going on. Especially because when you copied code from the PDF version of the Liftbook/Lift getting started guide, i

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
I think this is a bit of a running joke in the scala comunity right now - your right, underscore really does have a number of meanings; I think this will be changed in some future Scala release. Your also forgetting: import some.package._ Cheers, Tim On 22 Oct 2009, at 12:57, tiro wrote:

[Lift] New update changed something?

2009-10-22 Thread caw1461
So I was running everything for my program fine last night. Got on this morning, updated scala when compiling and I am getting a lot of: error: not found: value Box error: value map is not a member error: value openOr is not a member of Nothing etc. Was there a big update changing a bunch of th

[Lift] Re: New update changed something?

2009-10-22 Thread TylerWeir
Umm, http://groups.google.com/group/liftweb/t/824f14038bedf425?hl=en On Oct 22, 9:55 am, caw1461 wrote: > So I was running everything for my program fine last night.  Got on > this morning, updated scala when compiling and I am getting a lot of: > > error: not found: value Box > error: value map

[Lift] Re: Trouble With JPA Book Example

2009-10-22 Thread Derek Chen-Becker
Are you using OpenJDK by any chance? IIRC the YUI compressor doesn't like it. Derek On Wed, Oct 21, 2009 at 6:58 PM, AndyM wrote: > > Sorry about the spam. I was using 2.75 not 2.7.5.. Feel free to delete > the above posts. > > More errors though. spa builds fine, web does not... > > INFO] null

[Lift] Re: Dynamic radio button

2009-10-22 Thread Derek Chen-Becker
I don't quite understand what you're trying to do. Could you give some more details? Are you trying to add more radios to an existing radio button set? On Wed, Oct 21, 2009 at 8:45 PM, sunanda wrote: > > Hi, > I need to add radio button dynamically with one of the button checked > and I need to

[Lift] Re: Submitting a form and returning results

2009-10-22 Thread Thiébaut Champenier
Hi ben, >def doBind(form: NodeSeq) = { > bind("peopleSearch", form, >"nameToSearchFor" -> search.nameToSearchFor.toForm, >"submit" -> submit("Search For People", performSearch), >"searchResults" -> renderResults(search) >) >} You’re relying on the ord

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Derek Chen-Becker
It builds for me locally... On Thu, Oct 22, 2009 at 5:25 AM, Timothy Perrett wrote: > > Hmm how strange - it builds fine locally? > > Cheers, Tim > > On Oct 22, 10:56 am, David Pollak > wrote: > > Anyone have a clue as to why the JTA stuff in Lift is unstable on Hudson? > > > > > > > > -

[Lift] Re: Submitting a form and returning results

2009-10-22 Thread ben
Hi, Thanks for the reply ... the line : if (search.nameToSearchFor != "") is not the problem - thats just to illustrate the symptom of the problem - ie that nameToSearchFor (from the form) is not populated by the time the renderResults() method is called - I think due to how the binding of value

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 7:47 AM, Derek Chen-Becker wrote: > It builds for me locally... > > I randomly get that failure locally. > > On Thu, Oct 22, 2009 at 5:25 AM, Timothy Perrett > wrote: > >> >> Hmm how strange - it builds fine locally? >> >> Cheers, Tim >> >> On Oct 22, 10:56 am, David Pol

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Derek Chen-Becker
This is really odd. The 1.1 ScalaJPA doesn't have a def for getUnitName, that was added in 1.2-SNAPSHOT. The pom for lift-jta is specifying ScalaJPA 1.1, so I wonder if somehow a 1.2-SNAPSHOT jar is getting used instead. I'm going to remove the scalajpa stuff from ~hudson/.m2/repository on lion and

[Lift] Re: Newbie question: action beforeSave data

2009-10-22 Thread wibblecp
Ok, I am sorry for my previous rubbish I solved the issue using vars in my Snippet and passing them to my Post instance to validate and save. regards, wibble On 22 Ott, 14:26, wibblecp wrote: > Hi all, > this is my first post, but I read you always, so I apologize if it > appear so simple. I a

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Derek Chen-Becker
I can verify that the JAR on lion doesn't have the getUnitName def: de...@lion:/home/scalatools/hudson/.m2/repository/org/scala-libs/scalajpa/1.1$ javap -private -classpath scalajpa-1.1.jar org.scala_libs.jpa.ScalaEMFactory Compiled from "ScalaEMFactory.scala" public interface org.scala_libs.jpa.S

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Indrajit Raychaudhuri
Same ocassional failure locally for me too. In fact, it mostly fails unless I am having a lucky day :) I keep getting confused about this and eventually get tempted to disable jta during build. FWIW, I am mostly on Leopard with Maven 2.2.1. Java 1.5 or 1.6 doesn't appear to make any differenc

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Indrajit Raychaudhuri
Nice find. Never had the patience to dig. Thanks! - Indrajit On 22/10/09 8:38 PM, Derek Chen-Becker wrote: > I can verify that the JAR on lion doesn't have the getUnitName def: > > de...@lion:/home/scalatools/hudson/.m2/repository/org/scala-libs/scalajpa/1.1$ > javap -private -classpath scalajp

[Lift] Re: New update changed something?

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 7:03 AM, TylerWeir wrote: > > Umm, http://groups.google.com/group/liftweb/t/824f14038bedf425?hl=en > > Any way to make this sticky? > On Oct 22, 9:55 am, caw1461 wrote: > > So I was running everything for my program fine last night. Got on > > this morning, updated sca

[Lift] Re: New update changed something?

2009-10-22 Thread Timothy Perrett
Sure, just go to "options" on the web interface at the top of the thread and as moderator you should see a whole bunch of options. Cheers, Tim On 22 Oct 2009, at 16:22, David Pollak wrote: > On Thu, Oct 22, 2009 at 7:03 AM, TylerWeir > wrote: > > Umm, http://groups.google.com/group/liftweb/

[Lift] Weird request/transaction semantics

2009-10-22 Thread Jeppe Nejsum Madsen
Hi, I posted this in another thread, but it may have been lost in the noise (or no one cared :-) Anyway, I have S.addAround(DB.buildLoanWrapper) in boot, which I assumed would wrap each request with a transaction and thus use the same connection for the duration of the request? I've added some

[Lift] Re: A Critique On Lift

2009-10-22 Thread jlist9
Yes. Typically one will only see a couple of Java-y Scala samples in the tutorials to show that you can write Scala the Java way to encourage Java developers to pick up Scala. However, in any real world applications and libraries you'll only see Scala-y Scala and that's where the disconnect is. I

[Lift] S.deleteCookie broken in M6

2009-10-22 Thread harryh
S.deleteCookie appears to be broken in M6. I'm using ProtoExtendedSession to keep extended session state, and when I logout (and the ext_id cookie should be deleted), the following header is being sent back to the browser: Set-Cookie: ext_id=SIOKGDA3ZRNV0RC0DWA1J4REBR5JLKVI which does not dele

[Lift] Re: A Critique On Lift

2009-10-22 Thread David Pollak
I've drafted a couple of different versions of a response to this message and they all seem somewhat mean and/or condescending... that is not at all my intent... here's another draft and please read it as acknowledging the challenges you are articulating, but suggesting a different perspective on t

[Lift] Re: S.deleteCookie broken in M6

2009-10-22 Thread David Pollak
File a ticket. It's "Harry's tickets" day for me today. The more you file, the more that get fixed. On Thu, Oct 22, 2009 at 9:03 AM, harryh wrote: > > S.deleteCookie appears to be broken in M6. I'm using > ProtoExtendedSession to keep extended session state, and when I logout > (and the ext_i

[Lift] Re: S.deleteCookie broken in M6

2009-10-22 Thread harryh
> File a ticket. Done > It's "Harry's tickets" day for me today.  The more you file, > the more that get fixed. Oh my. That's really quite something there. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Lift] Re: Weird request/transaction semantics

2009-10-22 Thread David Pollak
There are a couple of things happening. First, there are at least 2 distinct times when we initialize the S context during a request handling cycle: - During the rewrite phase (if there's a session cookie) - During the substantive processing phase - If there's a cometactor on the page, S

[Lift] Re: New update changed something?

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 8:29 AM, Timothy Perrett wrote: > Sure, just go to "options" on the web interface at the top of the thread > and as moderator you should see a whole bunch of options. > I'm not seeing a "make sticky" option. I may be blind or stupid or both. Maybe Tyler can have a look.

[Lift] Cannot build our lift app. Is net.liftweb.util OK?

2009-10-22 Thread Dano
Hello Lifters, After doing my morning build (mvn -U clean install), I am getting a huge number of errors mostly related to net.liftweb.util (see below). We are building against 1.1-SNAPSHOT. Is anyone else having this problem? Thanks in advance. Dan [INFO] Compiling 113 source files to C:\s

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
David, I think your response was well measured and appropriate. The analogy of linguistics is a good one :-) Without wanting to diverge this thread, can I ask why it is your unhappy with Record? Its been fairly fun to use so far and appears to work well. Cheers, Tim On 22 Oct 2009, at 17:

[Lift] Re: Cannot build our lift app. Is net.liftweb.util OK?

2009-10-22 Thread Dano
I see that there is a similar issue posted against the thread "New update changed something?". I will monitor the progress of that thread as well. Dan On Oct 22, 9:16 am, Dano wrote: > Hello Lifters, > > After doing my morning build (mvn -U clean install), I am getting a > huge number of erro

[Lift] Re: Review Request: Enhance Msgs snippet to optionally show all messages

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 12:58 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > > > > On 2009-10-21 13:17:36.007575, Marius Danciu wrote: > > > The fix looks correct for this feature, but I'm not convinced that this > proposed feature is the right approach. If a page contains both msg

[Lift] Re: A Critique On Lift

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 9:18 AM, Timothy Perrett wrote: > David, > > I think your response was well measured and appropriate. The analogy of > linguistics is a good one :-) > > Without wanting to diverge this thread, can I ask why it is your unhappy > with Record? Its been fairly fun to use so far

[Lift] Re: S.deleteCookie broken in M6

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 9:07 AM, harryh wrote: > > > File a ticket. > > Done > > > It's "Harry's tickets" day for me today. The more you file, > > the more that get fixed. > > Oh my. That's really quite something there. > And for all of you who want to see what's on my Lift (or ESME) plate: htt

[Lift] One minor exception to the no-RTFM rule

2009-10-22 Thread David Pollak
Folks, We've got a solid rule in Lift-land which is we don't respond with RTFM. Why? Because we want to encourage people to ask questions. There's one exception to that rule that I'll make now. If your code suddenly breaks (we do make breaking changes to Lift from time to time), please at least

[Lift] Re: New update changed something?

2009-10-22 Thread TylerWeir
Sorry, just saw this, stickied. On Oct 22, 12:14 pm, David Pollak wrote: > On Thu, Oct 22, 2009 at 8:29 AM, Timothy Perrett > wrote: > > > Sure, just go to "options" on the web interface at the top of the thread > > and as moderator you should see a whole bunch of options. > > I'm not seeing a

[Lift] Re: New update changed something?

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 9:38 AM, TylerWeir wrote: > > Sorry, just saw this, stickied. > TNX > > On Oct 22, 12:14 pm, David Pollak > wrote: > > On Thu, Oct 22, 2009 at 8:29 AM, Timothy Perrett >wrote: > > > > > Sure, just go to "options" on the web interface at the top of the > thread > > >

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Dano
It would be good to have an example like George's verified as it is not clear how to convert our Actor code. Dan On Oct 22, 4:48 am, george wrote: > ok so.. > > object LocalSmtp extends Actor > > should become > > object LocalSmtp extends GenericActor[LocalSmtp] > > ? --~--~-~--~~

[Lift] Re: javascript with an ajaxbutton

2009-10-22 Thread caw1461
I don't think i can pull a small example from here because I'm combining my lack of knowledge in scala, lift, html, jquery, tinyMCE ... you get the idea. The point is that I am trying to create a button that calls a scala function and a javascript function. I am currently trying to use an sh

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Right, no one likes mutable anything :-) I kinda wondered why you haven't pushed forward any more with the current record implementation... can one assume that is why - because it didn't feel right? Some of this stuff is going to be fundamental to how we move forward - id love to perhaps d

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 9:22 AM, David Pollak wrote: > > > On Thu, Oct 22, 2009 at 9:18 AM, Timothy Perrett > wrote: > >> David, >> >> I think your response was well measured and appropriate. The analogy of >> linguistics is a good one :-) >> >> Without wanting to diverge this thread, can I ask

[Lift] Security Explained

2009-10-22 Thread aw
My company is looking for an explanation of how Lift is secure. I recall reading a comment saying that Lift deals well with most of the Top 10 OWASP vulnerabilities (http://www.owasp.org/index.php/ Top_10_2007), but how? Most, not all? Are there strategies that are recommended to deal with the

[Lift] Re: A Critique On Lift

2009-10-22 Thread Raoul Duke
hi, i take issue with the following: > misunderstood. They are NOT "controllers" .. they are simple > constructs to allow dynamic markup to be injected in the template. Of > course one can abuse anything in any framework but this is besides the > point. my personal take is that if you are a res

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Dano
I did a quick check in the lift sources and could not find example or test code for the new LiftActors. Perhaps additions to these areas would help those that are trying to convert their Actor code. Thanks in advance for any help for those still struggling to make the conversion. Dan On Oct 2

[Lift] Re: Security Explained

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 10:49 AM, aw wrote: > > My company is looking for an explanation of how Lift is secure. > > I recall reading a comment saying that Lift deals well with most of > the Top 10 OWASP vulnerabilities (http://www.owasp.org/index.php/ > Top_10_2007

[Lift] SLF4J Logging for my classes

2009-10-22 Thread aw
I am using SLF4J logging, but I am not sure if I am doing it the "right" way... I have pointed Lift to use SLF4J, and I call the enable routine and have updated dependencies. All of that seems fine. My question is around, how do my classes best use it... For example, I am generally doing somet

[Lift] **Important** Migration guide Scala Actors -> Lift Actors

2009-10-22 Thread David Pollak
Folks, I wrote a quick blog piece about migrating from Scala Actors to Lift Actors at http://blog.lostlake.org/index.php?/archives/96-Migrating-from-Scala-Actors-to-Lift-Actors.html I hope this addresses questions that folks on the list have about the affirmative steps they need to take to make t

[Lift] Re: Weird request/transaction semantics

2009-10-22 Thread Jeppe Nejsum Madsen
On Thu, Oct 22, 2009 at 6:12 PM, David Pollak wrote: > There are a couple of things happening. > First, there are at least 2 distinct times when we initialize the S context > during a request handling cycle: > > During the rewrite phase (if there's a session cookie) > During the substantive proce

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-10-22 Thread TylerWeir
Stickied for now, until we think it's no longer an issue. On Oct 22, 2:57 pm, David Pollak wrote: > Folks, > > I wrote a quick blog piece about migrating from Scala Actors to Lift Actors > athttp://blog.lostlake.org/index.php?/archives/96-Migrating-from-Scala-... > > I hope this addresses questi

[Lift] Re: Weird request/transaction semantics

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 12:06 PM, Jeppe Nejsum Madsen wrote: > > On Thu, Oct 22, 2009 at 6:12 PM, David Pollak > wrote: > > There are a couple of things happening. > > First, there are at least 2 distinct times when we initialize the S > context > > during a request handling cycle: > > > > During

[Lift] Re: SLF4J Logging for my classes

2009-10-22 Thread Jeppe Nejsum Madsen
aw writes: > I am using SLF4J logging, but I am not sure if I am doing it the > "right" way... > > I have pointed Lift to use SLF4J, and I call the enable routine and > have updated dependencies. All of that seems fine. > > My question is around, how do my classes best use it... For example, >

[Lift] Re: How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-22 Thread David Pollak
On Wed, Oct 21, 2009 at 10:59 PM, Jonathan Ferguson wrote: > > > 2009/10/22 David Pollak > >> >> >> On Wed, Oct 21, 2009 at 8:46 PM, Jonathan Ferguson wrote: >> >>> >>> I have a StatefulSnippet that uses a CometActor to keep users >>> informed when performing a lengthy task, much like the exampl

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Dano
Code for our app now compiles. Needed to replace Actor with LiftActor. Also, needed to define the messageHandler partial function. So, George, I think the answer to your question is: object LocalSmtp extends Actor becomes object LocalSmtp extends LiftActor Dan On Oct 22, 11:19 am, Dano w

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-10-22 Thread Dano
Thanks to David for the migration guide. It is very useful. Victor Klang had raised the issue of rescheduling the actor in the message handling function (see below). I did not see a reference to this in the migration guide. Is it still necessary? Thanks in advance. Dan Text from Victor Kla

[Lift] Re: javascript with an ajaxbutton

2009-10-22 Thread Marius
I'm sorry that I haven't had the time to try it out myself yet. If you want the scala function to be called via an Ajax request and after that the Scala function returns the Javascript that calls your JS function, your code looks correct to me. I used this pattern quite a bit with no problems. S

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-10-22 Thread Marius
Just Simple & Beautiful ! ... Nice work Dave and Jonas. Br's, Marius On Oct 22, 9:57 pm, David Pollak wrote: > Folks, > > I wrote a quick blog piece about migrating from Scala Actors to Lift Actors > athttp://blog.lostlake.org/index.php?/archives/96-Migrating-from-Scala-... > > I hope this addr

[Lift] Re: A Critique On Lift

2009-10-22 Thread jlist9
Hi David, Appreciate your reply. It's definitely helpful in clearing some of my thoughts, as well as in my process of learning Scala down the road. I also think your book is very well paced and organization of the content is well thought out. Great job! I'd like to explain a little bit where my

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 1:29 PM, jlist9 wrote: > > Hi David, > > Appreciate your reply. It's definitely helpful in clearing some of my > thoughts, > as well as in my process of learning Scala down the road. I also think your > book is very well paced and organization of the content is well though

[Lift] Re: A Critique On Lift

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 1:29 PM, jlist9 wrote: > > Hi David, > > Appreciate your reply. It's definitely helpful in clearing some of my > thoughts, > as well as in my process of learning Scala down the road. I also think your > book is very well paced and organization of the content is well though

[Lift] catch a URL

2009-10-22 Thread Chris Lewis
Hi list, I'm working on an appengine app, and need to store some user information. I authenticate the user with their google account, and I need to create their "local" entity only if it's their first time logging in. When a user logs in via google, they are redirected back to your app, to a

[Lift] Re: A Critique On Lift

2009-10-22 Thread jlist9
> Perl's motto is "There is more then one way to do it." I remember reading somewhere that part of the the design goal of Perl 6 was to make the language "more sane". That says it all. For scripting language, I'd stick to Python, whose syntax feels natural to me, and to stay sane as much as I can

[Lift] Re: A Critique On Lift

2009-10-22 Thread jlist9
Just want to add to this. web.py is a Python web development framework that I like a lot, for its simplicity. In about 10 lines of code you can have a complete, albeit simple, web application. No XML whatsoever. http://webpy.org/ Hope no one is offended by my mentioning a Python web framework on

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 2:27 PM, jlist9 wrote: > > > Perl's motto is "There is more then one way to do it." > > I remember reading somewhere that part of the the design goal > of Perl 6 was to make the language "more sane". That says > it all. For scripting language, I'd stick to Python, whose sy

[Lift] Re: Dynamic radio button

2009-10-22 Thread sunanda
Hi Derek, I am displaying the contents of a table in ReadOnly mode as follows. The sample code is given below Display Name {coldef.displayname} Require Cookies for Link {coldef.requirecookies}

[Lift] Re: A Critique On Lift

2009-10-22 Thread Ross Mellgren
Personally I think that Python is great for small simple things, but as soon as you start to scale the lack of statically checked guarantees starts to bite you. The larger and larger you get the more often and more subtle the bites get. Conversely, with a rigorous statically checked langua

[Lift] Re: One minor exception to the no-RTFM rule

2009-10-22 Thread Randinn
Hehe, Yes, I've noticed quite a few of those, you might want to post that on the groups main page. On Oct 23, 3:33 am, David Pollak wrote: > Folks, > We've got a solid rule in Lift-land which is we don't respond with RTFM. >  Why?  Because we want to encourage people to ask questions. > > There'

[Lift] Re: How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-22 Thread Jonathan Ferguson
2009/10/23 David Pollak > > > On Wed, Oct 21, 2009 at 10:59 PM, Jonathan Ferguson wrote: > >> >> >> 2009/10/22 David Pollak >> >>> >>> >>> On Wed, Oct 21, 2009 at 8:46 PM, Jonathan Ferguson >>> wrote: >>> I have a StatefulSnippet that uses a CometActor to keep users informed whe

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread george
Thanks Dan, I will try that. --~--~-~--~~~---~--~~ 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 liftweb+unsubscr.

[Lift] Re: How do I pass information between a Comet Actor and a StatefulSnippet ?

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 4:18 PM, Jonathan Ferguson wrote: > > > 2009/10/23 David Pollak > >> >> >> On Wed, Oct 21, 2009 at 10:59 PM, Jonathan Ferguson >> wrote: >> >>> >>> >>> 2009/10/22 David Pollak >>> On Wed, Oct 21, 2009 at 8:46 PM, Jonathan Ferguson wrote: > >

[Lift] Re: S.deleteCookie broken in M6

2009-10-22 Thread Randinn
And don't forget goatrodeo, wizard, oh and the CMS. Quite a plate you have there, Makes my working and trying to get my site working look like a pittance. On Oct 23, 3:27 am, David Pollak wrote: > On Thu, Oct 22, 2009 at 9:07 AM, harryh wrote: > > > > File a ticket. > > > Done > > > > It's "Har

[Lift] Re: Security Explained

2009-10-22 Thread Randinn
I've been pondering this for some time, could an actor be used as a cookie, if so would that render the stealing attack mote? >    7. Lift uses the container's session management (usually JSESSIONID) for >    session management.  As far as I know, Jetty, Tomcat, Glassfish are secure >    in terms

[Lift] Re: Security Explained

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 4:54 PM, Randinn wrote: > > I've been pondering this for some time, could an actor be used as a > cookie, No > if so would that render the stealing attack mote? > > >7. Lift uses the container's session management (usually JSESSIONID) > for > >session managemen

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread ssid
Hi all, I'm using XMPP in my little LiftApp and tried to migrate my code to the new Lift Actors. Somehow it seems that net.liftweb.xmpp still uses Scala Actors. Is this intentional or about to change? If not is it possible that Scala Actors communicate with Lift Actors? At the moment I don't get m

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Jim Barrows
RrttrRrrrtrtrtrrrtrtrtrrttÞ Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: ssid Date: Thu, 22 Oct 2009 18:03:25 To: Lift Subject: [Lift] Re: **Breaking Changes** **README** **Important** Hi all, I'm using XMPP in my little LiftApp and tried to

[Lift] Re: Cannot build our lift app. Is net.liftweb.util OK?

2009-10-22 Thread Jean-Luc
Hi Dano, You need to add "import net.liftweb.common._" in your source code. This will import Box and Failure classes. Jean-Luc PS : copy of David's message explaining your problem. Hope it helps ! [...]The two big changes that you'll have to work with are: - *Box/Full/Empty/Failure was mov

[Lift] Re: A Critique On Lift

2009-10-22 Thread johncch
I know this is not the programming languages weblog but I'll still like to chip in a bit.. I love Scala. I know it's confusing, sometimes (more often than not) it makes my head hurts. But the language itself is so expressive. I think it's kinda, well, maybe I'm machoistic, but there's often insta

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 6:28 PM, Jim Barrows wrote: > RrttrRrrrtrtrtrrrtrtrtrrttÞ > bless you. > Sent on the Now Network™ from my Sprint® BlackBerry > > -Original Message- > From: ssid > Date: Thu, 22 Oct 2009 18:03:25 > To: Lift > Subject: [Lift] Re: **Breaking Changes**

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 6:03 PM, ssid wrote: > > Hi all, > I'm using XMPP in my little LiftApp and tried to migrate my code to > the new Lift Actors. > Somehow it seems that net.liftweb.xmpp still uses Scala Actors. > Is this intentional or about to change? > I was lazy and didn't make that chan

[Lift] Re: A Critique On Lift

2009-10-22 Thread Naftoli Gugenheim
How hard can automatic save be? But how would immutable DAOs work? There was a thread, I think on scala-user, a long time ago discussing it, that pretty much concluded it would be very problematic. David weighed in and said after a long time he concluded that databases represent state. --

[Lift] Re: A Critique On Lift

2009-10-22 Thread Naftoli Gugenheim
The last use of _, as in empty_?, is not a special scala meaning. As on Java, underscores can be part of an identifier. Scala takes advantage of this to combine letters and symbols in one name. These names, like empty_?, are a Lift convention, as well as ..._! for use-with-care methods. The sca

[Lift] Re: html not being evalutated

2009-10-22 Thread Naftoli Gugenheim
I think another solution is an Unparsed node. When the XML is converted to a string it will be outputed verbatim. - jack wrote: Let's say source.body is Search. If I put source.body in a span like this - {source.body} source.body will be converted to text

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Jonathan Ferguson
If we are using Actors for non Comet based stuff I assume we are free to leave them as is as long as we don't come asking for support ? I am thinking about moving through switching them over, but I'd like to do it at a leisurely pace. Jono 2009/10/23 David Pollak > > > On Thu, Oct 22, 2009 at

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread David Pollak
On Thu, Oct 22, 2009 at 8:54 PM, Jonathan Ferguson wrote: > If we are using Actors for non Comet based stuff I assume we are free to > leave them as is as long as we don't come asking for support ? Absolutely. Use the Actor library that best suits your needs. > > I am thinking about moving th

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-10-22 Thread Heiko Seeberger
One small step for Lift and Akka, one giant leap for Scala! Thanks, David and Jonas! Heiko 2009/10/22 Marius > > Just Simple & Beautiful ! ... Nice work Dave and Jonas. > > Br's, > Marius > > On Oct 22, 9:57 pm, David Pollak > wrote: > > Folks, > > > > I wrote a quick blog piece about migratin

[Lift] Re: catch a URL

2009-10-22 Thread Jeppe Nejsum Madsen
Chris Lewis writes: > Hi list, > > I'm working on an appengine app, and need to store some user > information. I authenticate the user with their google account, and I > need to create their "local" entity only if it's their first time > logging in. > > When a user logs in via google, they ar

[Lift] Re: A Critique On Lift

2009-10-22 Thread jlist9
Ross, > Personally I think that Python is great for small simple things, but > as soon as you start to scale the lack of statically checked > guarantees starts to bite you. What you said about the problems with dynamically typed scripting language is very true. Python is so powerful but the code

[Lift] Re: A Critique On Lift

2009-10-22 Thread Ross Mellgren
On Oct 23, 2009, at 2:31 AM, jlist9 wrote: >> Regarding () and {} BTW, you can replace a single-argument argument >> list with {}, e.g. >> >> def myFunction(a: String): Unit = println(a) >> >> myFunction("foobar") >> myFunction { "foobar" } > > I find the following three lines of code do the same t

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jonas Bonér
I love the _ operator. 2009/10/22 Timothy Perrett : > > I think this is a bit of a running joke in the scala comunity right > now - your right, underscore really does have a number of meanings; I > think this will be changed in some future Scala release. > > Your also forgetting: > > import some.

  1   2   >