[Lift] Re: Removing Scala Actors from Lift

2009-09-29 Thread Tobias Daub
Hi David, Could you give some short step-by-step guide, how to change the most important stuff in case of compilation errors that are caused because of this? Maybe that would safe some time afterwards. I'm thinking about to start my application exclusively with -o to make sure that no

[Lift] table does not exist

2009-09-19 Thread Tobias Daub
Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they

[Lift] Lift runtime error

2009-09-19 Thread Tobias Daub
Hey Lifters, I overrode the toString method of a foreign key field, to make decisions, on what to return, nothing special. When I remove the if/else (Order.scala, line 65 ff.) and return directly the result, no error occurs! I append the source as attachment. Further on, I've a similar error

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
ticket referencing the project and this thread and we'll fix the problem. On Sat, Sep 19, 2009 at 11:06 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala

[Lift] Re: table does not exist

2009-09-19 Thread Tobias Daub
, when I first start after I wiped out the entire database. thanks. Could this be a case of jvm on windows locking some files? Cheers, Indrajit On Sep 19, 11:38 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hey David, I don't know what I did differently, but now, after the 5th mvn clean

[Lift] Re: Still getting nuts with getting/setting foreign key fields

2009-09-17 Thread Tobias Daub
David, That makes much more sense, but I just didn't found it anywhere to do it like this...good to know! thanks! On Wed, Sep 16, 2009 at 10:58 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hey Lifters, Simple problem, but kind of difficult solution

[Lift] Article about Lift on heise.de

2009-09-16 Thread Tobias Daub
Just found it during my daily look on the site http://www.heise.de/developer/Lift-Vehikel-zum-naechsten-Web-Framework-Level--/artikel/145143 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Still getting nuts with getting/setting foreign key fields

2009-09-16 Thread Tobias Daub
Hey Lifters, Simple problem, but kind of difficult solution: I've a foreign key field, e.g. myField. I want to get the id of the field. So I wrote a method inside the class: def getMyFieldId = myField.obj.map(_.id.is) openOr 0L IDs always start with one, right? But I get zero back! Why? I

[Lift] Re: No Navigation Defined in menu snippet

2009-07-06 Thread Tobias Daub
Don't know if this is an accident, but since yesterday I'm getting this error too (and I didn't touched Boot.scala)? I have two webapps, hosted on the same server: http://lsug.org/main/ http://lsug.org/stage/ Problem is, the menu works just fine on the stage site, but not on the

[Lift] Trigger object creation to send message to actor

2009-07-06 Thread Tobias Daub
Hi List, I wanna send a message to an Actor everytime a new row is created in a specific table. The Actor is responsible to refresh a HTML page and display all the items from the table. How do I do that? thanks. --~--~-~--~~~---~--~~ You received this

[Lift] Re: howto do simple calculation with MappedInt

2009-07-05 Thread Tobias Daub
here are the two files, thanks! Send me the file and I'll debug it. On Fri, Jul 3, 2009 at 3:06 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Thanks Dave, but still getting this error: /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org

[Lift] Re: howto do simple calculation with MappedInt

2009-07-03 Thread Tobias Daub
is the explanation for this behavior? thanks On Sun, Jun 21, 2009 at 6:38 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: I'm stucked again with the simple things I've a trait that extends BaseLongKeyedMapper and I wanna add a field (currentCost) that does some

[Lift] howto do simple calculation with MappedInt

2009-06-21 Thread Tobias Daub
I'm stucked again with the simple things I've a trait that extends BaseLongKeyedMapper and I wanna add a field (currentCost) that does some calculation. Nothing special. Here's the code: /* * Order.scala * * To change this template, choose Tools | Template Manager * and open the

[Lift] Re: selectObj again

2009-06-19 Thread Tobias Daub
a short code snippet? thanks and sorry for wasting your time... Try: SHtml.selectType[TradeType]() On Thu, Jun 18, 2009 at 6:30 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi There, I'm still having problems with the selectObj method. Here's

[Lift] Re: selectObj again

2009-06-19 Thread Tobias Daub
at 6:10 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi Dave, thanks again! But I can't find any documentation about the selectType method. I looked at the API docs on the website, but in SHtml the selectType method didn't exist!? Even inside

[Lift] Re: selectObj again

2009-06-19 Thread Tobias Daub
it to. Please let me know if it doesn't. Thanks, David On Fri, Jun 19, 2009 at 9:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Thanks Dave! I modified the code a little bit: object tradeType extends MappedLongForeignKey(this.asInstanceOf

[Lift] Error during sign-up

2009-06-18 Thread Tobias Daub
Hi There, I just got this error when I tried to sign-up a new user with the default interface. thanks -- Exception occured while processing /user_mgt/sign_up Message: java.lang.AbstractMethodError:

[Lift] error during sign-up (solved)

2009-06-18 Thread Tobias Daub
Sorry, After I did mvn clean install it was ok. thanks anyway --~--~-~--~~~---~--~~ 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

[Lift] selectObj again

2009-06-18 Thread Tobias Daub
Hi There, I'm still having problems with the selectObj method. Here's the code: */* The basic trade types are: BUY and SELL */ object tradeType extends MappedLongForeignKey(this.asInstanceOf[MapperType], TradeTypeMetaObj){ override def _toForm = Full(SHtml.selectObj

[Lift] Re: Develop / Production System

2009-06-16 Thread Tobias Daub
). On Tue, Jun 16, 2009 at 2:41 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi There, I would like to know whats the best way to move an existing Lift installation from one system to another. I ask this, because I had some problems after I just

[Lift] using selectObj

2009-05-25 Thread Tobias Daub
Hi Lifters, I attempted to modify a MappedLongForeignKey field in my class to display itself as a drop-down menu. I wanna select objects from another database table, therefore I used SHtml.selectObj. Here's the code: object tradeType extends

[Lift] Re: set currentUser as owner

2009-05-22 Thread Tobias Daub
://lampsvn.epfl.ch/trac/scala/ticket/715 Please do a mvn clean jetty:run and all should be good. On May 21, 7:08 am, Tobias Daub hannes.flo...@gmx.li wrote: Hi Dave, The thing with User.currentUserId openOr 0L didn't worked as well. I attached the source file that contains the trait that I

[Lift] Re: set currentUser as owner

2009-05-21 Thread Tobias Daub
] try: object owner extends MappedLongForeignKey(this, User) { override def defaultValue = User.currentUserId openOr 0L } thanks On Wed, May 20, 2009 at 5:38 PM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote

[Lift] set currentUser as owner

2009-05-20 Thread Tobias Daub
Hello Lifters, I wanted to override the defaultValue of my owner field, to always set it to the currentUser. I cannot compile this, because I get an error (what I kind of understand). During compilation, there's no currentUser so this function call has to be delayed somehow, but how? The

[Lift] Re: more CRUDify

2009-05-06 Thread Tobias Daub
by hand. The link from the API docs is dead: http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/mapper/CRUDify.CrudType.html thanks David Pollak schrieb: On Tue, May 5, 2009 at 12:35 PM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hello List, I've

[Lift] more CRUDify

2009-05-05 Thread Tobias Daub
Hello List, I've some more questions about CRUDify! The sources aren't helping me so much and I really miss some more comments! (sorry) 1.) I wanna change the behaviour for listing items, e.g. I only want to list items that belong to the logged in user. Is there any method I can override

[Lift] Re: override def editMenuLocParams

2009-04-28 Thread Tobias Daub
My pom.xml file says 1.1-SNAPSHOT and I changed it to scala version 2.7.4 and did a mvn -U clean install again. But I still get the same error.? David Pollak schrieb: On Sun, Apr 26, 2009 at 1:11 PM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi

[Lift] override def editMenuLocParams

2009-04-26 Thread Tobias Daub
Hi There, I've got a compiler error when I tried to override those new CRUDify methods. value editMenuLocParams is not a member of org.tobster.model.LimitOrder with net.liftweb.mapper.KeyedMetaMapper[Long,org.tobster.model.LimitOrder] with ScalaObject I tried it with showAllMenuLocParams

[Lift] Re: CRUDifying a model

2009-04-22 Thread Tobias Daub
[Loc.LocParam] = Nil Just put additional LocParams in these lists (e.g., If(), Unless()) and you can set access control. Thanks, David On Thu, Apr 16, 2009 at 5:51 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi Dave, Can you please give a short example, how

[Lift] Re: CRUDifying a model

2009-04-19 Thread Tobias Daub
] = Nil Just put additional LocParams in these lists (e.g., If(), Unless()) and you can set access control. Thanks, David On Thu, Apr 16, 2009 at 5:51 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi Dave, Can you please give a short example, how

[Lift] Re: CRUDifying a model

2009-04-16 Thread Tobias Daub
Hi Dave, Can you please give a short example, how to hide those List/Create entries from the sitemap, when a user is not logged in? I already had a glimpse at the chapter about the sitemap from the book, but I'm missing some more detailed sample code... thanks Tobias In Boot.scala, when

[Lift] create todo item during boot

2009-04-15 Thread Tobias Daub
Hi There, I wanna have some kind of standard todo item, that should always be there (in the database). I Don't want to create that todo item manually by hand, instead I want to create it during boot. Means I wanna check everytime when Lift is started, if it already exists and if not, it'll

[Lift] Re: create todo item during boot

2009-04-15 Thread Tobias Daub
Yeah, I though about that too, but I couln't find an appropriate place in the code where to hook in. You can probably do that in you Lift Boot class after you DB connections are setup etc. Br's, Marius On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hi There, I wanna

[Lift] Re: create todo item during boot

2009-04-15 Thread Tobias Daub
are setup etc. Br's, Marius On Apr 15, 6:55 pm, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi There, I wanna have some kind of standard todo item, that should always be there (in the database). I Don't want to create that todo item

[Lift] convention how to name classes in snippet package

2009-04-13 Thread Tobias Daub
Hi There, Is there any convention about how to name classes in the snippet package. In the ToDo example the snippet that corresponds to the ToDo Model was named TD which is maybe not the best name. Would it be possible to prefix the class name with something, e.g. ToDoFactory? Factory is

[Lift] nice tutorial

2009-04-08 Thread Tobias Daub
Hi There, I don't know if somebody already found this, but I think its nice and helpful, too. http://www.ibm.com/developerworks/ajax/tutorials/wa-aj-comet/ Tobias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Howto re-initialize database

2009-04-08 Thread Tobias Daub
be MySQL and PostgreSQL, although there are others. Take a look here, http://wiki.liftweb.net/index.php?title=Cheat_Sheet#Connection_String... [1]http://db.apache.org/derby/ On Apr 6, 3:25 am, Tobias Daub hannes.flo...@gmx.li wrote: Hi Derek, This was something

[Lift] Re: Howto re-initialize database

2009-04-06 Thread Tobias Daub
one of the archetypes (using Derby), just delete the Derby directory in your project root. Otherwise, you could look at the destroyTables_!! method on Schemifier. Could you give some more details? Derek On Sun, Apr 5, 2009 at 1:06 PM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo

[Lift] Howto re-initialize database

2009-04-05 Thread Tobias Daub
Hi There, How can I initialize the database again, e.g. to have all tables emtpy again? Do I have to modify Boot.scala? thanks Tobias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] newbie question: using ajaxText() to get integer from form

2009-04-04 Thread Tobias Daub
Hi There, From the ToDo tutorial I got this code: private def desc(td: ToDo, reDraw: () = JsCmd) = swappable(span{td.desc}/span, span{ajaxText(td.desc, v = {td.desc(v).save; reDraw()})} /span) What if I've a numeric field, e.g. td.num and I want to

[Lift] Re: Tutorial No Schemify in Boot.scala

2009-03-17 Thread Tobias Daub
Hi Eric, By the way, is there any documentation about the different maven2 lift-archetype-something options? I wanted to setup a lift project that has the login stuff already included, but since I didn't know why, I used the ToDo project and modified it. Are there other solutions? thanks

[Lift] Re: Change default port 8080

2009-03-16 Thread Tobias Daub
A google search didnt't helpedthanks anyway! mvn -Djetty.port= jetty:run A google search would tell you this as well. On Mar 15, 2:37 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hi Folks, Does anybody know how I can change the default port 8080? thanks

[Lift] Change default port 8080

2009-03-15 Thread Tobias Daub
Hi Folks, Does anybody know how I can change the default port 8080? thanks! Tobias --~--~-~--~~~---~--~~ 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

[Lift] Re: Netbeans

2009-03-09 Thread Tobias Daub
To get syntax highlighting and all that stuff in Netbeans go to: http://wiki.netbeans.org/Scala#section-Scala-1.GetStartedWithNetBeans6.5 Good evening, I´ve been looking at Lift, did a bit of command line but I want to use it in Netbeans, unfortunately the only google results about Lift,