[Lift] Re: execute code when browser is closed

2009-10-06 Thread Timothy Perrett
Hey jack, As I said before, I think the design you have is wrong if your needing to code in a hacky way such as this. The way you articulate the justification for using shutdown almost certianly clarifies an incorrect design. Personally I think you could use Ajax for this an have a much

[Lift] Re: log4j

2009-10-06 Thread Timothy Perrett
Looks like a good contender for a wiki article... Cheers, Tim Sent from my iPhone On 6 Oct 2009, at 01:12, Derek Chen-Becker dchenbec...@gmail.com wrote: Changing the logging has to come at the very beginning of the boot method. I'm using slf4j in a 1.0.2 project and it's working fine.

[Lift] Re: execute code when browser is closed

2009-10-06 Thread Jack Widman
I didn't mean to sound like I am justifying the way I am doing. I definitely do not have a good feel for lift yet and it feels hackey to me too. Part of it is I'm rushing to get a demo done at the same time I am learning lift. Thanks for your help. On Tue, Oct 6, 2009 at 2:04 AM, Timothy Perrett

[Lift] Re: log4j

2009-10-06 Thread Jeppe Nejsum Madsen
Derek Chen-Becker dchenbec...@gmail.com writes: Changing the logging has to come at the very beginning of the boot method. I'm using slf4j in a 1.0.2 project and it's working fine. The very first line of my boot method is: LogBoot.loggerSetup = () = true which basically disables Lift

[Lift] Re: execute code when browser is closed

2009-10-06 Thread Ross Mellgren
I'm pretty tired and I definitely did not try to compile this, but maybe something like this using plain ajax might be better? If the server cannot be contacted an alert box will pop up -- you can customize that behavior using AjaxContext and using that with SHtml.ajaxCall or jsonCall, I

[Lift] Re: YUI Compressor Fatal Error

2009-10-06 Thread David Bernard
yuicompressor 2.3.x doesn't work with openjdk (https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/287035) But it seems that yuicompressor 2.4.2 works (http://www.electrictoolbox.com/minify-javascript-css-yui-compressor/) It's a long time I didn't update yuicompressor-maven-plugin. I'll

[Lift] Re: execute code when browser is closed

2009-10-06 Thread Naftoli Gugenheim
As Tim said, but in different words. Use Comet when changed state needs to be *pushed* from the server. Use Ajax when you need to asynchronously *pull* data from the server. - Ross Mellgrendri...@gmail.com wrote: I'm pretty tired and I definitely did not

[Lift] Re: Help!

2009-10-06 Thread David Bernard
To create a war : mvn package To deploy (outline), (war are bundles that need a WebApp server to run (eg : jetty, tomcat, glassfish, jboss,...): # install jetty on your server (not maven) ## start jetty ## try http://jetty.host:jetty.port/ (eg: http://127.0.0.1:8080/) ## stop # put your .war

[Lift] Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Oleg G.
Sorry if its a stupid question, but why? I like the idea very much and trying to understand all the aspects. Fields declared as 'objects' can't be overridden. Is it intended? If so why? Consider following oversimplified example: trait Field trait Prop1 trait Prop2 trait Prop3 class

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Stefan Langer
Not ment as a offence but you are in way over your head! A couple of things: 1. You say you are a non-programmer but I assume you do understand Scala? Or else it is pointless to use Lift as it is based on the Scala language and relies heavily on its features. Knowledge of Java is also a plus cause

[Lift] Re: YUI Compressor Fatal Error

2009-10-06 Thread Peter Robinett
Thanks, all. While David Bernard's plan to update the maven plugin is very welcome, the fact that Scala Actors don't work for Comet actors suggests that I should switch to the Sun JVM. Peter On Oct 6, 8:50 am, David Bernard david.bernard...@gmail.com wrote: yuicompressor 2.3.x doesn't work

[Lift] Re: How to share request scope data among snippets in Lift

2009-10-06 Thread Viktor Klang
On Tue, Oct 6, 2009 at 12:01 AM, Kevin Wright kev.lee.wri...@googlemail.com wrote: On Mon, Oct 5, 2009 at 10:54 PM, Jack Widman jack.wid...@gmail.com wrote: I'm not sure English is Turing Complete. Also not sure how prominent it will be in 50 years ... :) Nor I, but I'm certain that

[Lift] Re: Possible lift-json bug in Xml.toJson

2009-10-06 Thread Joni Freeman
Hi, I fixed this but it will slip M6. You can build a fixed version from branch if you need it now. Please see the changeset 'Scala XML support...': http://github.com/dpp/liftweb/commits/joni_wip_xml Cheers Joni On Oct 5, 9:22 pm, harryh har...@gmail.com wrote: Xml.toJson (in M5) is

[Lift] Overriding date/time formatting

2009-10-06 Thread Dirk Louwers
Hi, After having toyed around with Scala and recently Lift for a few weeks I have a question. To avoid jumping to conclusions let me first explain what I am trying to achieve: I am not happy with the way MappedDateTime parses strings and formats dates by default. I want to be able to change

[Lift] Re: Help!

2009-10-06 Thread Jack Widman
Thanks David. The command I was trying to remember was deploy-war but I kept using run-war. The names are not quite precise. run-war should be called build-and-run-war, and deploy-war is really run-with-war. If those names were not so horribly long, that is. On Tue, Oct 6, 2009 at 3:05 AM, David

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Dirk Louwers
Well, I am only a beginner myself but here are my 2 cents: - My guess is that they are declared as inner objects to make it possible to reach certain global field properties through the companion MetaMapper object. - As far as I know traits cannot be directly instantiated, only extended or mixed

[Lift] Binding a snippet in a comet actor?

2009-10-06 Thread Somindra Bhattacharya
Hi Everyone, I have a comet actor that binds XHTML. The XHTML corresponds to a snippet: XHTML for comet actor - lift:comet type=RCActor Act:act / /lift:comet When the comet actor receives a certain message, the render method of the comet actor binds the following XHTML -

[Lift] Re: Need two classes to inherit from one model, database design and view issues

2009-10-06 Thread Jim Barrows
On Oct 2, 7:55 pm, Dave davidtgoldb...@gmail.com wrote: Hi all- I posted this on stackoverflow but I figure its probably relevant here too.  I checked out the post with David and Steve Yen corresponding but I am still at a loss and am curious if any progress has been made in this

[Lift] How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
I want to pass the result of Xml.toJson to JsonResponse. How can I do that, when JsonResponse takes a JsExp as a parameter, not a JValue. Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Kris Nuttycombe
One major reason for the inner object pattern is that when you have a singleton object extending a trait, it is possible for the trait to reflect upon that object's class to obtain information like the name of the field. You'll see this pattern used throughout Lift (AnyVar subclasses RequestVar

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 7:52 AM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: One major reason for the inner object pattern is that when you have a singleton object extending a trait, it is possible for the trait to reflect upon that object's class to obtain information like the name of

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread David Pollak
Please open a ticket for this. We need to get the rest of Lift playing well with Joni's excellent JSON library. On Tue, Oct 6, 2009 at 7:43 AM, glenn gl...@exmbly.com wrote: I want to pass the result of Xml.toJson to JsonResponse. How can I do that, when JsonResponse takes a JsExp as a

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Jim Barrows
On Oct 6, 12:52 am, Stefan Langer mailtolan...@googlemail.com wrote: Not ment as a offence but you are in way over your head! While I agree. Linus Torvalds was in much the same place. He has to somewhere :) A couple of things: 1. You say you are a non-programmer but I assume you do

[Lift] What am I doing wrong?

2009-10-06 Thread Rick R
I have added a mapping of game_state to the DispatchSnippet GameState. This works for game_state.list, but fails for game_state.addGame, shown below. What did I screw up this time? WARN - Snippet Failure: SnippetFailure(/ - ParsePath(List(index),,true,false),Full(game_store.addGame),Stateful

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Tim Nelson
On Tue, Oct 6, 2009 at 10:10 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I don't care for the pattern, but it comes from Scala history... so In the days of Scala 2.3, an inner object had different class and method visibility than a val instantiated in the same way. So, if you

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread TylerWeir
On Oct 6, 3:52 am, Stefan Langer mailtolan...@googlemail.com wrote: Not ment as a offence but you are in way over your head! This is a case of running before walking I think. Ko, web app development encompasses *many* aspects, and jumping in with a Functional/OO hybrid language based framework

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread harryh
For now I am doing this. It's not so bad. def xmlToJson(xml: Elem): JsExp = { val json = Xml.toJson(xml) map { // some mappings specific to my json needs } JsRaw(Printer.compact(render(json)) } JsonResponse(xmlToJson(xml)) On Oct 6, 11:17 am, David Pollak

[Lift] Re: What am I doing wrong?

2009-10-06 Thread Ross Mellgren
You are using a dispatch snippet, which means the name after . in the lift tag is passed to the dispatch method of your snippet, rather than using reflection to find a method with the same name. So, you need to add: case addGame = addGame to your def dispatch -Ross On Oct 6, 2009, at

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh har...@gmail.com wrote: For now I am doing this.  It's not so bad. def xmlToJson(xml: Elem): JsExp = {   val json = Xml.toJson(xml) map {     // some mappings specific to my json

[Lift] Re: lift-json and attributes

2009-10-06 Thread harryh
This is a feature request and I just committed an implementation to my branch. This looks great. If there is anyway it could get committed to master in time for M6 (which is coming out any day now right?) that would be very very helpful to me. Thanks for your work on this stuff Joni!

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Never mind, I found it. Glenn On Oct 6, 9:02 am, glenn gl...@exmbly.com wrote: Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh har...@gmail.com wrote: For now I am doing this.  It's not so bad. def xmlToJson(xml: Elem):

[Lift] Re: lift-json and attributes

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 9:03 AM, harryh har...@gmail.com wrote: This is a feature request and I just committed an implementation to my branch. This looks great. If there is anyway it could get committed to master in time for M6 (which is coming out any day now right?) that would be very

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread David Pollak
We try to make Lift accessible to a wide range of folks who want to build web sites. However, there are lower-bounds on what we can do. By and large, PHP is a great place to start in terms of mapping simple HTTP requests into simple web pages with a little RDBMS storage. Personally, I don't

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 8:20 AM, Tim Nelson tnell...@gmail.com wrote: On Tue, Oct 6, 2009 at 10:10 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I don't care for the pattern, but it comes from Scala history... so In the days of Scala 2.3, an inner object had different class

[Lift] Re: [SOLVED] Image submit buttons

2009-10-06 Thread Chris
I understand this is solved, would you care to shine some light on making an image a button with lift? either making a button with the image as an icon, or making an image that is made form my snippet. Thanks On Sep 24, 3:52 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: One more trick

[Lift] Override the display names for (Mega)ProtoUser

2009-10-06 Thread Heiko Seeberger
Hi, It is not possible to localize or override the display names for (Mega)ProtoUser's first name, last name and time zone. This is because it is determined by ??(First Name) and analogous, with First Name (with a blank) not a valid key for a PropertyResourceBundle. Am I missing something? Or

[Lift] RESTful JSON server that supports jQuery or JSONP callback

2009-10-06 Thread Juan M Uys
Hi Lifters, I'm building a REST server and a separate stand-alone DHTML client which won't necessarily be hosted on the same server. Some browsers do not support cross site Ajax, hence JSONP (i.e. callback support). My DHTML client now makes calls like the following, using jQuery: snip GET

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Oleg G.
Thanks for all the answers and especially for David's clarification. It would be really cool to upgrade the 'keeping the meaning with the bytes' thing (http://blog.lostlake.org/index.php?/archives/19-Keeping- the-meaning-with-the-bytes.html) to allow extension/customization. Generally, yes.  I

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread koveen
Stefan, thanks for your reply. :) to anwser your questions: I have no experience with Java and I only made some very simple static websites, years ago. I will try to listen to you and try to make a very simple website with Lift. But if -IF- I've succeeded in doing that, I hope you will excuse

[Lift] Re: [scala] EclipseLink?

2009-10-06 Thread Meredith Gregory
Dear Ismael, i got buried under some other work and forgot to thank you for this note. If you look further down on the web page you referenced you will see that the pom.xml snippets they include have the characters escaped as you suggested. i cut and pasted these into my pom.xml for my

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 9:50 AM, Oleg G. ojo...@gmail.com wrote: Thanks for all the answers and especially for David's clarification. It would be really cool to upgrade the 'keeping the meaning with the bytes' thing (http://blog.lostlake.org/index.php?/archives/19-Keeping-

[Lift] How to suppress / override / escape context path rewriting?

2009-10-06 Thread Ross Mellgren
I'm deploying a Lift application into JBoss as another WAR alongside the rest of our application in a separate WAR, and I'm running into problems with the context path rewriting. I've deployed my WAR with an appropriate jboss-web.xml file which sets the context path to /myapp, and now I'd

[Lift] Re: YUI Compressor Fatal Error

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 1:39 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, all. While David Bernard's plan to update the maven plugin is very welcome, the fact that Scala Actors don't work for Comet actors suggests that I should switch to the Sun JVM. Keep in mind I was on Ubuntu

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread TylerWeir
On Oct 6, 12:31 pm, David Pollak feeder.of.the.be...@gmail.com wrote: We try to make Lift accessible to a wide range of folks who want to build web sites.  However, there are lower-bounds on what we can do.  By and large, PHP is a great place to start in terms of mapping simple HTTP I was

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Oleg G.
As i said before i'm not sure that i'm getting the whole picture and maybe my initial question is incorrect in its root. Still: Suppose i have a Person class declared with Mapper/Record and i want to reuse the class and all the code associated with it in another module/project. My first thought

[Lift] Re: What am I doing wrong?

2009-10-06 Thread Rick R
Geez. I knew I was overlooking something stupid. Thanks for your help. On Tue, Oct 6, 2009 at 11:49 AM, Ross Mellgren dri...@gmail.com wrote: You are using a dispatch snippet, which means the name after . in the lift tag is passed to the dispatch method of your snippet, rather than using

[Lift] Re: RESTful JSON server that supports jQuery or JSONP callback

2009-10-06 Thread opyate
Sorry - APIResponse code not borrowed from skittr, but ESME (http:// incubator.apache.org/esme/) Thus, depending on your call's extension (.json or .xml) you can serve the response in the required format. Anyhoo, back to the question... :-) Thanks, Juan On Oct 6, 5:48 pm, Juan M Uys

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread koveen
David, no need to appologise! I think you do all necessary to clarify issues at hand and defend the interests of the lift community! And I am very happy with the liftbook too! But yes I've spent two weekends to try to accomplish some simple task and failed. And because of that, indeed it has

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Naftoli Gugenheim
I want to raise another related point. Currently all mapped fields have to be passed this. Is there a way to not require it? Can Mapper or Record use an implicit object etc. to fill in this? Or could there be an inner derived class that knows its parent, like I recently did for ModelView? In

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Timothy Perrett
Ko, Id echo DPP's comments... if you are a real beginer then perhaps consider PHP as it will provide you with a quicker route to market. Lift is a great bit of software engineering, but parts of it are truley non-trival and will no doubt be completely inappropriate for a beginner... hell, we

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread marius d.
Ko, You are in an interesting position :) ... Personally if I would be in your place I would not start with PHP. I would probably start understanding Java servlets and the horrible and crappy JSP's. Then I would try to understand Java not only as a language but also as a platform. Then I would

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Randinn
Hello koveen, I'll tell you some of my experiences with Lift/Scala to give you some idea. I learned to code basic and some what they called then Machine Language on a Commodore Vic 20 and a 64 oh so long ago, I learned a bit of C then gave it up. I learned a bit of PHP since then but that's it.

[Lift] Naming CometActors

2009-10-06 Thread Jack Widman
So if give a CometActor a static name, say Other, then every request will get the same running instance of the CometActor. But if I name it dynamically, say with a random string, each request will get its own instance of the CometActor. Right? -- Jack

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Randinn
For the large part, I agree, the level of questions even I know is geingt a bit too much, and the amount of patience you all use answering them even though you know you just answered that a week ago is commendable. That said you commiters don't have time to waste answering those questions, that's

[Lift] Goat Rodeo

2009-10-06 Thread Tim Dion
Hi All, Can anyone tell me how Goat Rodeo is coming along? I am interested in working on a transaction processing engine. Can anyone tell me how to contribute to this project. By the way, I have worked done a lot of work with GemStone, which is a Transactional Memory based Object Oriented

[Lift] Re: Goat Rodeo

2009-10-06 Thread David Pollak
Tim, Goat Rodeo is #5 on my priority list, but #'s 1-3 have been consuming all my time. I've committed to a Goat Rodeo preso at November BASE (Bay Area Scala Enthusiasts), so it's gotta bubble up. When I've got enough stuff out of my head and into code, I'll be happy to invite collaborators.

[Lift] Re: What am I doing wrong?

2009-10-06 Thread Ross Mellgren
In your bind, you don't capture the nodes inside games:show, so the inner bind is binding the same nodes as the outer bind. Change: bind(games, html, show - gameMap.values.toList.flatMap to: bind(games, html, show - { (html: NodeSeq) = gameMap.values.toList.flatMap ...

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Stefan Langer
I didn't want to discourage you I just wanted to be honest and please do come back with any question you have as we learn by asking. But at the same time as was said in this thread already take the time to expriment and use the resources that are there (google and the like) to come up with the

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Stefan Scott
I hope I don't wander too far off-topic here as I wend my way to the question at the end of this post (would it be useful to look at something like the OWL/SWRL web ontology and rule languages for liftweb?). I tend to generalize/abstract a lot - so if anyone with a theoretical bent is willing to

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 10:16 AM, Oleg G. ojo...@gmail.com wrote: As i said before i'm not sure that i'm getting the whole picture and maybe my initial question is incorrect in its root. Still: Suppose i have a Person class declared with Mapper/Record and i want to reuse the class and all

[Lift] Re: maven and jetty

2009-10-06 Thread MarkChance
I use mvn -Djetty.port=8090 jetty:run It builds the war and then runs jetty. If you leave it running and re- build the war, say in your IDE, the Jetty generally restarts automatically. HTH, Mark On Oct 5, 8:44 pm, Jack Widman jack.wid...@gmail.com wrote: Well it seems that mvn run-war is

[Lift] Re: maven and jetty

2009-10-06 Thread Jack Widman
I thought run uses classes and run-war uses the war. no? On Tue, Oct 6, 2009 at 4:54 PM, MarkChance mark.cha...@gmail.com wrote: I use mvn -Djetty.port=8090 jetty:run It builds the war and then runs jetty. If you leave it running and re- build the war, say in your IDE, the Jetty generally

[Lift] Re: Overriding date/time formatting

2009-10-06 Thread Jeppe Nejsum Madsen
Dirk Louwers dirk.louw...@stormlantern.nl writes: Hi, After having toyed around with Scala and recently Lift for a few weeks I have a question. To avoid jumping to conclusions let me first explain what I am trying to achieve: I am not happy with the way MappedDateTime parses strings and

[Lift] Re: maven and jetty

2009-10-06 Thread Timothy Perrett
Correct. :run uses the stuff under src/main/webapp vs :run-war that uses what is bundled in the war (surprise surprise!) This should all be explained in the maven-jetty-plugin docs as this is not something lift specific by any means. Cheers, Tim Sent from my iPhone On 6 Oct 2009, at 21:57,

[Lift] Re: maven and jetty

2009-10-06 Thread Jack Widman
I am picking up a very subtle insinuation that that question was too easy for this forum. I agree whole heartedly. Won't do it again. My next question is - Is P=NP? No wait, thats not appropriate. On Tue, Oct 6, 2009 at 5:07 PM, Timothy Perrett timo...@getintheloop.euwrote: Correct. :run uses

[Lift] Re: Override the display names for (Mega)ProtoUser

2009-10-06 Thread Jeppe Nejsum Madsen
Heiko Seeberger heiko.seeber...@googlemail.com writes: Hi, It is not possible to localize or override the display names for (Mega)ProtoUser's first name, last name and time zone. This is because it is determined by ??(First Name) and analogous, with First Name (with a blank) not a valid key

[Lift] Re: [scala] EclipseLink?

2009-10-06 Thread Meredith Gregory
Dear Ismael, Prompted by this thread i did some digging and saw that in the attempt to move from hibernate to toplink to eclipselink i had not consistently switched from toplink to eclipselink. So, i'm now getting the download to work. Thanks again. BTW, i wonder if you know whether eclipselink

[Lift] Bind with a map collection

2009-10-06 Thread rstradling
Hello everyone, I have the following code... case class item(name : String) class demo { def exampleFour(xhtml : NodeSeq) : NodeSeq = { val map = Map(Test - List(item(1), item(2), item(3)), Vehicles - List(item(Bike), item(Automobile)) ) val articles = List(

[Lift] Re: Bind with a map collection

2009-10-06 Thread David Pollak
try tacking a .toList on after the flatMap() expression. On Tue, Oct 6, 2009 at 3:19 PM, rstradling ryanstradl...@gmail.com wrote: Hello everyone, I have the following code... case class item(name : String) class demo { def exampleFour(xhtml : NodeSeq) : NodeSeq = { val map = Map(Test

[Lift] Re: Bind with a map collection

2009-10-06 Thread Naftoli Gugenheim
Or toSeq instead of toList. And if it still doesn't work surround it with NodeSeq.fromSeq(toSeq) - David Pollakfeeder.of.the.be...@gmail.com wrote: try tacking a .toList on after the flatMap() expression. On Tue, Oct 6, 2009 at 3:19 PM, rstradling

[Lift] Re: Binding a snippet in a comet actor?

2009-10-06 Thread Naftoli Gugenheim
What about an Ajax form? On Tue, Oct 6, 2009 at 9:52 AM, Somindra Bhattacharya somind...@gmail.com wrote: Hi Everyone, I have a comet actor that binds XHTML. The XHTML corresponds to a snippet: XHTML for comet actor -  lift:comet type=RCActor    Act:act /  /lift:comet When the

[Lift] Re: Need two classes to inherit from one model, database design and view issues

2009-10-06 Thread Naftoli Gugenheim
Here's some code I used when two tables share some fields and their Mappers can share a base trait. I have Fields which have difference Types, some of which reference lookup tables. trait BaseLookupTable[T:LongKeyedMapper[T]] {this: T = object field extends LongMappedMapper(this: T, Field)

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread Naftoli Gugenheim
Which modules will be dependent on lift-json? On Tue, Oct 6, 2009 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket for this.  We need to get the rest of Lift playing well with Joni's excellent JSON library. On Tue, Oct 6, 2009 at 7:43 AM, glenn

[Lift] Re: How to suppress / override / escape context path rewriting?

2009-10-06 Thread Derek Chen-Becker
I don't know of any way to do this currently. If no one else has any ideas, I would open an issue. Derek On Tue, Oct 6, 2009 at 11:07 AM, Ross Mellgren dri...@gmail.com wrote: I'm deploying a Lift application into JBoss as another WAR alongside the rest of our application in a separate WAR,

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 5:13 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Which modules will be dependent on lift-json? lift-webkit On Tue, Oct 6, 2009 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket for this. We need to get the rest of Lift

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Naftoli Gugenheim
Maybe there should be a Wiki page filled with links for more information, like How To: Get more information. It would be nice if it (and the article titled Home--maybe it should have a better name?) could somehow be the first article in the list. On Tue, Oct 6, 2009 at 4:10 PM, Stefan Langer

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Naftoli Gugenheim
What you can do if I'm not mistaken, although not as good, is define in a base trait, def myField: MappedXXX ... and give different concrete object implementations. This way you have a common type that guarantees the field. On Tue, Oct 6, 2009 at 4:54 PM, David Pollak

[Lift] Re: Overriding date/time formatting

2009-10-06 Thread Naftoli Gugenheim
Also more flexibility should be coming soon if I'm not mistaken. I think there's a ticket and Derek is planning on working on it. On Tue, Oct 6, 2009 at 4:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Dirk Louwers dirk.louw...@stormlantern.nl writes: Hi, After having toyed around with

[Lift] Re: Git wiki formatting

2009-10-06 Thread Naftoli Gugenheim
Anyone? Please? On Mon, Oct 5, 2009 at 5:13 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Can someone please fix the formatting on http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headers ? Thanks!

[Lift] Re: Git wiki formatting

2009-10-06 Thread Naftoli Gugenheim
Great, thanks!One line had been unindented, so I fixed that. I didn't reread it too closely but it looks good. On Tue, Oct 6, 2009 at 10:20 PM, Bryan germ...@gmail.com wrote: I added a blank line before the pre element. It looks good now. Please verify. --Bryan On Tue, Oct 6, 2009 at

[Lift] Re: Override the display names for (Mega)ProtoUser

2009-10-06 Thread Heiko Seeberger
Jeppe, You are my hero ;-) Thanks, Heiko 2009/10/6 Jeppe Nejsum Madsen je...@ingolfs.dk Heiko Seeberger heiko.seeber...@googlemail.com writes: Hi, It is not possible to localize or override the display names for (Mega)ProtoUser's first name, last name and time zone. This is because it

[Lift] Mapper SQL issues w/ Oracle

2009-10-06 Thread pbridger
Hi all, I've noticed a couple of SQL-generation problems when using lift (1.0.2) with oracle (10.2, and using latest drivers). Firstly, schemify fails on adding a column to a model: INFO - ALTER TABLE table_name ADD COLUMN label VARCHAR(1000) ERROR - Failed to Boot java.sql.SQLException: