Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread Naftoli Gugenheim
I agree. I would to see a 2.0 or 3.0 or something eventually with a lot of names improved. But it's up to DPP because it's his project. - Jonathan Ferguson wrote: I was thinking about this earlier, if there is to be a 2.0 I would hope there was a chance to rem

Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread Jonathan Ferguson
I was thinking about this earlier, if there is to be a 2.0 I would hope there was a chance to remove deprecated code. Also consider making breaking changes @dpp hasn't been in favour of making to date. Not to annoy him. As 1.X to 2.X is a big enough change that people who don't want to move can sta

[Lift] Re: Hitting a compiler bug (it seems)

2009-11-16 Thread DMB
Nice! And you're right. I'm trying to program in Scala as if it were C# with a weird implementation of LINQ. And C# it is not. But the thread was not really about this. The thread was about a bug in the compiler, which still stands. And you can pry my return statements out of my cold, dead hands.

Re: [Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Naftoli Gugenheim
Huh? I didn't say programs in other languages ship with bugs. But the bugs that did have to be fixed include many that stem from NPEs. Similarly, type safety in general helps keeps you safe from type mismatch bugs. - DMB wrote: >> that it's not null--which is

Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread Heiko Seeberger
2009/11/17 David Pollak > The current Lift is not a major change to Lift 1.0, it's a minor > progression and a lot of tuning of the developer experience. > There are breaking changes to the API which in the version policy suggested by me (the OSGi way) means increasing the major version number.

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 11:13 PM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 5:01 PM, Alex Boisvert > wrote: >> >> On Mon, Nov 16, 2009 at 4:26 PM, David Pollak >> wrote: >>> >>> Speaking of warnings, which do you prefer (see patch below): 1) Explicit types on val extractors (as

Re: [Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-16 Thread Margaret
exactly not. - mawei...@gmail.com 13585201588 http://maweis.com On Tue, Nov 17, 2009 at 12:58 PM, Wilson MacGyver wrote: > I would highly recommend you check to see if it's possible to find > java/tomcat hosting. > > If you have decent amount

Re: [Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-16 Thread David Pollak
You can use Nginx as a reverse proxy and send HTTP requests over the wire to your house. I've used http://prgmr.com/xen/ very successfully. They're cheap and have good bandwidth. On Mon, Nov 16, 2009 at 8:45 PM, philip wrote: > Hi, > > I will explain my problem, generally it is easy and cheap

Re: [Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Jack Widman
A refuting piece of evidence from the guy who created nulls. How cool is that?! :) On Tue, Nov 17, 2009 at 1:20 AM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 9:01 PM, DMB wrote: > >> >> that it's not null--which is a source of many bugs >> >> After a bold statement like this, one can't

Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread David Pollak
The current Lift is not a major change to Lift 1.0, it's a minor progression and a lot of tuning of the developer experience. On Mon, Nov 16, 2009 at 10:13 PM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > I think version numbers are idiotic, and created by the marketing >> departme

Re: [Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 9:01 PM, DMB wrote: > >> that it's not null--which is a source of many bugs > > After a bold statement like this, one can't help but wonder how > programmers manage to ship software in all the other languages. :-) > Come to think of it, after working on a couple of pretty

Re: [Lift] Re: Call it Lift 2.0

2009-11-16 Thread Heiko Seeberger
> > I think version numbers are idiotic, and created by the marketing > department, and not engineers. > I strongly disagree: An appropriate version strategy is not at all about marketing but expresses valuable information. In OSGi increasing the major version means breaking changes in the API, in

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 5:01 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 4:26 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Speaking of warnings, which do you prefer (see patch below): >> >>> >>> 1) Explicit types on val extractors (as it is today) >>> 2) One-liner with no

Re: [Lift] Hitting a compiler bug (it seems)

2009-11-16 Thread David Pollak
If you see the "return" statement in your program, you are likely doing something wrong. It means that it's time to refactor your code so there's a single return point from your method. Using null is a red flag (use Option or Box) and using vars (rather than vals) is a yellow flag. So, let's go

Re: [Lift] Hitting a compiler bug (it seems)

2009-11-16 Thread David Pollak
If you see the "return" statement in your program, you are likely doing something wrong. It means that it's time to refactor your code so there's a single return point from your method. Using null is a red flag (use Option or Box) and using vars (rather than vals) is a yellow flag. So, let's go

[Lift] Re: Hitting a compiler bug (it seems)

2009-11-16 Thread DMB
I'm using 2.7.7. I'll repost the issue there. On Nov 16, 9:14 pm, Ross Mellgren wrote: > You should also post this report to the scala-user list at EPFL. > > What version of scala are you using? Lift 1.1-SNAPSHOT currently uses 2.7.7, > but 1.0 used an older version so I'm wondering if the bug m

Re: [Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Ross Mellgren
I tried to hack your code into a lift-archetype-basic and eventually had success but could not reproduce the problem (the image downloaded as I intended). I did hardcode the image data and mime type because I didn't want to try and wedge an image file into the H2 database. I did have one issue w

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Indrajit Raychaudhuri
On 17/11/09 5:26 AM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 4:33 PM, Kris Nuttycombe > wrote: >> On Mon, Nov 16, 2009 at 4:28 PM, David Pollak >> wrote: >>> Folks, >>> >>> I'm seeing a lot of: >>> [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in >>> repository sp

Re: [Lift] Re: Hitting a compiler bug (it seems)

2009-11-16 Thread Ross Mellgren
You should also post this report to the scala-user list at EPFL. What version of scala are you using? Lift 1.1-SNAPSHOT currently uses 2.7.7, but 1.0 used an older version so I'm wondering if the bug may have been fixed in a later release. -Ross On Nov 17, 2009, at 12:06 AM, DMB wrote: > So a

[Lift] Re: Hitting a compiler bug (it seems)

2009-11-16 Thread DMB
So after juggling the code around for a few more minutes I have narrowed it to if(tags.length == 0) { return null } being inside the try {} block. If I move it outside and keep everything else the same, the code compiles. On Nov 16, 8:51 pm, DMB wrote: > Interestingl

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread DMB
>> that it's not null--which is a source of many bugs After a bold statement like this, one can't help but wonder how programmers manage to ship software in all the other languages. :-) Come to think of it, after working on a couple of pretty large ASP.NET projects (~50 devs), I haven't once seen

Re: [Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-16 Thread Wilson MacGyver
I would highly recommend you check to see if it's possible to find java/tomcat hosting. If you have decent amount of customers. You may also want to consider setting up a EC2/S3 instance and run your own server that way. using php front end to proxy like this, I don't think comet feature will wor

[Lift] Re: Hitting a compiler bug (it seems)

2009-11-16 Thread DMB
Interestingly, if I change the code to this: def getSelectedTag(tags: List[Tag], cookieName: String, urlParam: String) : Tag = { var t : Tag = null if(tags.length == 0) { return null } try { // See if tag name is present in the URL

[Lift] Hitting a compiler bug (it seems)

2009-11-16 Thread DMB
I wonder if anyone else finds this stack trace familiar. As often is the case with non-mainstream languages, Google turns up nothing of value. The code fragment goes below. If I comment out the code inside the finally statement, everything compiles fine. If I keep it, I get the stack trace below. I

[Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-16 Thread philip
Hi, I will explain my problem, generally it is easy and cheap to get a PHP hosting account, often my new customers for websites have a PHP hosting as they are on the cheaper end of websites. My real server is using dyndns and is located "at home". Although I have one server, I cannot host many do

[Lift] Re: How to "catch" sub-path urls and only render one page?

2009-11-16 Thread philip
Oh, working now - my new template was not in the Menu, so it was not being processed by Lift, added it to the def menu: List[Menu] and ok now. On 11月17日, 上午11時13分, philip wrote: > Hi Thiebaut, > > Thanks. > > So for a 4 level page system I do. > >    LiftRules.rewrite.prepend(NamedPF("inner pages

[Lift] Re: How to "catch" sub-path urls and only render one page?

2009-11-16 Thread philip
its not working now and i don't know why. On 11月17日, 上午11時13分, philip wrote: > Hi Thiebaut, > > Thanks. > > So for a 4 level page system I do. > >    LiftRules.rewrite.prepend(NamedPF("inner pages") >    { >      case RewriteRequest(ParsePath(List("page", level1), _, _,_), _, > _) => >        Rew

[Lift] Re: How to "catch" sub-path urls and only render one page?

2009-11-16 Thread philip
Hi Thiebaut, Thanks. So for a 4 level page system I do. LiftRules.rewrite.prepend(NamedPF("inner pages") { case RewriteRequest(ParsePath(List("page", level1), _, _,_), _, _) => RewriteResponse("page" :: Nil, Map("level1" -> level1)) case RewriteRequest(ParsePath(List("page

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
/** Image.scala **/ object Image extends Image with LongKeyedMetaMapper[Image] { override def dbTableName = "images" } class Image extends LongKeyedMapper[Image] with IdPK { def getSingleton = Image object image extends MappedBinary(this) object listing extends MappedLongForeignKey(this,

Re: [Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Ross Mellgren
It's in the "net" tab of firebug, if I recall. I haven't used firebug in a little bit though so my memory may be foggy. -Ross On Nov 16, 2009, at 8:57 PM, Strom wrote: > Thanks Ross, > I'll try to get some code up in a bit. In the meantime, can you > explain how to use Firebug to check the cont

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
Thanks Ross, I'll try to get some code up in a bit. In the meantime, can you explain how to use Firebug to check the content type? I looked under the HTML and DOM inspectors and didn't find how to look for it. Also, the error I'm getting is an XML parsing error: XML Parsing Error: no element found

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
Thanks Ross, I'll try to get some code up in a bit. In the meantime, can you explain how to use Firebug to check the content type? I looked under the HTML and DOM inspectors and didn't find how to look for it. Also, the error I'm getting is an XML parsing error: XML Parsing Error: no element found

Re: [Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Ross Mellgren
Any chance you could post your code or a reproducible example so we can poke at it? If you're getting an XML error looking at the image URL directly, I suspect that something is wrong with your Content-Type, therefore with your img.mimeType. Perhaps use Firebug or the like to see what Content-T

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
Thanks for the reply. I implemented the code and it's working, but sporadically. I'm getting these issues on my Win XP browsers: 1. Internet Explorer 6 and Safari - the image is broken altogether. 2. FireFox - The initial attempt to display or view the image via URL (e.g. http:localhost/image/{loo

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe wrote: > Oops... I didn't realize I'd committed the pom with that in! I've no > problem putting the extra warnings into a profile. Does Scala have an > equivalent of or support the @SuppressWarnings annotation that you > have in Java? > I'm not awa

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 4:26 PM, David Pollak wrote: > Speaking of warnings, which do you prefer (see patch below): > >> >> 1) Explicit types on val extractors (as it is today) >> 2) One-liner with no types (proposed) >> >> We could save 4 warnings... >> > > Here's the cost of the 4 warnings: > >

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Naftoli Gugenheim
If something is a choice of a pattern match type annotation warning, or a plain asInstanceOf, my personal preference would be the match. - David Pollak wrote: On Mon, Nov 16, 2009 at 4:03 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttyc

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 4:03 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe < > kris.nuttyco...@gmail.com> wrote: > >> >> On Mon, Nov 16, 2009 at 4:28 PM, David Pollak >> wrote: >> > Folks, >> > >> > I'm seeing a lot of: >> > [INFO] Unable to find resource 'javax.scri

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 4:28 PM, David Pollak > wrote: > > Folks, > > > > I'm seeing a lot of: > > [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in > > repository specs-repository (http://specs.googlecode.com/svn/maven2

[Lift] Re: Call it Lift 2.0

2009-11-16 Thread Naftoli Gugenheim
Hey, you could do what Ubuntu does -- 9.10 equals 10/2009 -- the month of its release. :) - Jim Barrows wrote: On Mon, Nov 16, 2009 at 4:01 PM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Hi, > > There has been a large amount of new stuff and

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:33 PM, Kris Nuttycombe wrote: > On Mon, Nov 16, 2009 at 4:28 PM, David Pollak > wrote: >> Folks, >> >> I'm seeing a lot of: >> [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in >> repository specs-repository (http://specs.googlecode.com/svn/maven2/) >>

[Lift] Re: Call it Lift 2.0

2009-11-16 Thread Jim Barrows
On Mon, Nov 16, 2009 at 4:01 PM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Hi, > > There has been a large amount of new stuff and also some breaking changes > since Lift 1.0. As an OSGi guy I suggest we call the next version Lift 2.0, > because increasing the major version number

[Lift] Re: Call it Lift 2.0

2009-11-16 Thread Naftoli Gugenheim
I think a 2.0 needs more time with a 2.0 mindset. Once 2.0 is on the table there may be more redesign involved. Or to put it differently, I think the idea to have a 2.0 should precede the list of features and the timeframe. - Heiko Seeberger wrote: Hi, Ther

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:28 PM, David Pollak wrote: > Folks, > > I'm seeing a lot of: > [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in > repository specs-repository (http://specs.googlecode.com/svn/maven2/) > > Also, I know Kris turned on type erasure warnings because he want

[Lift] Lots of compile-time cruft

2009-11-16 Thread David Pollak
Folks, I'm seeing a lot of: [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in repository specs-repository (http://specs.googlecode.com/svn/maven2/) Also, I know Kris turned on type erasure warnings because he wants to debug them but there's just a pile that can't be fixed and

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:11 PM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 3:10 PM, Kris Nuttycombe > wrote: >> >> On Mon, Nov 16, 2009 at 4:02 PM, David Pollak >> wrote: >> > >> > >> > On Mon, Nov 16, 2009 at 2:20 PM, Kris Nuttycombe >> > >> > wrote: >> >> >> >> On Mon, Nov 16, 2009 a

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 3:10 PM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 4:02 PM, David Pollak > wrote: > > > > > > On Mon, Nov 16, 2009 at 2:20 PM, Kris Nuttycombe < > kris.nuttyco...@gmail.com> > > wrote: > >> > >> On Mon, Nov 16, 2009 at 3:13 PM, David Pollak > >> wrote: > >> > > >

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:02 PM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 2:20 PM, Kris Nuttycombe > wrote: >> >> On Mon, Nov 16, 2009 at 3:13 PM, David Pollak >> wrote: >> > >> > >> > On Mon, Nov 16, 2009 at 2:12 PM, Kris Nuttycombe >> > >> > wrote: >> >> >> >> Hi, all, >> >> >> >> I

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 2:20 PM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 3:13 PM, David Pollak > wrote: > > > > > > On Mon, Nov 16, 2009 at 2:12 PM, Kris Nuttycombe < > kris.nuttyco...@gmail.com> > > wrote: > >> > >> Hi, all, > >> > >> I was just informed that my changes broke MetaMega

[Lift] Call it Lift 2.0

2009-11-16 Thread Heiko Seeberger
Hi, There has been a large amount of new stuff and also some breaking changes since Lift 1.0. As an OSGi guy I suggest we call the next version Lift 2.0, because increasing the major version number will show the world that there are breaking changes and/or cool new features. At least, this is how

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Naftoli Gugenheim
Personally I think it's more worthwhile to use scala's update syntactic sugar. True, it looks odd, but mainly because it's not seen so much. As more libraries that use value wrappers (e.g., scalafx) abound, it will probably become more accepted. Also, you can write var() = value or var ()=

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Naftoli Gugenheim
As others may have said, the difference between a Box and a value that may be null is that both may or may not contain what you want it to have; but in one case the compiler lets you assume that it does--that it's not null--which is a source of many bugs. Programming presents a tension between

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Chris Lewis
On a related note, I suggest that the lift community read through the general Scala style guide proposed by Daniel Spiewak. Lift set a few norms of its own; I'm wondering what the reaction of the core team might be to some of the suggestions. http://www.codecommit.com/scala-style-guide.pdf si

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 3:13 PM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 2:12 PM, Kris Nuttycombe > wrote: >> >> Hi, all, >> >> I was just informed that my changes broke MetaMegaProtoUser >> interaction. I've reverted the commit until I can get that sorted out. > > How was it broken?

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 2:12 PM, Kris Nuttycombe wrote: > > Hi, all, > > I was just informed that my changes broke MetaMegaProtoUser > interaction. I've reverted the commit until I can get that sorted out. > How was it broken? > > Sorry, > > Kris > > On Mon, Nov 16, 2009 at 11:27 AM, Kris Nutty

[Lift] Re: *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread Kris Nuttycombe
Hi, all, I was just informed that my changes broke MetaMegaProtoUser interaction. I've reverted the commit until I can get that sorted out. Sorry, Kris On Mon, Nov 16, 2009 at 11:27 AM, Kris Nuttycombe wrote: > Hi, all, > > I have committed a number of enhancements to Loc & LocParam which > i

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 1:00 PM, Kris Nuttycombe wrote: > The other thing I'm interested in is the named and default parameters > syntax. The first place I know of that could benefit from this is in > the multiple definitions of bind() - what others are folks aware of? > One that recently cropped

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 1:22 PM, David Pollak wrote: > Kris, > > Thanks for starting this thread. > > I am all for getting the Lift APIs more normalized.  It'd also be great if > we could do a lot of it during the next month or so (prior to M8) because > I'd really like M8 to be stable and the M8

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread alux
Back to the first computer: I get the impression, its problems were result of bad connection. now it looks different. But 1. still wrong, 2. different then computer 2 :- ( See below. Thank you. a. D:\lang\lift1.0\liftweb>mvn -v Maven version: 2.0.9 Java version: 1.6.0_06 OS name: "windows xp"

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 11:59 AM, Kris Nuttycombe wrote: > First, Alex Boisvert suggested that S.init be renamed to S.doWith to > have more consistency with Req and LiftSession. At least internally, I > think that the consensus was that this wasn't necessarily appropriate. > Just to clarify, I t

[Lift] Re: Lift & Scala style.

2009-11-16 Thread David Pollak
Kris, Thanks for starting this thread. I am all for getting the Lift APIs more normalized. It'd also be great if we could do a lot of it during the next month or so (prior to M8) because I'd really like M8 to be stable and the M8 phase be a bug-fix and 2.8 port phase. On Mon, Nov 16, 2009 at 11

[Lift] Re: Building Json result from a Map -> tranforming a map into a list of new objects

2009-11-16 Thread Tate
Cheers. I had everything else except for the "toList". > For instance: > >   val json = ("books" -> >     books.map { b => >       ("id" -> b.id) ~ >       ("tags" -> b.tags.map { case (k, v) => JField(k, v) }.toList) >     } >   ) > --~--~-~--~~~---~--~~ You rec

[Lift] Lift & Scala style.

2009-11-16 Thread Kris Nuttycombe
Hi, all, This is just a starting point for debate with a hope of eventual consensus on something that's ultimately somewhat trivial matter. Since style is currently a topic of discussion on the main scala-users list, I thought it an appropriate time to bring it up. Lift is one of the most promin

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread alux
Btw, I didnt have to do the zeigerman download on the other computer. Still puzzled. a. On 16 Nov., 20:35, alux wrote: > Thank you Tim, > > I'm still struggling. > > I tried the same on another computer. And get another error. > > Context: > > Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread alux
Thank you Tim, I'm still struggling. I tried the same on another computer. And get another error. Context: Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200) Java version: 1.6.0_03 Java home: C:\Program Files\Java\jdk1.6.0_03\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "w

[Lift] Re: Newbie having problems with "Starting with Lift"

2009-11-16 Thread dserodio
On Nov 16, 3:44 pm, David Pollak wrote: > On Mon, Nov 16, 2009 at 8:14 AM, dserodio wrote: > > > I'm a complete Lift (and Scala) newbie, and I'm trying to follow the > > "Starting with Lift" tutorial. > > > I created a blank project and when I create a Todo.scala with the > > contents of "Listin

[Lift] Re: org.igniterealtime.smack:smack:jar:3.1.0 missing

2009-11-16 Thread Indrajit Raychaudhuri
On 17/11/09 12:37 AM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 11:03 AM, Indrajit Raychaudhuri > mailto:indraj...@gmail.com>> wrote: > > > The library comes from a different Maven repo: > http://maven.reucon.com/public/ > > This site hits "503 Service Temporarily Unavailable"

[Lift] Re: org.igniterealtime.smack:smack:jar:3.1.0 missing

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 11:03 AM, Indrajit Raychaudhuri wrote: > > The library comes from a different Maven repo: > http://maven.reucon.com/public/ > > This site hits "503 Service Temporarily Unavailable" currently. > > I am guess you have nuked the ~/.m2 repo as part of your Monday morning > rit

[Lift] Re: org.igniterealtime.smack:smack:jar:3.1.0 missing

2009-11-16 Thread Indrajit Raychaudhuri
The library comes from a different Maven repo: http://maven.reucon.com/public/ This site hits "503 Service Temporarily Unavailable" currently. I am guess you have nuked the ~/.m2 repo as part of your Monday morning ritual and don't have it in local repo either :) - Indrajit On 17/11/09 12:18

[Lift] org.igniterealtime.smack:smack:jar:3.1.0 missing

2009-11-16 Thread David Pollak
Folks, Anyone know what happened to the Ignite XMPP library: org.igniterealtime.smack:smack:jar:3.1.0 ? It's missing and causing Lift to not compile. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow

[Lift] Re: Database handling during rewrite

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 2:24 AM, Jeppe Nejsum Madsen wrote: > > Hi, > > I've solved my issues with using SessionVars during rewrite, but during > this, I noted that quite a few DB connections are created during the > rewrite phase: It seems every Mapper query opens a connection, executes > the que

[Lift] Re: I download auctionnet from ibm developer web site, but meet a error.

2009-11-16 Thread David Pollak
What's the URL of the project you downloaded? On Sun, Nov 15, 2009 at 11:17 PM, Margaret wrote: > > Hi,buddy > > I download auctionnet from ibm developer website, but could not build > successfully. > > > I have tried > > mvn install > mvn compile > mvn scala:compile > mvn jetty:run > mvn -o jet

[Lift] *** BREAKING CHANGES *** to Loc & LocParam

2009-11-16 Thread Kris Nuttycombe
Hi, all, I have committed a number of enhancements to Loc & LocParam which involves a number of breaking changes. The changes and their rationale is listed below. Unless you have created your own subclasses of Loc or LocParam, these changes should not have any repercussions for you. If the effect

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 1:34 AM, DMB wrote: > > I guess that could work, but why go to such lengths where there are > much more straightforward solutions available? What do for > comprehensions buy you in this case? I mean, 99% of the time, when I > want to check for a cookie, I don't need the co

[Lift] Re: PCDataXmlParser

2009-11-16 Thread Tim Nelson
Hi On Mon, Nov 16, 2009 at 12:02 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Sun, Nov 15, 2009 at 11:24 PM, wrote: > >> Hello, >> >> I am a newby to both scala and lift. Now that that's out of the way I'm >> wondering how to properly use PCDataXmlParser to read and parse ht

[Lift] Re: PCDataXmlParser

2009-11-16 Thread David Pollak
On Sun, Nov 15, 2009 at 11:24 PM, wrote: > Hello, > > I am a newby to both scala and lift. Now that that's out of the way I'm > wondering how to properly use PCDataXmlParser to read and parse html. PXDataXmlParser requires well formed XML. It is an XML parser. There are plenty of Java librari

[Lift] Re: How to use Box

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 4:17 AM, Eros Candelaresi wrote: > > The use of open_! seems safe to me here because all paths return > Full(String). > > Please only use open_! is there's no other good alternative (I try to comment my use of open_! so that other developers understand that there are precur

[Lift] Re: Newbie having problems with "Starting with Lift"

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 8:14 AM, dserodio wrote: > > I'm a complete Lift (and Scala) newbie, and I'm trying to follow the > "Starting with Lift" tutorial. > > I created a blank project and when I create a Todo.scala with the > contents of "Listing 2: The ToDo model", I get a "Cannot resolve > sym

[Lift] Re: Best practices for objects that refer to their own type?

2009-11-16 Thread Peter Robinett
Based how I think MappedLongForeignKey works, I would expect Comment.parentComment to already have the parent instance, but I haven't tested this. Peter On Nov 16, 8:57 am, Trevor Austin wrote: > I have an object type representing a threaded comment that I want to > organize into trees - what's

[Lift] Re: b798ce43 causes lift-webkit to depend on lift-actor, but pom doesn't reflect it?

2009-11-16 Thread Ross Mellgren
Ah, that would explain it, it is a strange (but necessary) configuration of my maven setup -- I have lift-util (but not lift- actor) set to provided, and I didn't realize before this commit that - util depended on -actor. I'll un-hork my build, thanks for the pointer. -Ross On Nov 16, 2009, a

[Lift] Re: mvn jetty:run silent error

2009-11-16 Thread Marcin Jurczuk
I dont' have any of variables mentioned by you (MAVEN_OPTS,JAVA_OPTS) Spaces in Windows paths are typical and for last 2 moths since I dig in lift there was no such problem. Marcin, On 16 Lis, 18:35, David Pollak wrote: > On Mon, Nov 16, 2009 at 9:27 AM, Marcin Jurczuk wrote: > > > What space

[Lift] Re: Best practices for objects that refer to their own type?

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 8:57 AM, Trevor Austin wrote: > > I have an object type representing a threaded comment that I want to > organize into trees - what's the best way to represent this > relationship with Mapper? My naive idea is to do something like: > > class Comment extends LongKeyedMappe

[Lift] Re: b798ce43 causes lift-webkit to depend on lift-actor, but pom doesn't reflect it?

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 9:34 AM, Ross Mellgren wrote: > > I went to run a new build today of my application, and the build went > okay but it blew up with NoClassDefFoundError: > > 12:13:29,062 [main] ERROR [localhost].[/emailwizard] - Exception > starting filter LiftFilter > java.lang.NoClassDef

[Lift] Re: mvn jetty:run silent error

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 9:27 AM, Marcin Jurczuk wrote: > > What spaces ..I don't see any spaces -Xbootclasspath/a:C: \Documents and Settings uk\.m2\repository\org\scala- lang\scala-library\2.7.7\scala- library-2.7.7.jar > ...and yesterday everything worked > ok. > Do you have any MAVEN_OPT

[Lift] b798ce43 causes lift-webkit to depend on lift-actor, but pom doesn't reflect it?

2009-11-16 Thread Ross Mellgren
I went to run a new build today of my application, and the build went okay but it blew up with NoClassDefFoundError: 12:13:29,062 [main] ERROR [localhost].[/emailwizard] - Exception starting filter LiftFilter java.lang.NoClassDefFoundError: net/liftweb/actor/SpecializedLiftActor at ne

[Lift] Re: mvn jetty:run silent error

2009-11-16 Thread Marcin Jurczuk
What spaces ..I don't see any spaces...and yesterday everything worked ok. About variables you were asked: S:\NetBeansProjects\lab-lift>echo %SCALA_HOME% C:\Program Files\scala S:\NetBeansProjects\lab-lift>echo %JAVA_HOME% C:\Program Files\Java\jre6 S:\NetBeansProjects\lab-lift> scala bin, maven

[Lift] Re: mvn jetty:run silent error

2009-11-16 Thread David Pollak
I'm just guessing here... but it looks like the spaces in path names is causing confusion. What are your environment variables? On Mon, Nov 16, 2009 at 8:59 AM, Marcin Jurczuk wrote: > > Hi group, > > I have weird problem with my lab-lift app. Since yesterday I can't > bring up jetty up and run

[Lift] mvn jetty:run silent error

2009-11-16 Thread Marcin Jurczuk
Hi group, I have weird problem with my lab-lift app. Since yesterday I can't bring up jetty up and running. There is no errro just after execute mvn jetty:run I'm getting prompt from cli after few seconds. Here is output from jety:run === S:\NetBeansPr

[Lift] Best practices for objects that refer to their own type?

2009-11-16 Thread Trevor Austin
I have an object type representing a threaded comment that I want to organize into trees - what's the best way to represent this relationship with Mapper? My naive idea is to do something like: class Comment extends LongKeyedMapper[Comment] with IdPK { ... object parentComment extends Mapped

[Lift] Another List "XYZ" Menu Entry

2009-11-16 Thread Hannes
Hi Lifters, I need a new menu entry that displays a table similar to the one, that is shown by the CRUDify List "XYZ" link. But I need to display different fields without the chance to edit or delete the "items". So basically, just a simple table. Later on, some Comet stuff would be nice, to s

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread Timothy Perrett
Quite obviously I meant the latter Not sure why your getting that error, changes is a standard plugin. Please provide your maven version and java version. Cheers, Tim On Nov 16, 3:19 pm, alux wrote: > I'm not offline in the moment, I can use the web to build the docs, > the problem is, it

[Lift] Newbie having problems with "Starting with Lift"

2009-11-16 Thread dserodio
I'm a complete Lift (and Scala) newbie, and I'm trying to follow the "Starting with Lift" tutorial. I created a blank project and when I create a Todo.scala with the contents of "Listing 2: The ToDo model", I get a "Cannot resolve symbol IdPK". Which package contains this trait ? Also, are the m

[Lift] Re: problems with tomcat

2009-11-16 Thread DavidV
For the time being I have code that compiles correctly and I am leaving eclipse completely out of the picture. I am running Windows Vista 64bit. I have quit eclipse and tried to run a "mvn clean install" to rebuild my project, but I get the exact same error that I previously posted (ConnectExcept

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread alux
I'm not offline in the moment, I can use the web to build the docs, the problem is, it doesnt work. 'mvn -o scala:doc from the root pom.xml' at the command line? doesnt look like any maven call I have seen til now. Or do you mean mvn -o scala:doc in the directory with the root pom (I assume this

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread Timothy Perrett
The command you need when your offline is: mvn -o scala:doc from the root pom.xml Doing this command on a fresh lift clone gives you docs for 1.1-SNAPSHOT, not 1.0. I would highly recommend using 1.1 now... a lot has changed since 1.0 Cheers, Tim On 16 Nov 2009, at 14:27, alux wrote: > > He

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Ross Mellgren
Box ha a number of benefits over null -- type system enforced null checks, stringing computations that can fail together in a safe fashion, error handling, and so on. Usually you only need to handle the case where there is a value and map, foreach or for comprehensions are good for that. If

[Lift] API-Doc generation help, pls

2009-11-16 Thread alux
Hello all, I got some difficulties working with lift, and heard this is the place to ask. The current problem seems simple. I want to get the API docs to read them offline. But there is no (findable) place to download them. Why? The typical time to dig into an API is while travelling, and thats

[Lift] Re: How to "catch" sub-path urls and only render one page?

2009-11-16 Thread Thiébaut Champenier
Hi Philip, Just add something like that to your Boot.scala // Rewrite some URLs LiftRules.rewrite.prepend(NamedPF("test rewrite") { case RewriteRequest(ParsePath(List("test", stuff1, stuff2), _, _,_), _, _) => RewriteResponse("test_page" :: Nil, Map("stuff" -> stuff1, "other

[Lift] Re: Novell Pulse, front end by Lift

2009-11-16 Thread Xuefeng Wu
awesome, There's no flash? On Nov 11, 2:14 pm, David LaPalomento wrote: > I'm glad to hear you like what you've seen so far with Pulse!  I don't > think we could do half the stuff we're doing without Lift backing us > up.  Stay tuned, we'll have more than a video to share with the group > soon :

[Lift] How to "catch" sub-path urls and only render one page?

2009-11-16 Thread philip
Hi, I wish to know, how can I catch all URLs under one path and only render one page. I have a test.html in the webapp. I want that all urls that appear to be in the subpath of test to only render test.html. For example, URLs. http://localhost/test/some/path/here http://localhost/test/anything

  1   2   >