[Lift] Re: net.liftweb.http.LiftFilter is not a javax.servlet.Filter
Sorry Ross, I meant Java Service Wrapper! It was late and I must have typed it wrong :-( Any thoughts? Would it help if put together a rough sample? Cheers Tim Sent from my iPhone On 13 Oct 2009, at 02:21, Ross Mellgren dri...@gmail.com wrote: Before I go barking up the wrong tree, by JWS you mean Java Web Start or Java Web Services? I must confess, Im running a fairly specific config. Essentially I have an executable WAR file that has a jetty launcher class inside - its pretty sweet, and it works from the command line doing: java -jar myapp.war However, when I go to implement it with JWS I get this error. -Ross On Oct 12, 2009, at 9:05 PM, Timothy Perrett wrote: I cant really post the war im afraid, as its calling all manner of services on some internal systems. The strange thing with all of this is that it works when you execute: java -jar myapp.war Here's what you should need to just make a similar demo project: https://gist.github.com/3ad5cd900bbe0012b147 - the first being the maven build and the 2nd being the launcher im using for jetty. Cheers, Tim On Oct 13, 1:47 am, Ross Mellgren dri...@gmail.com wrote: Especially since it prints out the valid class name in the log message. I suppose you can't post the WAR somewhere so I can have a poke? -Ross --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: net.liftweb.http.LiftFilter is not a javax.servlet.Filter
Hey Naftoli, I posted a link to the code that's throwing the error - seems to being caused from isAssignableFrom. I'm wondering if it's got anything to do with the servlet abstraction stuff? Cheers, Tim Sent from my iPhone On 13 Oct 2009, at 02:06, Naftoli Gugenheim naftoli...@gmail.com wrote: Wouldn't know, but have you tried looking up the source code that throws the exception? Is Jetty trying to do anything unusual? On Mon, Oct 12, 2009 at 8:14 PM, Timothy Perrett timo...@getintheloop.eu wrote: Hey guys, I've been having a crazy problem all day (and now into the extremely late night). Basically, Jetty is throwing this error: jvm 1| java.lang.IllegalStateException: class net.liftweb.http.LiftFilter is not a javax.servlet.Filter jvm 1| at org.mortbay.jetty.servlet.FilterHolder.doStart (FilterHolder.java:88) jvm 1| at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:50) jvm 1| at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:662) jvm 1| at org.mortbay.jetty.servlet.Context.startContext (Context.java:140) jvm 1| at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1250) jvm 1| at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:517) jvm 1| at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:467) jvm 1| at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:50) jvm 1| at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130) jvm 1| at org.mortbay.jetty.Server.doStart(Server.java:224) jvm 1| at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:50) jvm 1| at Launcher.main(Launcher.java:53) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source) jvm 1| at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source) jvm 1| at java.lang.reflect.Method.invoke(Unknown Source) jvm 1| at org.tanukisoftware.wrapper.WrapperJarApp.run (WrapperJarApp.java:358) jvm 1| at java.lang.Thread.run(Unknown Source) jvm 1| 2009-10-13 01:10:12.781::INFO: Started selectchannelconnec...@0.0.0.0:9090 I must confess, Im running a fairly specific config. Essentially I have an executable WAR file that has a jetty launcher class inside - its pretty sweet, and it works from the command line doing: java -jar myapp.war However, when I go to implement it with JWS I get this error. Any help would be really, really welcome Cheers, Tim --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] java.sql.SQLException | ERROR 07000
Hi Lifters, I encountered a problem after I started tried to test my project today. I'm almost sure that this error didn't occured before..I also updated to 1.1-M6 but the error is still there. Do I've to do some other update? I think the problem is related to some actor stuff.??? Here's some console output: - INFO - Service request (GET) /limitorder/list took 263 Milliseconds INFO - Service request (GET) /images/ajax-loader.gif took 2 Milliseconds INFO - Service request (GET) /user_mgt/logout took 21 Milliseconds INFO - The CometActor org.tobster.comet.mar...@221f81 Received Shutdown INFO - Service request (GET) / took 93 Milliseconds INFO - Service request (GET) /comet_request/1bebfbc2v6fa9/cometAjax.js took 3 Milliseconds INFO - Service request (GET) /images/ajax-loader.gif took 2 Milliseconds INFO - Service request (GET) /comet_request/85510940001/1bebfbc2v6fa9 took 16 Milliseconds INFO - Service request (GET) /comet_request/60721905658/1bebfbc2v6fa9 took 8714 Milliseconds INFO - Service request (GET) /user_mgt/sign_up took 794 Milliseconds INFO - Service request (GET) /images/ajax-loader.gif took 1 Milliseconds INFO - Service request (POST) /user_mgt/sign_up took 14 Milliseconds INFO - Service request (GET) / took 91 Milliseconds INFO - Service request (GET) /images/ajax-loader.gif took 1 Milliseconds INFO - Service request (GET) /comet_request/36437894169/1bebfbc2v6fa9 took 8400 Milliseconds INFO - Service request (GET) /limitorder/create took 138 Milliseconds INFO - Service request (GET) /images/ajax-loader.gif took 3 Milliseconds INFO - Service request (POST) /limitorder/create took 32 Milliseconds java.sql.SQLException: At least one parameter to the current statement is uninitialized. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source) at net.liftweb.mapper.MetaMapper$$anonfun$14$$anonfun$15.apply(MetaMapper.scala:653) at net.liftweb.mapper.MetaMapper$$anonfun$14$$anonfun$15.apply(MetaMapper.scala:636) at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply(DB.scala:375) at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply(DB.scala:372) at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241) at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29) at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372) at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316) at net.liftweb.mapper.MetaMapper$$anonfun$14.apply(MetaMapper.scala:635) at net.liftweb.mapper.MetaMapper$$anonfun$14.apply(MetaMapper.scala:630) at net.liftweb.mapper.DB$.use(DB.scala:389) at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:629) at org.tobster.model.LimitOrderMetaObj$.save(LimitOrder.scala:201) at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:86) at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:86) at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65) at net.liftweb.mapper.Safe$.runSafe(Safe.scala:44) at net.liftweb.mapper.Mapper$class.runSafe(Mapper.scala:52) at org.tobster.model.LimitOrder.runSafe(LimitOrder.scala:21) at net.liftweb.mapper.Mapper$class.save(Mapper.scala:85) at org.tobster.model.LimitOrder.save(LimitOrder.scala:21) at org.tobster.comet.MarketServer$.doSecurityReservation(Market.scala:44) at org.tobster.comet.MarketServer$$anonfun$highPriority$1.apply(Market.scala:30) at org.tobster.comet.MarketServer$$anonfun$highPriority$1.apply(Market.scala:28) at scala.PartialFunction$$anon$1.apply(PartialFunction.scala:37) at scala.PartialFunction$$anon$1.apply(PartialFunction.scala:37) at scala.PartialFunction$$anon$1.apply(PartialFunction.scala:37) at scala.actors.Reaction.run(Reaction.scala:78) at scala.actors.FJTask$Wrap.run(Unknown Source) at scala.actors.FJTaskRunner.scanWhileIdling(Unknown Source) at scala.actors.FJTaskRunner.run(Unknown Source) Caused by: java.sql.SQLException: At least one parameter to the current statement is uninitialized. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at
[Lift] Re: Complex primary key
GA, so you want a composite primary key? I'm not sure that's possible in most SQL databases, though a unique composite key definitely is... Peter Robinett On Oct 12, 4:30 pm, my_li...@me.com wrote: Hello guys, How can I create a mapper with two or more fields as primary key? For instance if we have a table of people with a Long primary key called ID generated by IdPK, and also we have a table of addresses also with a Long primary key called ID generated by IdPK. The idea is to create an association table with both IDs to represent people with many addresses and addresses with multiple people. So both IDs will be primary key of the new table. Thanks in advance, GA --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: java.sql.SQLException | ERROR 07000
On Tue, Oct 13, 2009 at 8:27 AM, Hannes hannes.flo...@gmx.li wrote: I'm almost sure that this error didn't occured before..I also updated to 1.1-M6 but the error is still there. Do I've to do some other update? I think the problem is related to some actor stuff.??? This is a long shot, but I think I saw something similar and it turned out I had an incorrect DB.addLogFunc in my Boot. If you have one, maybe comment it out and see if you get the same behaviour. It doesn't really look related from the stack trace, but I thought I'd mention it just in case... Richard --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Question about the TreeViewDemo in the lift widgets section of the Exploring LIft pdf
Tracked this down to a missing import statement: import JE._ You can recreate this by removing this import in the TreeViewDemo.scala (http://github.com/dpp/liftweb/blob/master/lift- widgets/src/test/scala/webapptest/snippet/TreeViewDemo.scala) file, and compile it. On Oct 11, 9:34 pm, Jim Barrows jim.barr...@gmail.com wrote: I've interpreted the demo as the code below. However, I get this exception when I compile: /snippet/TreeViewDemo.scala:14: error: not found: value JsObj TreeView(example, JsObj(animated-90)) I'm not sure what I'm doing wrong I'd appreciate any help. Here's the code: package com.nsfw.bmp.businesssetup.snippet import _root_.net.liftweb.http._ import S._ import _root_.net.liftweb.http.js.JsObj import _root_.net.liftweb.util._ import Helpers._ import _root_.net.liftweb.widgets.tree._ import _root_.scala.xml._ class TreeViewDemo { def render(xhtml:Group):NodeSeq={ TreeView(example, JsObj((animated-90))) } def loadTree() = { Tree(No Children):: Tree(one static child, Tree(Lone child) :: Nil) :: Tree(Dynamic node, myDynamic, true) :: Nil } def loadNode(id:String) : List[Tree] = id match { case myDyanmic = Tree(Child one) :: Tree(Child two) ::Nil case _ = Nil } } --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: java.sql.SQLException | ERROR 07000
OK, thanks. I'll have a look! On Tue, Oct 13, 2009 at 8:27 AM, Hannes hannes.flo...@gmx.li wrote: I'm almost sure that this error didn't occured before..I also updated to 1.1-M6 but the error is still there. Do I've to do some other update? I think the problem is related to some actor stuff.??? This is a long shot, but I think I saw something similar and it turned out I had an incorrect DB.addLogFunc in my Boot. If you have one, maybe comment it out and see if you get the same behaviour. It doesn't really look related from the stack trace, but I thought I'd mention it just in case... Richard --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Create the website and all the links are Https ?
You can use Apache to secure your page with HTTPS. Hi all, How can we create the website and all the links are https? Just like: www.xing.com That all of the operations and communications are used https. Thanks very much ! Cheers, Neil --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Why fields are declared as 'object' with Mapper/Record?
to Naftoli: i added implicits as you said and removed all 'onRegister' stuff, i think its useless.. Here's the result: http://github.com/ojow/Random-code/blob/master/RecordRelatedStuff.scala --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Why fields are declared as 'object' with Mapper/Record?
edit: not all 'onRegister' stuff but most of it, only left two points of extension for intercepting the prototype creation. --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Props file example
On Mon, Oct 12, 2009 at 2:55 PM, my_li...@me.com wrote: And how do I switch runtimes? within the boot.scala? If I need to, I change the run mode at start up time: $ MAVEN_OPTS=-Drun.mode=pilot mvn jetty:run ...if that helps Richard --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: java.sql.SQLException | ERROR 07000
On Tue, Oct 13, 2009 at 10:37 AM, Hannes hannes.flo...@gmx.li wrote: OK, thanks. I'll have a look! Ah, it won't be that. I've just seen the error I had documented here: http://wiki.github.com/dpp/liftweb/10-11-possible-code-changes ...and it looks nothing like the error you're getting. Sorry for the false lead. Richard --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Why fields are declared as 'object' with Mapper/Record?
On 13 окт, 10:40, David Pollak feeder.of.the.be...@gmail.com wrote: I've got a change on review board that will pick up vals and lazy vals that are MappedFields. Seehttp://reviewboard.liftweb.net/r/40/ However, until certain defects in the Scala compiler (https://lampsvn.epfl.ch/trac/scala/ticket/2463andhttps://lampsvn.epfl.ch/trac/scala/ticket/1006) are fixed, these features are dangerous and should not be used. That's cool! Thanks. --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Creating calculated fields in mapper
Hi, I'm trying to create a mapped object that has some calculated values, where the values are based on actual values in the mapped object. I.e class Tender extends LongKeyedMapper[Tender] with IdPK with OwnedEntity { def getSingleton = Tender object start extends MappedDate(this) object finish extends MappedDate(this) // Calculated field object length extends MappedInt(this) { override def toString = {} override def ignoreField_? = true // Calculated field } } However, I'm having some problems getting this to work: 1) I can't seem to read the values from the other fields within length, ie both fieldOwner.id.is and id.is returns -1 2) There's no lifecycle callback that is called after load, so I can't (easily) put the correct value into the field... Any hints? /Jeppe --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Debug cookies
+1 This is very sound advice. Cheers, Tim On 12 Oct 2009, at 21:35, Ross Mellgren wrote: I don't know if it increases compile time but I avoid wildcard imports like the plague because I think they're perhaps the most confusing thing reading scala code. Thinking to yourself that two types don't match, but you can't be sure if you're reading it wrong or if there's an implicit in scope, with explicit imports at least you can look at the import list to see if there are any applicable implicits in scope, whereas with wildcard imports you're left searching through a perhaps large list of perhaps large modules looking for implicits. And then there's the somewhat simpler pain of where the heck is this name imported from even where it's explicit. --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: DB logging logs statements twice?
I'm not sure how that could be getting logged twice, especially since it's the exact same ResultSet being returned. When I tested this on my local app (against both PG and MySQL) I didn't get this behavior, but I'll try pulling from master and testing again just in case something changed. Derek On Tue, Oct 13, 2009 at 6:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Just wanted to update to the new db logging by adding the following to boot: DB.addLogFunc { case (query:DBLog, time) = { LogBoot.loggerByName(query).info( All queries took + time + ms: ) query.statementEntries.foreach({ case DBLogEntry(stmt, duration) = LogBoot.loggerByName(query).info(+stmt + took + duration + ms)}) LogBoot.loggerByName(query).info( End queries) } } But it seems all executed statements are logged twice. I have this snippet: def currentUser(xhtml: Group): NodeSeq = Text(User.currentUser.dmap(S.?(Anonym))(user = user.firstName + + user.lastName)) This logs: 14:46:09.068 [tp-1029120287-4] INFO query- All queries took 5ms: 14:46:09.068 [tp-1029120287-4] INFO query- Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query- End queries 14:46:09.069 [tp-1029120287-4] INFO query- All queries took 8ms: 14:46:09.069 [tp-1029120287-4] INFO query- Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query - End queries Note the same resultset. The postgres logs also shows that only a single statement is executed So, what did I miss? /Jeppe --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: net.liftweb.http.LiftFilter is not a javax.servlet.Filter
Hey Ross, Yeah i've used JSW before also and its been pretty good. However, i got annoyed with it and found this: http://yajsw.sourceforge.net/ Its really, really good - a lot more comprehensive that JSW and its still free. yajsw FTW! Cheers, Tim On 13 Oct 2009, at 15:25, Ross Mellgren wrote: The only reason I could think of is that something is pulling a servlet API into scope that you're not expecting -- I use JSW myself and I know that I've never seen this kind of thing happen. I'd be glad to poke around if you throw up a sample, I confess I didn't have enough time last night to put it together using your gist post. -Ross On Oct 13, 2009, at 3:08 AM, Timothy Perrett wrote: Sorry Ross, I meant Java Service Wrapper! It was late and I must have typed it wrong :-( Any thoughts? Would it help if put together a rough sample? Cheers Tim Sent from my iPhone On 13 Oct 2009, at 02:21, Ross Mellgren dri...@gmail.com wrote: Before I go barking up the wrong tree, by JWS you mean Java Web Start or Java Web Services? I must confess, Im running a fairly specific config. Essentially I have an executable WAR file that has a jetty launcher class inside - its pretty sweet, and it works from the command line doing: java -jar myapp.war However, when I go to implement it with JWS I get this error. -Ross On Oct 12, 2009, at 9:05 PM, Timothy Perrett wrote: I cant really post the war im afraid, as its calling all manner of services on some internal systems. The strange thing with all of this is that it works when you execute: java -jar myapp.war Here's what you should need to just make a similar demo project: https://gist.github.com/3ad5cd900bbe0012b147 - the first being the maven build and the 2nd being the launcher im using for jetty. Cheers, Tim On Oct 13, 1:47 am, Ross Mellgren dri...@gmail.com wrote: Especially since it prints out the valid class name in the log message. I suppose you can't post the WAR somewhere so I can have a poke? -Ross --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Why fields are declared as 'object' with Mapper/Record?
On Mon, Oct 12, 2009 at 10:15 PM, Oleg G. ojo...@gmail.com wrote: After reading Naftoli's post i checked the way inner object laziness is implemented. And it appears to be not thread safe. It is not threadsafe. This is a known defect and is supposed to be addressed in 2.8. But, the cost of a failure is dual initialization of the field. Following code: class A { val a = 1 } class B { object b extends A } Generates getter for b as follows: public final B$b$ b(); Code: 0: aload_0 1: getfield#18; //Field b$module:LB$b$; 4: ifnonnull 19 7: aload_0 8: new #20; //class B$b$ 11: dup 12: aload_0 13: invokespecial #23; //Method B$b$.init:(LB;)V 16: putfield#18; //Field b$module:LB$b$; 19: aload_0 20: getfield#18; //Field b$module:LB$b$; 23: areturn Looks like its not synchronized? I also looked at lazy vals generated code (when i was thinking on val based Records) and dropped the idea because of synchronization for every single access to a field. That's not the case. There's only a synchronization if the initial non-synchronized test fails. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Complex primary key
I don't think that's possible with mapper. Sorry. You might want to see if JPA supports such a beast. On Mon, Oct 12, 2009 at 7:30 AM, my_li...@me.com wrote: Hello guys, How can I create a mapper with two or more fields as primary key? For instance if we have a table of people with a Long primary key called ID generated by IdPK, and also we have a table of addresses also with a Long primary key called ID generated by IdPK. The idea is to create an association table with both IDs to represent people with many addresses and addresses with multiple people. So both IDs will be primary key of the new table. Thanks in advance, GA -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Create the website and all the links are Https ?
On Tue, Oct 13, 2009 at 3:04 AM, Hannes hannes.flo...@gmx.li wrote: You can use Apache to secure your page with HTTPS. This is correct. The web server that sits in front of your application is responsible for dealing with the HTTP(S) traffic. You can use Apache, Nginx (my favorite) or Lighttpd http://www.lighttpd.net/ as your front end and Jetty, Tomcat, etc. as your servlet container where your Lift application lives. Jetty and Tomcat can also serve HTTPS, but it's generally better to have a native code container running on port 80 (you need to be root on Unix to listen on port 80) that proxies requests to your servlet container. Hi all, How can we create the website and all the links are https? Just like: www.xing.com That all of the operations and communications are used https. Thanks very much ! Cheers, Neil -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Issues on github
I just created a new issue (http://github.com/dpp/liftweb/issues#issue/97 ) and I was curious if just creating it was enough, or whether one needs to send a message to list as well? Is there a policy somewhere I should read? -Ross --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: DB logging logs statements twice?
I'm also seeing this double logging behavior (using PostgreSQL. I was under the impression that it was happening because the SQL statement is first prepared, and then executed (each of which cause a log entry). It's not critical or anything, but it would be nice if this could be fixed at some point. -harryh On Oct 13, 10:28 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm not sure how that could be getting logged twice, especially since it's the exact same ResultSet being returned. When I tested this on my local app (against both PG and MySQL) I didn't get this behavior, but I'll try pulling from master and testing again just in case something changed. Derek On Tue, Oct 13, 2009 at 6:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Just wanted to update to the new db logging by adding the following to boot: DB.addLogFunc { case (query:DBLog, time) = { LogBoot.loggerByName(query).info( All queries took + time + ms: ) query.statementEntries.foreach({ case DBLogEntry(stmt, duration) = LogBoot.loggerByName(query).info( +stmt + took + duration + ms)}) LogBoot.loggerByName(query).info( End queries) } } But it seems all executed statements are logged twice. I have this snippet: def currentUser(xhtml: Group): NodeSeq = Text(User.currentUser.dmap(S.?(Anonym))(user = user.firstName + + user.lastName)) This logs: 14:46:09.068 [tp-1029120287-4] INFO query - All queries took 5ms: 14:46:09.068 [tp-1029120287-4] INFO query - Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query - End queries 14:46:09.069 [tp-1029120287-4] INFO query - All queries took 8ms: 14:46:09.069 [tp-1029120287-4] INFO query - Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query - End queries Note the same resultset. The postgres logs also shows that only a single statement is executed So, what did I miss? /Jeppe --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Issues on github
Just create the ticket. We committers review them very frequently On Tue, Oct 13, 2009 at 9:00 AM, Ross Mellgren dri...@gmail.com wrote: I just created a new issue (http://github.com/dpp/liftweb/issues#issue/97 ) and I was curious if just creating it was enough, or whether one needs to send a message to list as well? Is there a policy somewhere I should read? -Ross -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Complex primary key
I'm sorry, are you trying to do a compound primary key or create a many-to-many intermediary table? On Tue, Oct 13, 2009 at 8:06 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I don't think that's possible with mapper. Sorry. You might want to see if JPA supports such a beast. On Mon, Oct 12, 2009 at 7:30 AM, my_li...@me.com wrote: Hello guys, How can I create a mapper with two or more fields as primary key? For instance if we have a table of people with a Long primary key called ID generated by IdPK, and also we have a table of addresses also with a Long primary key called ID generated by IdPK. The idea is to create an association table with both IDs to represent people with many addresses and addresses with multiple people. So both IDs will be primary key of the new table. Thanks in advance, GA -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Extend the tables that like the migration in the Rails ?
Schemifier only adds, it does not remove. You have to do destructive operations manually. However, you can register for callbacks on column adds (e.g., MappedField.dbAddedColumn). You could use this function to look for an existing column that needs to be removed. On Mon, Oct 12, 2009 at 7:46 PM, Neil.Lv anim...@gmail.com wrote: Yeah, I see it now, and it works ! 1): ### I add a column in the User model, like this class User extends MegaProtoUser[User] { ... /* add column dos4 */ object dos4 extends MappedBoolean(this) ... } result: INFO - ALTER TABLE users ADD COLUMN do4 SMALLINT ### 2): ### I remove a column in the User model, like this class User extends MegaProtoUser[User] { ... /* remove column dos4 */ /* object dos4 extends MappedBoolean(this) */ ... } result: Don't remove the cloumn dos4. ### 3): How can i remove the column in the liftweb (change the structure of the table), just like the execute raw SQL statement. execute(SELECT * from users) # Rails code in Migration On Oct 13, 10:16 am, David Pollak feeder.of.the.be...@gmail.com wrote: Just add the column to the User model. Schemifier will add the column to the RDBMS. On Mon, Oct 12, 2009 at 6:20 PM, Neil.Lv anim...@gmail.com wrote: Yeah, I have add this code in the Boot.scala. ### Schemifier.schemify(true, Log.infoF _, User) ### But i want to add a column into the user table (extend the user table) now, and how can i achieve this purpose. Ex: ### Original user table like this idemail first_name last_name 1 a...@b.comhelloworld ### But the user table need to extend (add a column, like this) idemail first_name last_name sex 1 a...@b.comhelloworld 0 ### I add this code in the User model and restart the server, the table don't change anything ! ### Schemifier.schemify(true, Log.infoF _, User) # in the Boot.scala class User extends MegaProtoUser[User] { ... object desc extends MappedPoliteString(this, 128) ... } ### How the liftweb can do this ? Cheers, Neil On Oct 12, 6:10 pm, Peter Robinett pe...@bubblefoundry.com wrote: Is User added to Schemefier in Boot.scala? It should look something like: Schemifier.schemify(true, Log.infoF _, User) Peter Robinett On Oct 12, 11:22 am, Neil.Lv anim...@gmail.com wrote: Hi all, I don't know whether there is a mechanism that like the migration of the Rails in the Liftweb, and how can we extend the table, such as add a column desc into a table users (OR user ?). I add this code in the User model and restart the server, the table don't change anything ! ### class User extends MegaProtoUser[User] { ... object desc extends MappedPoliteString(this, 128) ... } ### How can i do if i want to achieve this purpose ? Thanks for any suggestion! Cheers, Neil -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: DB logging logs statements twice?
OK, I'm seeing the same thing here. I'll open an issue and work on it. Derek On Tue, Oct 13, 2009 at 10:07 AM, harryh har...@gmail.com wrote: I'm also seeing this double logging behavior (using PostgreSQL. I was under the impression that it was happening because the SQL statement is first prepared, and then executed (each of which cause a log entry). It's not critical or anything, but it would be nice if this could be fixed at some point. -harryh On Oct 13, 10:28 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm not sure how that could be getting logged twice, especially since it's the exact same ResultSet being returned. When I tested this on my local app (against both PG and MySQL) I didn't get this behavior, but I'll try pulling from master and testing again just in case something changed. Derek On Tue, Oct 13, 2009 at 6:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, Just wanted to update to the new db logging by adding the following to boot: DB.addLogFunc { case (query:DBLog, time) = { LogBoot.loggerByName(query).info( All queries took + time + ms: ) query.statementEntries.foreach({ case DBLogEntry(stmt, duration) = LogBoot.loggerByName(query).info(+stmt + took + duration + ms)}) LogBoot.loggerByName(query).info( End queries) } } But it seems all executed statements are logged twice. I have this snippet: def currentUser(xhtml: Group): NodeSeq = Text(User.currentUser.dmap(S.?(Anonym))(user = user.firstName + + user.lastName)) This logs: 14:46:09.068 [tp-1029120287-4] INFO query - All queries took 5ms: 14:46:09.068 [tp-1029120287-4] INFO query - Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query - End queries 14:46:09.069 [tp-1029120287-4] INFO query - All queries took 8ms: 14:46:09.069 [tp-1029120287-4] INFO query - Exec query SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.superuser, users.uniqueid, users.validated FROM users WHERE id = 2 (scale -5) : org.postgresql.jdbc4.jdbc4result...@77f31432 took 4ms 14:46:09.069 [tp-1029120287-4] INFO query - End queries Note the same resultset. The postgres logs also shows that only a single statement is executed So, what did I miss? /Jeppe --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Database Conversion using Lift's Mapper (e.g. MySQL - Postgres)
Cool! Thanks. And good choice moving to PostgreSQL. On Tue, Oct 13, 2009 at 2:31 PM, jon jonhoff...@gmail.com wrote: Hi All, I recently migrated our production database from MySQL to PostgreSQL and found the existing scripts to be pretty inadequate (and in Perl, blech). Lift itself has a lot of cross database smarts built in, and since I only access the database using models I've defined in my Lift application, I thought, why not pipe things through mapper? I threw together a script which can be used as follows (it should work with any set of DBs mapper supports): //**make sure no one is writing to the source database val fromDbMan = new DbMigrator.SimpleConnManager (com.mysql.jdbc.Driver,jdbc:mysql://localhost/mydb,Full (user),Full(pass)) val toDbMan = new DbMigrator.SimpleConnManager (org.h2.Driver,jdbc:h2:~/test;DB_CLOSE_DELAY=-1,None,None) val batchSize = 1000 DbMigrator.migrate(fromDbMan, toDbMan, batchSize, User, Dog, Employee, Etc) println(The counts should be equal: + User.countDb (DbMigrator.FromConnectionIdentifier) == User.countDb (DbMigrator.ToConnectionIdentifier)) git it here: http://gist.github.com/209561 I've tested mysql-postgres and mysql-h2 and h2- h2 though none of my tables were bigger than thousands of rows. - Jon -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Don't shoot the non-XML messenger ...
Hi David, On Tue, Oct 13, 2009 at 4:37 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Why does Lift use XHTML rather than Strings or something else for templating? Because XML is a secure (and fast) representation. While PHP sites have significant cross site scripting problems, Lift apps have none (and I've been through half a dozen penetration test with Lift apps and the universal evaluation is this is the most secure web site we've ever tested.) Can you elaborate on how XHTML eliminates the XSS potential of strings? Doesn't an XHTML file have strings in it in between the markup? Bill Bill Venners Artima, Inc. http://www.artima.com --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Don't shoot the non-XML messenger ...
Hi Aule, I am still looking to see if I over-looked somewhere on the web where there is a 1.0.2 Boot.scala 1) showing unambiguously how to flip the default Content-Type 2) and having, in fact, the intended effect as I now know from a few trials over a few hours that this is not as simple as some web posts present. I have not had a need for this, so I had to search some web posts to find the answer. Quckly, I found the following snippet: LiftRules.determineContentType = { case _ = text/curl } I have not verified this, so please let us know if it does not help. Were it trivial, I had not mocked a framework, and you, Mr. Pollock, had not raged. From my readings, Mr. Pollak has yet to show any rage. --Bryan --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Don't shoot the non-XML messenger ...
I feel we should all just step away from this discussion, it's not getting us anywhere. Tyler On Oct 13, 9:24 pm, Aule grshipl...@gmail.com wrote: Bryan Been there, tried that. Oh - the mime type is text/vnd.curl Btw, actually a threat has been conveyed to me at mail.google.com and I have protested to Google I can't imagine Dave Hansen or MArtin Odersky or Bill Venners or Lex Spoon sending me a threat, but so it goes ... At least I will not get 4 years in an Egyptian prison for insulting Randy's Alma Mater (Madison). Oh Randy. I read my Paul Valéry in the original. www.hsinfosystems.com is missing the accent on his surname. Lift is not Scala; I will continue to recommend Scala. For me, the jury on Lift is not yet in. When some sycophants of Seaside got, nasty, I did not walk away from Seaside, warts and all. R On Oct 13, 8:10 pm, Bryan germ...@gmail.com wrote: Hi Aule, I am still looking to see if I over-looked somewhere on the web where there is a 1.0.2 Boot.scala 1) showing unambiguously how to flip the default Content-Type 2) and having, in fact, the intended effect as I now know from a few trials over a few hours that this is not as simple as some web posts present. I have not had a need for this, so I had to search some web posts to find the answer. Quckly, I found the following snippet: LiftRules.determineContentType = { case _ = text/curl } I have not verified this, so please let us know if it does not help. Were it trivial, I had not mocked a framework, and you, Mr. Pollock, had not raged. From my readings, Mr. Pollak has yet to show any rage. --Bryan --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Don't shoot the non-XML messenger ...
Can you please stop making it sound like you expect to speak rudely about Lift and get polite responses? Or are you completely unaware of how you sound? - Aulegrshipl...@gmail.com wrote: Bryan Been there, tried that. Oh - the mime type is text/vnd.curl Btw, actually a threat has been conveyed to me at mail.google.com and I have protested to Google I can't imagine Dave Hansen or MArtin Odersky or Bill Venners or Lex Spoon sending me a threat, but so it goes ... At least I will not get 4 years in an Egyptian prison for insulting Randy's Alma Mater (Madison). Oh Randy. I read my Paul Valéry in the original. www.hsinfosystems.com is missing the accent on his surname. Lift is not Scala; I will continue to recommend Scala. For me, the jury on Lift is not yet in. When some sycophants of Seaside got, nasty, I did not walk away from Seaside, warts and all. R On Oct 13, 8:10 pm, Bryan germ...@gmail.com wrote: Hi Aule, I am still looking to see if I over-looked somewhere on the web where there is a 1.0.2 Boot.scala 1) showing unambiguously how to flip the default Content-Type 2) and having, in fact, the intended effect as I now know from a few trials over a few hours that this is not as simple as some web posts present. I have not had a need for this, so I had to search some web posts to find the answer. Quckly, I found the following snippet: LiftRules.determineContentType = { case _ = text/curl } I have not verified this, so please let us know if it does not help. Were it trivial, I had not mocked a framework, and you, Mr. Pollock, had not raged. From my readings, Mr. Pollak has yet to show any rage. --Bryan --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Don't shoot the non-XML messenger ...
You are banned from this group. On Tue, Oct 13, 2009 at 6:24 PM, Aule grshipl...@gmail.com wrote: Bryan Been there, tried that. Oh - the mime type is text/vnd.curl Btw, actually a threat has been conveyed to me at mail.google.com and I have protested to Google I can't imagine Dave Hansen or MArtin Odersky or Bill Venners or Lex Spoon sending me a threat, but so it goes ... At least I will not get 4 years in an Egyptian prison for insulting Randy's Alma Mater (Madison). Oh Randy. I read my Paul Valéry in the original. www.hsinfosystems.com is missing the accent on his surname. Lift is not Scala; I will continue to recommend Scala. For me, the jury on Lift is not yet in. When some sycophants of Seaside got, nasty, I did not walk away from Seaside, warts and all. R On Oct 13, 8:10 pm, Bryan germ...@gmail.com wrote: Hi Aule, I am still looking to see if I over-looked somewhere on the web where there is a 1.0.2 Boot.scala 1) showing unambiguously how to flip the default Content-Type 2) and having, in fact, the intended effect as I now know from a few trials over a few hours that this is not as simple as some web posts present. I have not had a need for this, so I had to search some web posts to find the answer. Quckly, I found the following snippet: LiftRules.determineContentType = { case _ = text/curl } I have not verified this, so please let us know if it does not help. Were it trivial, I had not mocked a framework, and you, Mr. Pollock, had not raged. From my readings, Mr. Pollak has yet to show any rage. --Bryan -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: **IMPORTANT** Do Not change to Scala 2.7.6
Hi David, can you elaborate a bit more? Being new to Scala and Lift, I've downloaded and been using 2.7.6, with Lift 1.0. Should I instead be using 2.7.5? I'm just wondering if 2.7.6 has issues with perhaps the latest Lift but not 1.0 lift? - Alex On Sep 15, 11:43 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Do not change your version to Scala 2.7.6. 2.7.6 is broken (it will not compile Lift). Just stick with 2.7.5. Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Extracting FieldIdentifer names from a list of FieldErrors
Hi, I need to extract the FieldIdentifer names from a list of FieldErrors. Can anyone suggest me how to achieve this. --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---