[Lift] Lift and Scala for Non-Java Programmers

2009-06-12 Thread Peter Robinett
ly, the tutorial code snippets on the wiki are very useful. Like I said, I understand 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 experie

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

2009-06-13 Thread Peter Robinett
age and (2) to show how Scala's syntax and > > features makes writing type-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, P

[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
test.me") > > When you run your app Full(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 > wrote: > > > > > > > Hi all

[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 previ

[Lift] Re: malformed Scala signature of User

2009-06-19 Thread Peter Robinett
index.html, 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 wrote: > Try mvn -U clean install > > On Fri, Jun 19, 2009 at 12:46 PM, Peter Robinett > wrote: > > > > > > > Hi

[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 wrote: > Rog, > > Thanks

[Lift] Modify CRUDify XHTML

2009-06-24 Thread Peter Robinett
d? 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 email

[Lift] Re: Modify CRUDify XHTML

2009-06-25 Thread Peter Robinett
01 PM, Jeppe Nejsum Madsen 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 >

[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 missin

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

2009-06-26 Thread Peter Robinett
trying it anyway (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 wrote: > On 26 Jun 2009, Pete

[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 wrote: > Peter Robinett writes: > > Thanks, Jeppe, that's what I was missing. > > > To continue to hijack this

[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

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

2009-06-29 Thread Peter Robinett
) Any idea what's wrong 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 th

[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 u

[Lift] Re: Maven License Expired

2009-07-01 Thread Peter Robinett
gt; >> Hey Peter, > > >> That is odd! I'll speak with the folk at javarebel and get them to   > >> give us a new license file for the comunity. > > >> Cheers > > >> Tim > > >> Sent from my iP

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
10:05 am, David Pollak wrote: > On Fri, Jun 26, 2009 at 6:39 PM, Peter Robinett > wrote: > > > > > Thanks, Derek and Jeppe, your responses were very helpful. I > > implemented Jeppe's solution and added my own snippet tag within > > _viewTemplate.  Unfortunate

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
Wed, Jul 1, 2009 at 2:02 PM, Peter Robinett wrote: > > > > > 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 l

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
On Jul 1, 3:38 pm, David Pollak 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, think about transformatio

[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 wrote: > Yes, the reference contained

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Peter Robinett
the question, what _should_ happen if it's Empty after > all? :) > ----- > > Peter Robinett wrote: > > Everyone, I apologize for monopolizing the list but this has been very > helpful for me. I've learned a bunch from similar, old en

[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 wrote: > I'm having a bit of trouble with a mapper class I

[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 wrote: > Just a quick note: thanks to some work

[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 i

[Lift] Re: JsonResponse

2009-07-13 Thread Peter Robinett
Thanks, David. --~--~-~--~~~---~--~~ 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...@googlegroup

[Lift] Mapping and Saving Data POSTed to REST API

2009-07-13 Thread Peter Robinett
:: Nil, "", PostRequest) => () => addPacket(r) } def addPacket(req: Req): LiftResponse = { val packet = Packet.create /* I want to assign the contents of req.params - Map("node" -> List("44"), "temp" -> List(&

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

2009-07-13 Thread Peter Robinett
: > On Mon, Jul 13, 2009 at 5:12 PM, Peter Robinett > wrote: > > > > > > > Hello, > > > I'd appreciate any tips on how to take POSTed data and use it to save > > a new object. Using previous threads here I've figured out how to do > > the basic

[Lift] Re: Wiki Articles

2009-07-13 Thread Peter Robinett
making a REST API (perhaps this could even become a trait like CRUDify?). Please let me know how I can help. Peter Robinett On Jul 13, 7:10 pm, Naftoli Gugenhem wrote: > Not speaking for anyone else, but currently what I would like most is > information on lift'

[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 wrote: > On Mon, Jul 13, 2009 at 5:31 PM, Peter Robinett > wrote: > > > > > > > Thanks, David. Here is its cl

[Lift] Timestamps, Mapper, and MySQL

2009-07-15 Thread Peter Robinett
and to contribute to Lift. 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 subscr

[Lift] Re: Timestamps, Mapper, and MySQL

2009-07-17 Thread Peter Robinett
1 > Host: > User-Agent: > Accept: > Accept-Language: > 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 wrote: > > > As othe

[Lift] Mapper and Primary Keys

2009-07-20 Thread Peter Robinett
(MappedString.scala:121) at net.liftweb.util.Full.f... How do I go about creating a new Node with the mac address – the primary key – of my choosing? Thanks, Peter Robinett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[Lift] Re: Mapper and Primary Keys

2009-07-21 Thread Peter Robinett
override def dbDisplay_? = true >  } > > } > > Note that primaryKey_? is already set to true in MappedStringIndex. > writePermission_? is set to false by default... > > Derek > > On Mon, Jul 20, 2009 at 7:30 PM, Peter Robinett > wrote: > > > > > Hi a

[Lift] Re: Mapper and Primary Keys

2009-07-21 Thread Peter Robinett
I should add that I believe this is because the field isn't being marked as dirty and so isn't saved. This is in MappedField: def dirty_? = !dbPrimaryKey_? && _dirty_? How would I overload it in my object mac definition? Thanks, Peter On Jul 21, 12:30 pm, Peter Robinett wro

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

2009-07-21 Thread Peter Robinett
ponding it would like to update Flot charts and various other components using Comet. Thanks for your advice, Peter Robinett On Jul 9, 2:36 pm, David Pollak wrote: > On Mon, Jul 6, 2009 at 7:56 AM, Tobias Daub wrote: > > > Hi List, > > > I wanna send a message to an Actor e

[Lift] Re: Mapper and Primary Keys

2009-07-22 Thread Peter Robinett
g) = (0 to 5).reverse.map( i => (mac & ((0xff) > << (i * 8).asInstanceOf[Long])) >> (i * 8)). >     map( l => String.format("%02x",l.asInstanceOf[Object])).mkString > (":") > >   println( longToMac(macToLong("00:1d:c9:00:04:9f")))

[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 wrote: > Hi David! > > I definitely agree with you. I am not working on any projects right now, > a

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

2009-07-22 Thread Peter Robinett
ites/skittr/src/main/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 wrote: > On Tue, Jul 21, 2009 at 2:04 PM, Peter Robinett >

[Lift] JsFlotAppendData

2009-07-22 Thread Peter Robinett
en many updates). 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/Flot

[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 wrote: > Hi all, > > I'm trying to use the flot widget and some Comet code to have a > regularly updating chart like in the flot

[Lift] Minimizing Memory Usage

2009-07-27 Thread Peter Robinett
some stack traces about Comet 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 R

[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" wrote: > I have a project that will use the geolocation API in Firefox 3

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Thanks all for the comments and suggestions. I'm totally new to the Java world, so thanks for mentioning all these various options. First, my system: MySQL is the database I'm using with my Lift app (and some other very low traffic apps) and is tuned pretty aggressively to use little memory. It s

[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 wrote: > Because it's unique across systems and maps directly to hardware I'm > tracking. Bu

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
http://www.bubblefoundry.com/lift/jconsole-overview.jpg On Jul 28, 2:15 pm, Naftoli Gugenheim wrote: > You can monitor it with jconsole. > Is the memory building up gradually and not being garbage collected? Is it > being redeployed without restarting jetty? > > ----

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
:run and you changed files in > the webapp. > Do the increases correspond to (specific) requests? > > ----- > > Peter Robinett wrote: > > Thanks, Naftoli. After running for an hour the app is using 45-60% of > my (very little) memory. It app

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
> 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, hav

[Lift] Re: How to configure MySQL In Lift

2009-07-29 Thread Peter Robinett
props/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 wrote: > pravin, > > As this is a common thing, I've added a code sample to my lift- > examples rep

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
created in the database. What do you suggest? David, I'll have some sample code soon. Peter On Jul 28, 4:19 pm, Derek Chen-Becker wrote: > Did you override the dirty_? def? > > Derek > > On Tue, Jul 28, 2009 at 3:09 PM, Peter Robinett > wrote: > > > > > So

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
), and in the > latter set your own private variable and read it in dirty_? (the getter)? > > ----- > > Peter Robinett wrote: > > Hi Derek, > > I'm afraid I'm not sure how to do this, since _dirty_? is a private > va

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
t; > I think that that should work. > > Derek > > On Wed, Jul 29, 2009 at 1:42 PM, Naftoli Gugenheim > wrote: > > > > > Did you try to override def dirty_? and def dirty_?(b: Boolean), and in the > > latter set your own private variable and read it in dirty_? (th

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
o build the new code) version. > > On Wed, Jul 29, 2009 at 1:26 PM, Peter Robinett > wrote: > > > > > > > Hi all, > > > My sample code is here: > >http://github.com/pr1001/lift_1_1_sample/tree/master > > > I hadn't been overriding def dirty_

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Peter Robinett
lak wrote: > On Wed, Jul 29, 2009 at 4:35 PM, Peter Robinett > wrote: > > > > > 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 uniquene

[Lift] Re: Mapper and Primary Keys

2009-07-30 Thread Peter Robinett
he column as UNIQUE NOT NULL. > > On Wed, Jul 29, 2009 at 5:24 PM, Peter Robinett > wrote: > > > > > Ahh, here we go: > > INFO - CREATE TABLE users (id BIGINT NOT NULL GENERATED ALWAYS AS > > IDENTITY , firstname VARCHAR(32) , lastname VARCHAR(32) , ema

[Lift] New Mapped Fields (MappedTimestamp and MappedMac)

2009-07-30 Thread Peter Robinett
r 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.co

[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" wrote: > On 07/30/2009 07:53 PM, Peter Robinett wrote: > > > Are there any other mapped fields you'd like to

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

2009-08-03 Thread Peter Robinett
ime)? Or better yet, provide a trait to mix in with either > of the above? > > ----- > > Peter Robinett wrote: > > Hi all, > > As some of you may have noticed, I have been playing around with > timestamps[1] and mac addresses[2] in my mo

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

2009-08-04 Thread Peter Robinett
olName: String): String = colName + " " + dbType.longColumnType } On Aug 3, 6:59 pm, Naftoli Gugenheim wrote: > Do you mind pasting it to the list? > > - > > Peter Robinett wrote: > > Naftoli, that's a great suggestion. I&#

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

2009-08-04 Thread Peter Robinett
> Aren't you writing a lot of functionality that is in MappedDate(Time)? Define > your mixin as a delta to MappedDate(Time); it should only have the aspects > that differentiate it. > > - > > Peter Robinett wrote: > > Not at al

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

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

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

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

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

2009-08-12 Thread Peter Robinett
1_sample/commit/d744a7cffe7d929ddbc531e8d8afea864a6fdc72 Peter On Aug 8, 6:30 am, David Pollak wrote: > On Sat, Aug 8, 2009 at 2:05 AM, Peter Robinett wrote: > > > > > 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
ffect. So, how can I get my symlinked javascript 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. --~--~-~--~~

[Lift] Re: Symlinks and Javascript Files

2009-08-14 Thread Peter Robinett
;ve tried means that the script should be > under a "js" subdir. > > Derek > > On Thu, Aug 13, 2009 at 7:57 PM, Peter Robinett > wrote: > > > > > My Lift project is in a git repository and to the repository I've > > added a submodule. Since righ

[Lift] Looking for Lift Developers

2009-08-14 Thread Peter Robinett
ed on this list, I'm 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

[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 wrote: > Naftoli Gugenheim 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 almost nothing installed. > > Thank

[Lift] Re: Symlinks and Javascript Files

2009-08-17 Thread Peter Robinett
l.FileResource.checkAliases=False > > Derek > > On Fri, Aug 14, 2009 at 1:28 PM, Peter Robinett > wrote: > > > > > It is not in my site map. I did try the ResourceServer with the > > symlinked script in the 'js' subdir. > > > Peter > > &

[Lift] Re: Deploying

2009-08-17 Thread Peter Robinett
eam. > > On 17/08/2009 18:55, "Peter Robinett" 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

[Lift] Re: Deploying

2009-08-18 Thread Peter Robinett
e page on Nginx wiki on > this:http://wiki.nginx.org/NginxJavaServers. > > Cheers, > Indrajit > > On Aug 18, 6:14 am, Peter Robinett wrote: > > > Timothy, > > > I'm just starting to learn how to use Nginx and would love to some > > pointers. How did yo

[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 wrote: > Hello, > > I've ex

[Lift] Re: MappedDateTime losing time?

2009-08-20 Thread Peter Robinett
; > Thank You, and thanks to everyone who worked with you on it. > > Grant > > On Aug 19, 10:02 am, Peter Robinett wrote: > > > Hi Grant, > > > I'm afraid I don't have the answer for you, but perhaps my attempt at > > making a MappedTimestamp will

[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

[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 > wrote: > > > > > Hi all, > > > I

[Lift] Re: Lift Core Missing on mvn install

2009-08-24 Thread Peter Robinett
gt;       >     >   > > On Sun, Aug 23, 2009 at 3:48 PM, Peter Robinett > wrote: > > > > > > > Hi Derek, > > > I hadn't tried deleting my .m2 directory but unfortunately that didn't > > help:http://gist.github.com/173501 > > >

[Lift] Re: Mapper with custom id

2009-08-24 Thread Peter Robinett
You need to set the mapper id field as editable. Here is what I had to do to use a MappedStringIndex as a primary key that I can set manually: /* MAC address as primary key */ def primaryKeyField = mac object mac extends MappedStringIndex(this, 17) with IndexedField [String] { override

[Lift] Re: XHTML gotchas

2009-08-26 Thread Peter Robinett
Would it be too complicated to let the developer choose (perhaps in Boot.scala) whether they want a strict mode? Peter Robinett On Aug 26, 8:20 am, David Pollak wrote: > Folks, > I've been working on the XHTML validation stuff for Lift.  Basically, you > can, in dev mode, turn

[Lift] Re: Mapper and Primary Keys

2009-08-26 Thread Peter Robinett
47 am, David Pollak wrote: > On Thu, Jul 30, 2009 at 8:16 AM, Peter Robinett > wrote: > > > > > > > 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.creat

[Lift] Mastering SiteMap

2009-09-03 Thread Peter Robinett
mething else 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 un

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
hecking on a > role flag in the user table should not be that hard? ) > > mvh > Bjarte > > > > On Fri, Sep 4, 2009 at 12:53 AM, Peter Robinett > wrote: > > > Hi all, > > > I haven't been able to find many detailed explanations about h

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
afaik does not have role level authentication but checking on a > > role flag in the user table should not be that hard? ) > > > mvh > > Bjarte > > > On Fri, Sep 4, 2009 at 12:53 AM, Peter Robinett > > wrote: > >> Hi all, > > >> I haven&

[Lift] RequestVar not Persisting

2009-09-04 Thread Peter Robinett
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 to the Google Groups

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
re, > the for comprehension will only be executed on the initial rendering > of the snippet, not as part of the execution of your loadUsers or > processUsers callbacks. So the state of the RequestVar will never be > reset. > > Kris > > On Fri, Sep 4, 2009 at 2:01 PM, Peter Robi

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
println(updated) 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 wrote: &g

[Lift] Delete Several Rows Using Mapper

2009-09-05 Thread Peter Robinett
myModel.delete_! }) }) 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, se

[Lift] Re: Delete Several Rows Using Mapper

2009-09-05 Thread Peter Robinett
Perfect, thanks! Peter On Sep 5, 11:18 am, Justin Reardon 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

[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 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 Thu, Sep 10, 20

[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 I'

[Lift] Re: Getting Maven Offline Mode Working

2009-09-13 Thread Peter Robinett
Sun, Sep 13, 2009 at 8:55 PM, Peter Robinett > wrote: > > > > > 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

[Lift] Re: Getting Maven Offline Mode Working

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

[Lift] Re: Getting Maven Offline Mode Working

2009-09-13 Thread Peter Robinett
e 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 > wrote: > > > > > Thanks, Kevin. Dropping in the latest version didn't seem to work (mvn > > --version kept saying I still had 2.0.

[Lift] Re: Getting Maven Offline Mode Working

2009-09-14 Thread Peter Robinett
t; > 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   > wrote: &g

[Lift] Re: Lift on Stack Overflow

2010-01-12 Thread Peter Robinett
I'm a huge SO fan and have used it to ask a lot of my stupid Scala questions but I've been asking my Lift questions here. Perhaps the reason there are so few Lift questions is because others are doing the same? Note that Scala has a respectable 698 questions. Peter On Jan 12, 2:28 pm, "joseph b."

[Lift] Re: Upgrade to Flot 0.6

2010-01-29 Thread Peter Robinett
Aaron, thanks so much for taking the initiative to upgrade Flot, it's something that I've been meaning to do. Just skimming over your changes, everything looks good. As for not using the packed excanvas file, that should be ok since Lift runs the YUI compressor by default on all Javascript files (c

[Lift] Re: Upgrade to Flot 0.6

2010-02-01 Thread Peter Robinett
an 31, 2010, at 5:43 PM, David Pollak > > wrote: > > >> Peter, > > >> Please keep in mind the Lift IP policy.  We don't pull from other   > >> repositories nor do we accept patches.  We'll have to do the Flot   > >> 0.6 ourselves. > > &g

[Lift] Re: Upgrade to Flot 0.6

2010-02-02 Thread Peter Robinett
#x27;ve > done, if that's allowed.  Otherwise, I'd be very eager to provide > additional testing of any capabilities that you make available or any > other help that I can provide within the guidelines of the Lift > project. > > Thanks, > - A > > > > On Mon, F

[Lift] Re: [flot] jquery.flot.css breaks the chart in IE8

2010-02-02 Thread Peter Robinett
Hi Jarod, I'm afraid I don't understand your problem. Are you staying that the combination of the blueprint and flot CSS files leads to incorrect charts in IE8 but the charts are rendered correctly when the blueprint file is not included? If so, is this a problem with how Lift includes the files o

[Lift] Re: jquery.flot.css breaks the chart in IE8

2010-02-03 Thread Peter Robinett
t. And then in IE8 Flot just draw the > backgroup, labels, but no line, point(still good in firefox and > chrome). Now, I switch back to the /static copy to make it work. > > On Feb 3, 11:14 am, Peter Robinett wrote: > > > > > Hi Jarod, > > > I'm afraid I

[Lift] Out of Memory Errors Building Lift

2010-02-03 Thread Peter Robinett
Hi all, I seem to be to doing something wrong, as I keep getting out of memory errors when trying to build Lift from source. My command is: mvn -DXmx1024m -U clean install Am I missing something obvious? I've tried with 1024 and 2048 megabytes of memory. I'm running Java 1.6.0_17 and Maven 2.2.0

[Lift] Re: Out of Memory Errors Building Lift

2010-02-04 Thread Peter Robinett
en 2.2.1 (r801777; 2009-08-07 05:16:01+1000) > Java version: 1.6.0_17 > Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home > Default locale: en_US, platform encoding: utf8 > OS name: "mac os x" version: "10.6.2" arch: "x86_64" Fa

[Lift] Re: Out of Memory Errors Building Lift

2010-02-04 Thread Peter Robinett
Feb 4, 11:19 am, Peter Robinett wrote: > Thanks Jono, but unfortunately that didn't help. > > Peter > > On Feb 3, 6:53 pm, Jonathan Ferguson wrote: > > > > > Try upgrading to the latest version of maven (2.2.1 or later ). I was having > > a simliar issue. &

  1   2   3   >