[Lift] Re: Actors and Sockets

2009-08-26 Thread Viktor Klang
On Tue, Aug 25, 2009 at 11:42 PM, mal3 malcolm.gor...@gmail.com wrote: I want to read data from multiple sockets (typically about three sockets) which can each send their data to a set of actors (also typically about three actors). Multiple actors is no problem. But how to handle varying

[Lift] JetBrains IntelliJ IDEA integration

2009-08-26 Thread Dorinel
I've managed to create simple scala projects in Intellij IDEA, but when I try to import an existing lift pom.xml file I fail. It seems that all the libraries from pom.xml are not added to the project and all the lift classes used in project are marked as syntax errors. Have anybody managed to add

[Lift] simple question about a login form

2009-08-26 Thread jack
I have a template with username and password fields. I want to submit to another page where I will, among other things, encrypt the password. But I don't want to show the password in the querystring before I encrypt it. Where do I encrypt it before lift puts it into the querystring?

[Lift] Re: Menu.builder li_item being applied to all?

2009-08-26 Thread Richard Dallaway
I can confirm that your fix of the fix has fixed my issue (which means I've grabbed the latest 1.1 snapshot and it's all good again) Thank you Richard On Tue, Aug 25, 2009 at 9:55 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: I think I've fixed my bone-headed attempt to fix another

[Lift] Re: simple question about a login form

2009-08-26 Thread Viktor Klang
On Wed, Aug 26, 2009 at 5:42 AM, jack jack.wid...@gmail.com wrote: I have a template with username and password fields. I want to submit to another page where I will, among other things, encrypt the password. But I don't want to show the password in the querystring before I encrypt it.

[Lift] Re: 1.1-SNAPSHOT broken in Google App Engine

2009-08-26 Thread Atsuhiko Yamanaka
Hi, On Mon, Aug 17, 2009 at 9:18 AM, Mark Tyemark...@gmail.com wrote: ... I don't know if compatibility with App Engine is a priority for the Lift team, but if this doesn't get fixed, I face an ugly choice between remaining frozen at 1.1-M4 as Lift development moves forward, or migrating

[Lift] Re: CSS Override

2009-08-26 Thread marius d.
I'll take a look and get back to you. A resource is eventually read using container's provided API (from the ServletContext.getResourceXXX functions). The container first locates a resource from WEB-INF/ classes folder and then it looks up in the jar files. Br's, Marius On Aug 26, 8:39 am,

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Ilya Sergey
Hello. Normally, there must be no problems, if you point to the existing pom.xml file as a project file (File - New Project etc.). All libraries should be fetched form the repository automatically. What build of IDEA do you use? Cheers, Ilya 2009/8/26 Dorinel dorinel.munte...@gmail.com I've

[Lift] Codebase Organization...

2009-08-26 Thread Timothy Perrett
Chaps, Any objections to me renaming sites to examples? Moreover, I want to move some of these so called examples to be archetypes as it strikes me that they are better starting points than anything else (e.g. HTTP Auth, PayPal etc) Thoughts? Cheers, Tim

[Lift] Re: net.liftweb.mapper.PreCache doesn't work well as my expect

2009-08-26 Thread koji
Thank you David, I found that I'm using lift-1.0. After i changed to 1.1 snapshot, it works well now. thanks On Aug 26, 5:32 am, David Pollak feeder.of.the.be...@gmail.com wrote: PreCache works as expected. Here's the data model: class RoomChoice extends LongKeyedMapper[RoomChoice] with

[Lift] Tomcat css access problem

2009-08-26 Thread Yousry Abdallah
Hi, I'm working with 1.1 snapshot (latest) and have the following problem with a local css reference: If I deploy my webapp under derby the resulting html output looks fine: link media=screen rel=stylesheet type=text/css href=/KungleNext-0.1-SNAPSHOT/css/kungleNext.css / The same

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Indrajit Raychaudhuri
I have found generating IDEA project (*.ipr) and module (*.iml) files with mvn idea:idea to be more consistent. It would take care of downloading the required jars. You can then proceed and open the project with IDEA. Newer versions might ask if you want to move to new project format which you

[Lift] Re: Codebase Organization...

2009-08-26 Thread Timothy Perrett
To clarify, only some of the examples will become archetypes... Not all. On 26/08/2009 10:39, Timothy Perrett timo...@getintheloop.eu wrote: Chaps, Any objections to me renaming sites to examples? Moreover, I want to move some of these so called examples to be archetypes as it

[Lift] Re: Regarding my question about not showing the password in the querystring.

2009-08-26 Thread Jeppe Nejsum Madsen
jack jack.wid...@gmail.com writes: Of course I could use a POST instead of a GET but my question was really about how to process a form value in a snippet, before the form is submitted. This way I can encrypt the password before it is sent in the body of the post, over the wire. Snippets

[Lift] Re: Tomcat css access problem

2009-08-26 Thread Jefken De Vleesetenden Boterham
Hi, I'm assuming you mean deploying under jetty and tomcat. I only know derby to be a database. How exactly do you deploy under jetty and tomcat? Personally, I use jetty for testing and deploy with mvn jetty:run, while I use tomcat on the test and production servers in which case I just drop

[Lift] Re: Codebase Organization...

2009-08-26 Thread marius d.
renaming sites to examples would probably be more obvious for people. So fine by me. About archetypes thingy that's an interesting idea. I like it. Br's, Marius On Aug 26, 12:39 pm, Timothy Perrett timo...@getintheloop.eu wrote: Chaps, Any objections to me renaming sites to examples?

[Lift] Lift transactions

2009-08-26 Thread Jeppe Nejsum Madsen
Hi, I'm using POJT (plain old JDBC transactions :-) with a single db. I would like to: 1) Manually rollback changes if some validations fail 2) Have the tx rolled back if an error happens I think 1) can be achieved by DB.rollback(DefaultConnectionIdentifier), but in general, how do I get the

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Dorinel
Hi, Ilya, Thank you for quick answer. Yesterday I've upgraded to 8.1.3 yesterday and had the same problem. I'm running under ubuntu 8.10 and had to manually add mvn path to be able to compile things with maven from idea, but the libraries are still not in the project classpath, so the syntax

[Lift] Re: Codebase Organization...

2009-08-26 Thread Indrajit Raychaudhuri
Tim, sites to examples, certainly. For consistency lift-examples could be better. Some examples becoming archetype is great idea. Cheers, Indrajit On Aug 26, 2:59 pm, Timothy Perrett timo...@getintheloop.eu wrote: To clarify, only some of the examples will become archetypes... Not all. On

[Lift] Re: Tomcat css access problem (SOLVED)

2009-08-26 Thread Yousry Abdallah
Hi, another rtfm case. Adding a CSSHelper to Boot.scala resolves the problem: LiftRules.fixCSS(css :: kungleNext :: Nil, Empty) Thanks, Yousry On 26 Aug., 12:46, Jefken De Vleesetenden Boterham cultoftheholysquir...@gmail.com wrote: Hi, I'm assuming you mean deploying under jetty and

[Lift] Re: Tomcat css access problem

2009-08-26 Thread Yousry Abdallah
Hi, you are absolutely right. I use mvn jetty:run in my development environment to test the application. Than I build a package with mvn package and copy it to the tomcat webapp directory. Thank you, Yousry On 26 Aug., 12:46, Jefken De Vleesetenden Boterham cultoftheholysquir...@gmail.com

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Dorinel
I've found the problem. I was running IDEA under root user (I needed to debug an application on port allowed only to root some time ago, and since then the start up script of idea was running under root user) When I switched to normal user it was able to import pom.xml file. Hope this help you to

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Michel Klijn
Hi Dorinel, I had the same problem with Intellj 8.1.3 on mac osx. In my case even though i had the Maven plugin installed, it wasn't configured yet for some reason it never ask me to configure it. As it turns out, the Maven settings are project specific. Configure them like this: File - Template

[Lift] Re: Regarding my question about not showing the password in the querystring.

2009-08-26 Thread Jack Widman
Thanks Jeppe. I wasn't realizing that since it has to be done on the server, there's a chicken and egg problem with respect to getting it there encrypted. I just wasn't thinking. I will use a post. On Wed, Aug 26, 2009 at 6:45 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: jack

[Lift] Re: JetBrains IntelliJ IDEA integration

2009-08-26 Thread Ilya Sergey
Hi, Dorinel. Current Scala support in IDEA 9 is targeted to Scala 2.8 whereas lift uses Scala 2.7, so it would be better to stick with IDEA 8 for a while. There are several ways to adjust your project. 1. Create new project from an existing pom.xml file which seems to be not working for you. 2.

[Lift] Re: Codebase Organization...

2009-08-26 Thread Timothy Perrett
So it sounds like people like this - I'll get onto it later hopefully :-) Cheers, Tim On Aug 26, 12:44 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: Tim, sites to examples, certainly. For consistency lift-examples could be better. Some examples becoming archetype is great idea.

[Lift] Re: Codebase Organization...

2009-08-26 Thread David Pollak
+1 on re-org No opinion on naming +1 on archetypes On Wed, Aug 26, 2009 at 2:39 AM, Timothy Perrett timo...@getintheloop.euwrote: Chaps, Any objections to me renaming sites to examples? Moreover, I want to move some of these so called examples to be archetypes as it strikes me that they

[Lift] Re: Codebase Organization...

2009-08-26 Thread Naftoli Gugenheim
If you want to compromise you can call it example-sites if it's not too verbose... - David Pollakfeeder.of.the.be...@gmail.com wrote: +1 on re-org No opinion on naming +1 on archetypes On Wed, Aug 26, 2009 at 2:39 AM, Timothy Perrett

[Lift] Re: XHTML gotchas

2009-08-26 Thread Timothy Perrett
Looks right to me - what w3c validation did you have in mind? On 26/08/2009 16:20, David Pollak feeder.of.the.be...@gmail.com wrote: Is this right?  Is it worthwhile to add W3C validation when these constructs are allowed by browsers? --~--~-~--~~~---~--~~

[Lift] Re: XHTML gotchas

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 9:35 AM, Timothy Perrett timo...@getintheloop.euwrote: Looks right to me - what w3c validation did you have in mind? Validating against the XHTML XSD (Strict or Transitional) On 26/08/2009 16:20, David Pollak feeder.of.the.be...@gmail.com wrote: Is this right?

[Lift] Re: XHTML gotchas

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 9:12 AM, Peter Robinett pe...@bubblefoundry.comwrote: Would it be too complicated to let the developer choose (perhaps in Boot.scala) whether they want a strict mode? Even transitional mode has these restrictions Peter Robinett On Aug 26, 8:20 am, David Pollak

[Lift] Re: XHTML gotchas

2009-08-26 Thread Indrajit Raychaudhuri
It should be invalid for span/ in any mode of XHTML (strict, transitional) or HTML4 whatever you choose. span/ is an inline element that was never meant to support a block level element (form/, div/ etc.) Browsers nowadays are very smart to render anything you throw at it gracefully but that

[Lift] Re: XHTML gotchas

2009-08-26 Thread Timothy Perrett
Right, and even if this were the case we already provide a mechanism for users to set the output DocType so one could just read that and change validation mode or whatever. Validation sounds like a good idea to me. Regarding templates i've also been meaning to make a XSLT that smashes together

[Lift] Re: XHTML gotchas

2009-08-26 Thread Heiko Seeberger
+1 for W3C validations: I feel more comfortable with valid code than with invalid which somehow runs on (some) browsers. Heiko 2009/8/26 David Pollak feeder.of.the.be...@gmail.com Folks, I've been working on the XHTML validation stuff for Lift. Basically, you can, in dev mode, turn on

[Lift] Re: Modularization of Lift code

2009-08-26 Thread glenn
Timothy, I'm still not convinced that Lift applications can be modularized as simply as you suggest. Do you have any samples of your MyLib.init? How do you handle the non- PF's, like schemify and setSiteMap? As for templates, I've learned that you can use the templating mechanism in Loc to

[Lift] Lift Record Documentation

2009-08-26 Thread inca
Is there any documentation available for Lift Record Framework? From liftbook: The Record framework is relatively new to Lift. The plan is to move to Record as the primary ORM framework for Lift sometime after version 1.0. Is it the primary ORM now?

[Lift] how to ajaxInvoke on page load?

2009-08-26 Thread harryh
def someFunc(): JsCmd = { // some JsCmd } I want to run this on page load. This is close, but not quite right: {Script(OnLoad(ajaxInvoke(someFunc _)))} -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Modularization of Lift code

2009-08-26 Thread Timothy Perrett
Hey Glenn, I actually don't use those features in my libs... For reasons I wont go into that's just not what my kind of work involves... So I cant really comment from experience im afraid. Cheers, Tim On 26/08/2009 18:13, glenn gl...@exmbly.com wrote: Timothy, I'm still not convinced

[Lift] Re: Tomcat css access problem

2009-08-26 Thread Jefken De Vleesetenden Boterham
Hi, Then I guess my next question is: how do you define where your css is located? I have a function that gives the location of my css in the following way: def css = link href={ S.hostAndPath+/+scripts/cd.css} rel=stylesheet type=text/css/ You shouldn't need the S.hostAndPath+/ part unless

[Lift] Re: Modularization of Lift code

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 10:13 AM, glenn gl...@exmbly.com wrote: Timothy, I'm still not convinced that Lift applications can be modularized as simply as you suggest. Do you have any samples of your MyLib.init? How do you handle the non- PF's, like schemify and setSiteMap? I typically

[Lift] Re: Mapper and Primary Keys

2009-08-26 Thread Peter Robinett
Just to follow up on this, using CRUDify's edit page to update a model entry using this primary key causes this exception to be thrown. Is there any way to give Mapper and/or CRUDify a clue that it should update the existing entry, not try to create a new one? Thanks, Peter On Jul 30, 10:47 am,

[Lift] Re: Lift Record Documentation

2009-08-26 Thread Timothy Perrett
Its not the primary ORM at the moment. Although, its developing, and its still simply awesome if you are not using JDBC storage. If you just need regular JDBC style connectivity, then use Mapper for now. Cheers, Tim On 26/08/2009 19:01, inca incarn...@whiteants.net wrote: Is there any

[Lift] Re: how to ajaxInvoke on page load?

2009-08-26 Thread harryh
Answering my own question: val (name, exp) = ajaxInvoke(() = { SetHtml(id, xhtml) }) {Script(OnLoad(exp.cmd))} AFAIK I can just ignore name? -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To

[Lift] Something you might find useful: easy lazy loading of page sections

2009-08-26 Thread harryh
Let's say you have a bit of a page like so: lift:SomeSnippet.section foo:name/ lift:SomeSnippet.section Now, let's assume that computing whatever is bound to foo:name/ takes a long time (maybe it takes a network call, or a long database query, or whatever). You don't want to hold up your

[Lift] Bug in MappedEmail: emailPattern is wrong

2009-08-26 Thread harryh
It doesn't allow for + in the name part of the e-mail (harryh +l...@gmail.com). Can one of the lift commiters fix this? It's a one character change. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-26 Thread harryh
What's the change to the RegEx? val emailPattern = Pattern.compile(^[a-z0-9._%-+]+@(?:[a-z0-9-]+\\.)+ [a-z]{2,4}$) note the addition of the + to the allowed characters before the @ -harryh --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 3:15 PM, harryh har...@gmail.com wrote: It doesn't allow for + in the name part of the e-mail (harryh +l...@gmail.com). Can one of the lift commiters fix this? It's a one character change. What's the change to the RegEx? -harryh -- Lift, the simply

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-26 Thread David Pollak
Thanks. Changed and pushed to GitHub. Allow 2 hours for Maven availability. On Wed, Aug 26, 2009 at 4:15 PM, harryh har...@gmail.com wrote: What's the change to the RegEx? val emailPattern = Pattern.compile(^[a-z0-9._%-+]+@(?:[a-z0-9-]+\\.)+ [a-z]{2,4}$) note the addition of the + to

[Lift] Best WYSIWYG editor for Lift application

2009-08-26 Thread Dorinel
What is the best (and simplest) WYSIWYG editor for Lift application? For now I just need to be able to add images to textarea, so that a user will see it's text relative to images before submitting it. It seems than TinyMCE is suitable for this, but I don't know, may be there is a better

[Lift] Re: XHTML Validation and revised page re-writing

2009-08-26 Thread Justin Reardon
After updating, attempting to load any page results in the error message below. Given the message, I'm guessing this isn't the fault of my own code? Turning off validation as recommended causes the page to load normally again. The error: Exception occured while processing /index Message:

[Lift] model type mismatch compile problem

2009-08-26 Thread Grant Wood
This is more a scala question I guess, so I apologize, but I thought someone here may have run into this before working with their own model objects. I have a trait, Posts, in the same file as my Post class and object. I've now abstracted some boilerplate code into a new trait, FormHelper, which

[Lift] 1.1-SNAPSHOT issue?

2009-08-26 Thread E. Biggs
Hi there, I just did a mvn -U jetty:run and my site that I know was working fine before is now broken with this error displayed in the browser for any url: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.w3.org/2002/08/xhtml/xhtml1-

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-26 Thread Justin Reardon
Probably caused by this if you're in a dev environment: http://groups.google.com/group/liftweb/t/90750187a6c29c2c On Aug 26, 9:36 pm, E. Biggs tacoban...@gmail.com wrote: Hi there, I just did a mvn -U jetty:run and my site that I know was working fine before is now broken with this error

[Lift] Re: XHTML Validation and revised page re-writing

2009-08-26 Thread David Pollak
I've just pushed a new version live that will behave more gracefully if the xsd cannot be loaded. On Wed, Aug 26, 2009 at 5:17 PM, Justin Reardon justin.rear...@gmail.comwrote: After updating, attempting to load any page results in the error message below. Given the message, I'm guessing this

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-26 Thread David Pollak
I've just pushed a new version live that will behave more gracefully if the xsd cannot be loaded. On Wed, Aug 26, 2009 at 7:39 PM, Justin Reardon justin.rear...@gmail.comwrote: Probably caused by this if you're in a dev environment: http://groups.google.com/group/liftweb/t/90750187a6c29c2c

[Lift] Ext.Direct

2009-08-26 Thread Naftoli Gugenheim
Has anyone used lift with Ext.JS forms/Ext.Direct? P.S. It would be neat if it could interact with Lift's JSON support. I wonder what it would take. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-26 Thread E. Biggs
Thanks David! My pages now render - although broken... the cause appears to be a failed head merge between my template's head and the surrounding template's head. On Aug 26, 7:51 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I've just pushed a new version live that will behave more

[Lift] Re: problem when use ajaxButton

2009-08-26 Thread Lance Zheng
fixed. because image name have '.' character, which is not allowed, so select by id cant get the element. On Aug 27, 5:41 am, Lance Zheng lanc...@gmail.com wrote: hi, please help me, I can't find the reason, the code on gisthttp://gist.github.com/175858 def remove(img:String)={            

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 8:32 PM, E. Biggs tacoban...@gmail.com wrote: Thanks David! My pages now render - although broken... the cause appears to be a failed head merge between my template's head and the surrounding template's head. Can you post an example of the failing use case and I'll

[Lift] Re: problem when use ajaxButton

2009-08-26 Thread David Pollak
On Wed, Aug 26, 2009 at 9:06 PM, Lance Zheng lanc...@gmail.com wrote: fixed. I love it when folks find answers to their own questions. Thanks for being part of the Lift community! because image name have '.' character, which is not allowed, so select by id cant get the element. On Aug

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-26 Thread David Pollak
This is nifty... I think it's worthy of inclusion in Lift. Thanks for the suggestion! On Wed, Aug 26, 2009 at 2:44 PM, harryh har...@gmail.com wrote: Let's say you have a bit of a page like so: lift:SomeSnippet.section foo:name/ lift:SomeSnippet.section Now, let's assume that computing

[Lift] SparkLines broken in 1.1-SNAPSHOT

2009-08-26 Thread jon
Hi, Looks like the JS is being double escaped. Changed following methods to fix: def onLoad(id: String, graphStyle: SparklineStyle.Value, data: JsArray, opts: JsObj) : NodeSeq = { head script type=text/javascript src={/ + LiftRules.resourceServerPath +

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-26 Thread Naftoli Gugenheim
Neat! Maybe a better name would be asyncLoad? - David Pollakfeeder.of.the.be...@gmail.com wrote: This is nifty... I think it's worthy of inclusion in Lift. Thanks for the suggestion! On Wed, Aug 26, 2009 at 2:44 PM, harryh har...@gmail.com wrote: Let's