[Lift] Lift and Scala for Non-Java Programmers

2009-06-12 Thread Peter Robinett
that I'm looking for more a Scala tutorial than a Lift one but I appreciate any links and suggestions. Thanks for the great work on the project and as I make progress in my learning I promise to write up my experiences! Peter Robinett --~--~-~--~~~---~--~~ You

[Lift] Re: Lift and Scala for Non-Java Programmers

2009-06-13 Thread Peter Robinett
-safe code much more efficient. If you know Python and JavaScript, I think the book will be your speed. Thanks, David On Fri, Jun 12, 2009 at 4:03 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi guys, I know this is more a Scala question than a Lift one but I do all my

[Lift] Properties Files and Databases

2009-06-18 Thread Peter Robinett
Hi all, I'm looking to switch a basic Lift install to use MySQL. I see that this has been addressed on the wiki (http://wiki.liftweb.net/index.php/ HowTo_configure_lift_with_MySQL), though it involves hardcoding the connection details in Boot.scala. I'd like something easier to deploy to various

[Lift] Re: Properties Files and Databases

2009-06-19 Thread Peter Robinett
(true) should appear on the console and the correct db settings should be picked up. Thanks, David ** On Thu, Jun 18, 2009 at 3:49 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, I'm looking to switch a basic Lift install to use MySQL. I see that this has been addressed

[Lift] Re: malformed Scala signature of User

2009-06-19 Thread Peter Robinett
Hi David, I'm getting a compile error saying that User is already defined. Thinking that it was similar to the problem discussed in this thread, I tried both mvn clean test and the fieldOrder solutions but neither worked. This is with the User model generated from basic archetype and it had

[Lift] Re: malformed Scala signature of User

2009-06-19 Thread Peter Robinett
, without any of the output expected from lift:surround. mvn -U clean install doesn't have any effect. Peter On Jun 19, 1:00 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Try mvn -U clean install On Fri, Jun 19, 2009 at 12:46 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi David

[Lift] Re: lift and mysql

2009-06-24 Thread Peter Robinett
People using MySQL might also want to consider putting their database connection information in a props file. See http://groups.google.com/group/liftweb/browse_thread/thread/763cbe16259ce3ea. Perhaps something to add to the wiki? Peter On Jun 23, 12:48 pm, David Pollak

[Lift] Modify CRUDify XHTML

2009-06-24 Thread Peter Robinett
, Peter Robinett --~--~-~--~~~---~--~~ 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: Modify CRUDify XHTML

2009-06-25 Thread Peter Robinett
PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On 24 Jun 2009, Peter Robinett wrote: Hi all, I'm using CRUDify on one of my models and I'd like to display some additional data on the view template. I believe that I need to override one of the model definitions with some sort

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
Hi flot users, I am trying to copy the basic Flot example into my own code. I have no compile errors but the graph isn't rendered because /classpath/flot/ jquery.flot.js isn't found. Since I get no errors with the flot methods in my snippet, I assume lift-widgets is loading correctly. Am I

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
(with m.temperature.toDouble _), I got an new error saying that List[(Double, (Any) = Double)] is an incompatible type. Any suggestions? I'm sure it's a REALLY simple fix. Thanks, Peter On Jun 26, 12:53 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On 26 Jun 2009, Peter Robinett wrote: Hi flot users, I

[Lift] Re: Anyone working on the flot widget?

2009-06-26 Thread Peter Robinett
Thanks, Jeppe, that was it. So 'is' will give you the native type of any MappedType? Good to know! Peter On Jun 26, 3:47 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Peter Robinett pe...@bubblefoundry.com writes: Thanks, Jeppe, that's what I was missing. To continue to hijack

[Lift] Re: Modify CRUDify XHTML

2009-06-26 Thread Peter Robinett
wrote: On 24 Jun 2009, Peter Robinett wrote: Hi all, I'm using CRUDify on one of my models and I'd like to display some additional data on the view template. I believe that I need to override one of the model definitions with some sort of reference to my own XHTML file. Which one

[Lift] Error With CRUDify's Select Field for MappedLongForeignKey

2009-06-29 Thread Peter Robinett
here? The database tables are correctly configured (I'm using MySQL) and I'm running 1.1-SNAPSHOT. Thanks in advance for your help. Peter Robinett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Maven License Expired

2009-07-01 Thread Peter Robinett
address this licensing issue and continue developing? Thanks! Peter Robinett --~--~-~--~~~---~--~~ 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

[Lift] Re: Maven License Expired

2009-07-01 Thread Peter Robinett
with the folk at javarebel and get them to   give us a new license file for the comunity. Cheers Tim Sent from my iPhone On 1 Jul 2009, at 08:28, Peter Robinett pe...@bubblefoundry.com wrote: Hi all, I just launched Maven and got the following error: $ mvn jetty:run

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
feeder.of.the.be...@gmail.com wrote: On Fri, Jun 26, 2009 at 6:39 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, Derek and Jeppe, your responses were very helpful. I implemented Jeppe's solution and added my own snippet tag within _viewTemplate.  Unfortunately, I spent the whole day trying

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
, Jul 1, 2009 at 2:02 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David. Unfortunately I'm having a hard time figuring out how to get the foundParam. Using your code, I have: val loc = for {req - S.request; loc - req.location} yield loc val l = loc openOr Couldn't open When

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
On Jul 1, 3:38 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Are you coming from Java/C# or Ruby/Python? PHP, Python and Javascript I don't think you have to pull the value out of the for comprehension... do all the work inside the for comprehension. When you're doing your design,

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
Everyone, I apologize for monopolizing the list but this has been very helpful for me. I've learned a bunch from similar, old entries in the list and hope this thread will help future Lift beginners. On to my reply to David: On Jul 1, 4:19 pm, David Pollak feeder.of.the.be...@gmail.com wrote:

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
Thanks, Naftoli. For now open_! does the trick for me. Peter On Jul 1, 5:55 pm, Naftoli Gugenhem naftoli...@gmail.com wrote: If you know the Box is full you can write open_! (you'll get a runtime error if it wasn't). Otherwise openOr a default, e.g., an invalid id. You have first answer the

[Lift] Re: Getting the generated id from a mapper instance

2009-07-04 Thread Peter Robinett
I think I got the same thing once before when referring to the companion object (singleton) instead of my specific instance. Perhaps you're doing the same thing? Peter Robinett On Jul 4, 2:14 am, Spencer Uresk sur...@gmail.com wrote: I'm having a bit of trouble with a mapper class I'm trying

[Lift] Re: Update on book

2009-07-10 Thread Peter Robinett
Hi Derek, Just a quick note on the book because I'm going over it right now: the code in Listing 13.3 (p. 210) seems to be missing a parenthesis after expense in the case that matches to PUT requests. Peter On Jul 10, 9:32 am, Derek Chen-Becker dchenbec...@gmail.com wrote: Just a quick note:

[Lift] Re: JsonResponse

2009-07-13 Thread Peter Robinett
Thanks guys, I happened to be looking for this right now. For those looking to output single Boxed result from findAll, I think you would do something like this: JsonResponse(JsObj(results - Node.find(By(Content.id, yourIdQuery)).openOr(Content).asJs)) The problem is that if the Content row

[Lift] Mapping and Saving Data POSTed to REST API

2009-07-13 Thread Peter Robinett
addPacket(req: Req): LiftResponse = { val packet = Packet.create /* I want to assign the contents of req.params - Map(node - List(44), temp - List(24.32525)) - into packet */ packet.save OkResponse } } Thanks, Peter Robinett

[Lift] Re: Mapping and Saving Data POSTed to REST API

2009-07-15 Thread Peter Robinett
Thanks so much. How would I handle optional parameters? My knowledge of for comprehensions is quite limited... Peter On Jul 14, 10:25 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jul 13, 2009 at 5:31 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David. Here

[Lift] Timestamps, Mapper, and MySQL

2009-07-15 Thread Peter Robinett
. What do you think? I look forward to your thoughts! Peter Robinett [1]: http://groups.google.com/group/liftweb/browse_thread/thread/a3755d82f28356ea/26111ea9748c0ffc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Timestamps, Mapper, and MySQL

2009-07-18 Thread Peter Robinett
: Accept-Encoding: Accept-Charset: Keep-Alive: Connection: Referer: Cookie: are sent over. Lift and Scala are fun! On Jul 15, 12:30 pm, Peter Robinett pe...@bubblefoundry.com wrote: As others have encountered before[1], MappedDateTime has some limitations. Unlike others I'm not losing

[Lift] Re: Mapper and Primary Keys

2009-07-22 Thread Peter Robinett
).asInstanceOf[Long])) (i * 8)).     map( l = String.format(%02x,l.asInstanceOf[Object])).mkString (:)   println( longToMac(macToLong(00:1d:c9:00:04:9f))) On Jul 21, 4:19 pm, Peter Robinett pe...@bubblefoundry.com wrote: I should add that I believe this is because the field isn't being marked

[Lift] Re: Contributing Life and/or Scala

2009-07-22 Thread Peter Robinett
Hi Ken, I can't speak for David or any of the other committers, but it sounds like you could contribute to fleshing out Record. Peter Robinett On Jul 22, 9:38 am, Ken Egervari ken.egerv...@gmail.com wrote: Hi David! I definitely agree with you. I am not working on any projects right now

[Lift] Re: Trigger object creation to send message to actor

2009-07-22 Thread Peter Robinett
/scala/com/skittr/actor/UserList.scala [4]: http://github.com/dpp/liftweb/blob/617f752f3824005768e255089f847720b5e67f2a/sites/skittr/src/main/scala/com/skittr/comet/WatchUser.scala On Jul 22, 9:30 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jul 21, 2009 at 2:04 PM, Peter Robinett

[Lift] JsFlotAppendData

2009-07-22 Thread Peter Robinett
). Where did I go wrong in my understanding? Given the requirement, how should my data be formatted to be passed to JsFlotAppendData correctly? Thanks, Peter Robinett [1]: http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/widgets/flot/FlotAjax.scala.html

[Lift] Re: JsFlotAppendData

2009-07-22 Thread Peter Robinett
the creation in the Comet listener's localSetup method to its use later in the highPriority method. Peter On Jul 22, 4:43 pm, Peter Robinett pe...@bubblefoundry.com wrote: Hi all, I'm trying to use the flot widget and some Comet code to have a regularly updating chart like in the flotDemo's

[Lift] Minimizing Memory Usage

2009-07-27 Thread Peter Robinett
requests, doContinuation, and Bail. Does this suggest that I'm using Actors incorrectly? Do I have too long a session timeout? Or do I just need more memory? Assuming the latter, how would you suggest figuring out a reasonable amount? Thanks for your help, Peter Robinett PS Some additional system

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-28 Thread Peter Robinett
I would do the first option, which I don't see as 'unLifty', but perhaps someone who knows Lift better than I do can comment on your options. Peter Robinett On Jul 28, 10:57 am, Nolan Darilek no...@thewordnerd.info wrote: I have a project that will use the geolocation API in Firefox 3.5

[Lift] Re: Mapper and Primary Keys

2009-07-28 Thread Peter Robinett
Sorry to bump this, but does anyone have any idea why my mac column is not being saved to the database, despite the save method returning true? On Jul 22, 9:19 am, Peter Robinett pe...@bubblefoundry.com wrote: Because it's unique across systems and maps directly to hardware I'm tracking

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Nope, haven't touched any of the files. As for the increases, they do not appear to, since requests happen approximately every second and the length of each spike is around one minute. Peter On Jul 28, 3:16 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: It would redeploy if you were using

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
wrote: If it's a left-to-right sawtooth (e.g. increasing linearly over time   and then sharply dropping) then that's probably garbage accumulating   then the GC running. -Ross On Jul 28, 2009, at 6:23 PM, Peter Robinett wrote: Nope, haven't touched any of the files. As for the increases

[Lift] Re: How to configure MySQL In Lift

2009-07-29 Thread Peter Robinett
/peter.props: db.driver=com.mysql.jdbc.Driver db.url=jdbc:mysql://localhost/mydb db.user=myusername db.password=mypassword Peter Robinett On Jul 29, 3:30 am, Timothy Perrett timo...@getintheloop.eu wrote: pravin, As this is a common thing, I've added a code sample to my lift- examples

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
suggest? David, I'll have some sample code soon. Peter On Jul 28, 4:19 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Did you override the dirty_? def? Derek On Tue, Jul 28, 2009 at 3:09 PM, Peter Robinett pe...@bubblefoundry.comwrote: Sorry to bump this, but does anyone have any idea

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
override the dirty_? def? Derek On Tue, Jul 28, 2009 at 3:09 PM, Peter Robinett pe...@bubblefoundry.comwrote: Sorry to bump this, but does anyone have any idea why my mac column is not being saved to the database, despite the save method returning true? On Jul 22, 9:19 am, Peter

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
at 3:09 PM, Peter Robinett pe...@bubblefoundry.com wrote: Sorry to bump this, but does anyone have any idea why my mac column is not being saved to the database, despite the save method returning true? On Jul 22, 9:19 am, Peter Robinett pe...@bubblefoundry.com wrote: Because

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
to build the new code) version. On Wed, Jul 29, 2009 at 1:26 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, My sample code is here: http://github.com/pr1001/lift_1_1_sample/tree/master I hadn't been overriding def dirty_?(b: Boolean) but I see why I need

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
...@gmail.com wrote: On Wed, Jul 29, 2009 at 4:35 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David, I am now able to save the mac address. I am, however, able to create multiple rows in the database with the same mac address, suggesting that that the uniqueness of the primary

[Lift] Re: Mapper and Primary Keys

2009-07-30 Thread Peter Robinett
. On Wed, Jul 29, 2009 at 5:24 PM, Peter Robinett pe...@bubblefoundry.comwrote: Ahh, here we go: INFO - CREATE TABLE users (id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY , firstname VARCHAR(32) , lastname VARCHAR(32) , email VARCHAR (48) , locale VARCHAR(16) , timezone VARCHAR(32

[Lift] New Mapped Fields (MappedTimestamp and MappedMac)

2009-07-30 Thread Peter Robinett
for the database in the interest of saving space. Are there any other mapped fields you'd like to see? I'll add that I think using the units compiler plugin[3] looks cool[4] but probably would be considered to create an unacceptable dependency. Peter Robinett [1]: http://groups.google.com/group/liftweb

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

2009-08-03 Thread Peter Robinett
Nolan, I like the idea, especially using JSON as the serialization format. Do you have any code you could share? Peter On Jul 30, 6:49 pm, Nolan Darilek no...@thewordnerd.info wrote: On 07/30/2009 07:53 PM, Peter Robinett wrote: Are there any other mapped fields you'd like to see? I'll

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

2009-08-03 Thread Peter Robinett
compiler plugin[3] looks cool[4] but probably would be considered to create an unacceptable dependency. Peter Robinett [1]:http://groups.google.com/group/liftweb/browse_thread/thread/b4bdedfb7... [2]:http://groups.google.com/group/liftweb/browse_thread/thread/41650fc1e... [3]:https

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

2009-08-04 Thread Peter Robinett
dependency. Peter Robinett [1]:http://groups.google.com/group/liftweb/browse_thread/thread/b4bdedfb7... [2]:http://groups.google.com/group/liftweb/browse_thread/thread/41650fc1e... [3]:https://lampsvn.epfl.ch/trac/scala/browser/compiler-plugins/units/trunk [4]:http://www.michaelnygard.com

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

2009-08-04 Thread Peter Robinett
to create an unacceptable dependency. Peter Robinett [1]:http://groups.google.com/group/liftweb/browse_thread/thread/b4bdedfb7... [2]:http://groups.google.com/group/liftweb/browse_thread/thread/41650fc1e... [3]:https://lampsvn.epfl.ch/trac/scala/browser/compiler-plugins/units/trunk

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

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

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

2009-08-08 Thread Peter Robinett
?  Why not just create a MappedTimestamp field? On Tue, Aug 4, 2009 at 2:27 PM, Peter Robinett pe...@bubblefoundry.comwrote: Ahh, good idea. The compile errors all had to do with the the type parameters. I don't know much about Scala's type system yet, so I was defining the trait

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

2009-08-12 Thread Peter Robinett
/d744a7cffe7d929ddbc531e8d8afea864a6fdc72 Peter On Aug 8, 6:30 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Aug 8, 2009 at 2:05 AM, Peter Robinett pe...@bubblefoundry.comwrote: I thought Naftoli's suggestion to make it a mixin so that it could be added to MappedDates or MappedDateTimes was a reasonable

[Lift] Symlinks and Javascript Files

2009-08-13 Thread Peter Robinett
to be server? Or should I just give up on symlinks altogether (I'm not a git master, so perhaps that was the wrong approach anyway). Peter Robinett PS I'm on 1.1-SNAPSHOT. PPS The YUI Compressor works well. Very cool. --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Symlinks and Javascript Files

2009-08-14 Thread Peter Robinett
that the script should be under a js subdir. Derek On Thu, Aug 13, 2009 at 7:57 PM, Peter Robinett pe...@bubblefoundry.comwrote: My Lift project is in a git repository and to the repository I've added a submodule. Since right now I only want one javascript file from this submodule

[Lift] Looking for Lift Developers

2009-08-14 Thread Peter Robinett
quite new to Lift and Scala. So, we'd love more help, particularly someone who knows more Scala than me! If you're interesting in crunching lots of data and helping with things like building out our API with oAuth, XMPP (or perhaps AMQP?) and SNMP support, please drop me a line. Peter Robinett pe

[Lift] Re: Deploying

2009-08-17 Thread Peter Robinett
I know David likes running Nginx in front of Jetty On Aug 17, 12:00 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: What's the best way to get a lift app running on a Ubuntu web server I can SSH into with full permissions? It came with

[Lift] Re: Deploying

2009-08-17 Thread Peter Robinett
like a dream. On 17/08/2009 18:55, Peter Robinett pe...@bubblefoundry.com wrote: I know David likes running Nginx in front of Jetty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: MappedDateTime losing time?

2009-08-19 Thread Peter Robinett
Hi Grant, I'm afraid I don't have the answer for you, but perhaps my attempt at making a MappedTimestamp will prove useful to you: http://groups.google.com/group/liftweb/msg/84b1612953fe9ac0. Peter Robinett On Aug 18, 6:02 pm, Grant Wood smackt...@gmail.com wrote: Hello, I've extended

[Lift] Re: MappedDateTime losing time?

2009-08-20 Thread Peter Robinett
with you on it. Grant On Aug 19, 10:02 am, Peter Robinett pe...@bubblefoundry.com wrote: Hi Grant, I'm afraid I don't have the answer for you, but perhaps my attempt at making a MappedTimestamp will prove useful to you:http://groups.google.com/group/liftweb/msg/84b1612953fe9ac0. Peter

[Lift] Lift Core Missing on mvn install

2009-08-21 Thread Peter Robinett
Hi all, I think I have a problem with my pom.xml file, as when I run 'mvn install' I get an error saying that Lift Core is missing. 'mvn jetty:run' works fine. My pom.xml is here: http://gist.github.com/172540 I'd appreciate any tips. Thanks! Peter Robinett

[Lift] Re: Lift Core Missing on mvn install

2009-08-23 Thread Peter Robinett
repository? Sometimes Maven gets stuck. If you do that and you still get the issue, could you post the full output from mvn -e clean install? Derek On Fri, Aug 21, 2009 at 6:42 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, I think I have a problem with my pom.xml file

[Lift] Re: Lift Core Missing on mvn install

2009-08-24 Thread Peter Robinett
for Snapshots/name       urlhttp://scala-tools.org/repo-snapshots/url       snapshots /     /repository   /repositories On Sun, Aug 23, 2009 at 3:48 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi Derek, I hadn't tried deleting my .m2 directory but unfortunately that didn't help:http

[Lift] Re: Mapper and Primary Keys

2009-08-26 Thread Peter Robinett
, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jul 30, 2009 at 8:16 AM, Peter Robinett pe...@bubblefoundry.comwrote: Oops, you're right, I just glossed over that. Using that I now get an error when I try to use a pre-existing primary key: scala Cat.create.mac(00:1d:c9:00:04

[Lift] Mastering SiteMap

2009-09-03 Thread Peter Robinett
is a View with goes in that directory? Thanks, Peter Robinett --~--~-~--~~~---~--~~ 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

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
configuration? As I understand it, you don't put XHTML view files there – they need to be in src/main/myapp/webroot/. Am I misunderstanding the terminology and something else is a View with goes in that directory? Thanks, Peter Robinett -- Bjarte Stien Karlsen Ronatoppen 6a, 4638 Kristiansand

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
it, you don't put XHTML view files there – they need to be in src/main/myapp/webroot/. Am I misunderstanding the terminology and something else is a View with goes in that directory? Thanks, Peter Robinett --~--~-~--~~~---~--~~ You received this message because you

[Lift] RequestVar not Persisting

2009-09-04 Thread Peter Robinett
RequestVar (see how id is first -1 and then 2). Unfortunately once I submit the form processUsers is called and currentRole again has an id of -1. Why is this? Thanks in advance, Peter Robinett --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
=2) and get a Role, which I then successfully assign to my currentRole RequestVar (see how id is first -1 and then 2). Unfortunately once I submit the form processUsers is called and currentRole again has an id of -1. Why is this? Thanks in advance, Peter Robinett

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
) println(r) } bind(entry, xhtml, users - SHtml.multiSelect(possible, current, loadUsers(_)), submit - SHtml.submit(Update, processUsers) ) } Peter On Sep 4, 4:36 pm, Peter Robinett pe...@bubblefoundry.com wrote: Thanks guys, I knew I was missing something simple. So how do I

[Lift] Delete Several Rows Using Mapper

2009-09-05 Thread Peter Robinett
! }) }) Of course there's raw SQL but I'm hopping I can avoid it. Thanks in advance, Peter Robinett --~--~-~--~~~---~--~~ 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

[Lift] Re: Delete Several Rows Using Mapper

2009-09-05 Thread Peter Robinett
Perfect, thanks! Peter On Sep 5, 11:18 am, Justin Reardon justin.rear...@gmail.com wrote: MetaMapper.bulkDelete_!! and the ByList query parameter should do what   you want. On 5-Sep-09, at 13:31 , Peter Robinett wrote: This is very simple question: Is there a way to delete many Mapper

[Lift] Re: Milestone 5 now available!

2009-09-12 Thread Peter Robinett
Yes, I'd love that. Peter On Sep 11, 12:25 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: For that matter, was it a special (e.g. hand-run) build to make the unified ScalaDocs for 1.0? It would be nice if that were part of the normal build so that each new release had it. Derek On

[Lift] Getting Maven Offline Mode Working

2009-09-13 Thread Peter Robinett
Hi all, I'm having problems running mvn -o jetty:run with my version of Lift (1.1-SNAPSHOT) because Maven thinks that net.liftweb:lift-core:jar:1.1- SNAPSHOT is missing. How do I fix that? My pom.xml is here: http://gist.github.com/186293 I've got an international plane flight in 24 hours, so

[Lift] Re: Getting Maven Offline Mode Working

2009-09-13 Thread Peter Robinett
to download and run.  I'm afraid I can't really give better advice for OS-X though. One other idea is to work with 1.1-M5, which should let you go offline on the older maven version - assuming you have no other snapshot dependencies. On Sun, Sep 13, 2009 at 10:51 PM, Peter Robinett pe

[Lift] Re: Getting Maven Offline Mode Working

2009-09-13 Thread Peter Robinett
mode is broken. 2.0.10 should be the minimum version you need to fix that issue. On Sun, Sep 13, 2009 at 8:33 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, Kevin. Dropping in the latest version didn't seem to work (mvn --version kept saying I still had 2.0.9) but switching

[Lift] Re: Getting Maven Offline Mode Working

2009-09-14 Thread Peter Robinett
: Peter, I built the installer - some time ago I already upgraded the installer   to the latest version of maven and removed java rebel as we are no   longer bundling it. Cheers, Tim Sent from my iPhone On 14 Sep 2009, at 06:39, Peter Robinett pe...@bubblefoundry.com   wrote: Ahh, thanks

[Lift] JsonResponse and Constructing a JsArray

2009-10-01 Thread Peter Robinett
: import _root_.net.liftweb.http.js._ import JsCmds._ import JE._ I'm using Lift 1.1-M5 and Scala 2.7.5. Any help is appreciated. Thanks! Peter Robinett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] JSONParse.parse and List[Any]

2009-10-01 Thread Peter Robinett
for your help. Peter Robinett [1] http://groups.google.com/group/liftweb/browse_thread/thread/5ffe64492b0c19f2/c65424467bc99bbb [2] http://groups.google.com/group/liftweb/msg/c0103375623f788f --~--~-~--~~~---~--~~ You received this message because you

[Lift] Re: JsonResponse and Constructing a JsArray

2009-10-02 Thread Peter Robinett
Thanks, that did the trick. Peter On Oct 2, 11:15 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Peter Robinett pe...@bubblefoundry.com writes: Hi all, I'm getting the following error and I think I'm missing something very simple: error: type mismatch;  found   : List

[Lift] Re: JSONParse.parse and List[Any]

2009-10-02 Thread Peter Robinett
, Peter On Oct 2, 2:26 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Peter, I'd suggest using the stuff in lift-json.  It's a much faster, richer way to use JSON. Thanks, David On Thu, Oct 1, 2009 at 4:31 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, Building off

[Lift] Re: JSONParse.parse and List[Any]

2009-10-03 Thread Peter Robinett
/artifactId    version1.1-SNAPSHOT/version  /dependency Tim On Fri, Oct 2, 2009 at 11:17 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David. Unfortunately, I get errors that net.liftweb.json does not exist. I imagine this is a configuration problem with my pom.xml, which

[Lift] lift-json's extract and Mapper

2009-10-03 Thread Peter Robinett
. This would make making JSON API endpoints really easy for me and I hope for other people too. Peter Robinett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb

[Lift] Re: lift-json's extract and Mapper

2009-10-03 Thread Peter Robinett
at the scala-time library, which is a nice wrapper over Java's joda-time. On Sat, Oct 3, 2009 at 9:46 AM, Peter Robinett pe...@bubblefoundry.com wrote: I guess this is basically a question for Joni, but I figure I'll throw it out here for everyone to see. Would it be possible to have

[Lift] MappedStringForeignKey and Schemifier

2009-10-03 Thread Peter Robinett
I have a model, Node, with a string index. I have another model, Packet, which has a MappedStringForeignKey to Node. Unfortunately, Schemifier doesn't seem to respect the MappedStringForeignKey type and creates a BIGINT column in the packets table, as you can see from its output: INFO - CREATE

[Lift] Re: lift-json's extract and Mapper

2009-10-03 Thread Peter Robinett
On Oct 3, 12:04 pm, Kevin Wright kev.lee.wri...@googlemail.com wrote: On Sat, Oct 3, 2009 at 10:43 AM, Peter Robinett pe...@bubblefoundry.com wrote: Thanks, Kevin. I'm going to poke around with lift-json a bit more but a case class may be the way to go. case classes definitely get you

[Lift] Re: lift-json's extract and Mapper

2009-10-04 Thread Peter Robinett
Thanks, Joni. I've been playing with just that for comprehension syntax over the weekend. How would I do it if I had multiple packets? { packets: [ { node: 00:1D:C9:00:04:9F, dt: 1254553581405, temp: 27.5 }, { node: 00:1D:C9:00:04:9E, dt: 1254553582405, temp: 24.3

[Lift] Re: Model Events

2009-10-04 Thread Peter Robinett
for MetaMapper show many before and after events that you can override like I've done with afterCreate: http://scala-tools.org/mvnsites-snapshots/liftweb/lift-mapper/scaladocs/net/liftweb/mapper/MetaMapper.html Peter Robinett On Oct 4, 10:47 pm, donfranciscodequevedo donfranciscodequev...@gmail.com wrote

[Lift] Re: lift-json's extract and Mapper

2009-10-05 Thread Peter Robinett
  JField(dt, JInt(dt)) - packet   JField(temp, JDouble(temp)) - packet } yield // construct Packet here Cheers Joni On Oct 5, 2:13 am, Peter Robinett pe...@bubblefoundry.com wrote: Thanks, Joni. I've been playing with just that for comprehension syntax over the weekend. How would I do

[Lift] Re: Model Events

2009-10-05 Thread Peter Robinett
Glad to help. Peter On Oct 5, 11:29 am, donfranciscodequevedo donfranciscodequev...@gmail.com wrote: Thanks Peter, that pretty much answers my question! On 5 Okt., 01:17, Peter Robinett pe...@bubblefoundry.com wrote: Hi Gregor, For my Mapper model called Packet, my companion object

[Lift] YUI Compressor Fatal Error

2009-10-05 Thread Peter Robinett
!), I'd appreciate any tips on how to get it to work again. Thanks in advance, Peter Robinett PS I thought I already posted a version of this message but I don't see it on the Groups site. My apologies if this message is a duplicate. $ mvn jetty:run [INFO] Scanning for projects... [INFO] Searching

[Lift] Re: MappedStringForeignKey and Schemifier

2009-10-05 Thread Peter Robinett
closed. On Sat, Oct 3, 2009 at 3:00 AM, Peter Robinett pe...@bubblefoundry.comwrote: I have a model, Node, with a string index. I have another model, Packet, which has a MappedStringForeignKey to Node. Unfortunately, Schemifier doesn't seem to respect the MappedStringForeignKey type

[Lift] Re: YUI Compressor Fatal Error

2009-10-05 Thread Peter Robinett
...@gmail.com wrote: I thought someone mentioned this a little while ago and it was due to   OpenJDK (and only related to the YUI compressor)? -Ross On Oct 5, 2009, at 1:25 PM, jon wrote: Is there a syntax problem in one of your javascript files? On Oct 5, 1:23 pm, Peter Robinett pe

[Lift] Re: YUI Compressor Fatal Error

2009-10-05 Thread Peter Robinett
Such service! Thanks, David. On Oct 6, 12:10 am, David Pollak feeder.of.the.be...@gmail.com wrote: I'm setting up an OpenJDK ubuntu instance to test On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett pe...@bubblefoundry.comwrote: Ross, I am using OpenJDK: $ java -version java version

[Lift] Re: YUI Compressor Fatal Error

2009-10-06 Thread Peter Robinett
Lift's comet stuff.  However, Lift Actors do work. I'm not seeing any explicit issues with other libraries. What OS are you running under your OpenJDK installation? On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett pe...@bubblefoundry.com wrote: Ross, I am using OpenJDK: $ java

[Lift] Re: YUI Compressor Fatal Error

2009-10-08 Thread Peter Robinett
Hi all, I just switched to the Sun JVM and everything works now, so it definitely was OpenJDK. Oh well. Peter On Oct 6, 7:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Oct 6, 2009 at 1:39 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, all. While David

[Lift] Re: LongKeyedMapper object where I can set the id

2009-10-09 Thread Peter Robinett
Hi Harry, I think you also need to set override def dbAutogenerated_? = false I've used dbAutogenerated_? and writePermission_? with MappedStringIndex but I also had to redefine dirty_?, which hopefully you won't have to do. If you do a search through this group you can find my thread on it.

[Lift] Re: Extend the tables that like the migration in the Rails ?

2009-10-12 Thread Peter Robinett
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

[Lift] Re: Props file example

2009-10-12 Thread Peter Robinett
db.url=jdbc:mysql://localhost/myDB db.user=myUser db.password=myPassword isPeter=true Notice that you can define your own properties. Peter Robinett On Oct 12, 2:42 pm, Guillermo Acilu my_li...@me.com wrote: Hello guys, I am starting to learn Lift and I have a very silly question. I am using

[Lift] Re: Complex primary key

2009-10-13 Thread Peter Robinett
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

  1   2   >