[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Sun, May 31, 2009 at 7:05 PM, Timothy Perrett timo...@getintheloop.euwrote: Now you mention it though, it might well work quite nicely. Talk to me Viktor - what are you thinking? Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible?

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread marius d.
On Jun 1, 2:59 am, Xavi Ramirez xavi@gmail.com wrote: Thanks for pointing me into the right direction.  I've created a simple example (see attachment).  In my example, the user can drag a div around the screen.  Every time the div moves, the browser sends a json object with the x and y

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread marius d.
Sorry hit send too soon ... continuation below On Jun 1, 10:42 am, marius d. marius.dan...@gmail.com wrote: On Jun 1, 2:59 am, Xavi Ramirez xavi@gmail.com wrote: Thanks for pointing me into the right direction.  I've created a simple example (see attachment).  In my example, the user

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible? Your thinking just have an XSLT just for preview purposes? That would be pretty sweet. Perhaps we can do something with this:

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 11:05 AM, Timothy Perrett timo...@getintheloop.euwrote: Just create an XSLT template to convert the lift templates to a a more readable form? Should be possible? Your thinking just have an XSLT just for preview purposes? That would be pretty sweet. Yes, my

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Don't worry I'm just being slow as per normal viktor! Do you want to try setting this up or shall I? Cheers, Tim Sent from my iPhone On 1 Jun 2009, at 10:52, Viktor Klang viktor.kl...@gmail.com wrote: On Mon, Jun 1, 2009 at 11:05 AM, Timothy Perrett timo...@getintheloop.eu wrote:

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 12:15 PM, Timothy Perrett timo...@getintheloop.euwrote: Don't worry I'm just being slow as per normal viktor! Do you want to try setting this up or shall I? Make a draft and we'll help eachother out :) Cheers, Tim Sent from my iPhone On 1 Jun 2009, at 10:52,

[Lift] Re: lift views

2009-06-01 Thread Timothy Perrett
Make a draft and we'll help eachother out :) Ok will do - perhaps try mocking this up later in the week. Any thoughts in and around this otherwise? Must haves vs nice to have? Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Record and Field

2009-06-01 Thread marius d.
what Java version are you using? On Jun 1, 1:58 pm, Oliver Lambert olambo...@gmail.com wrote: When I try to run createRecord on a net.liftweb.record.Record, I get a java.lang.ExceptionInInitializerError. Any ideas what I might be doing wrong? cheers Oliver

[Lift] Re: Record and Field

2009-06-01 Thread Oliver Lambert
Im not at the machine right now, but I believe it was a version of 1.6 on Ubuntu, I was running against the snapshot of liftweb that I cloned a couple of days ago. I've rerun On my mac, build 1.6.0_07-b06-153 but the exception with build 1.0 is different, java.lang.IllegalArgumentException:

[Lift] Prevent direct access to templates

2009-06-01 Thread feelgood
In my webapp directory I have template called login_ru.xhtml. If I type http://localhost:8080/login; in my browser I see processed template. But if I type http://localhost:8080/login_ru.xhtml; I see not processed template. Why lift do not process template?

[Lift] Advice for rendering results from snippet

2009-06-01 Thread Ewan
I have a search page that contains a simple form with a single text field and submit button. On submit a search is performed using the value from the textfield as a param and the results are displayed. Easy so far except that I want to show the same page again i.e search.html with no results -

[Lift] Re: Prevent direct access to templates

2009-06-01 Thread marius d.
What do you have in your SiteMap? .. only login or both login and login_ru. Normally you should only have login and login_ru would be picked up automatically by lift depending on what Locale the LiftRules.localeCalculator returns. Br's, Marius On Jun 1, 9:52 am, feelgood asseliva...@gmail.com

[Lift] Re: Advice for rendering results from snippet

2009-06-01 Thread Ewan
ah ha moment. I switched to using a requestVar that contains my results list and instead of trying to bind the results to the same snippet I have a second snippet in the same page (same src file but diff function) that is able to access the requestVar of results and bind the values to the tags.

[Lift] Re: Prevent direct access to templates

2009-06-01 Thread feelgood
SiteMap contains login only. On 1 июн, 19:21, marius d. marius.dan...@gmail.com wrote: What do you have in your SiteMap? .. only login or both login and login_ru. Normally you should only have login and login_ru would be picked up automatically by lift depending on what Locale the

[Lift] Newbie question: Templates cached?

2009-06-01 Thread Jesse Eichar
Hi, To my surprise when I changed the css in the default.html in hidden templates I had to restart jetty. Is this expected? Normal? can it be turned off? Thanks, Jesse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Newbie question: Templates cached?

2009-06-01 Thread David Pollak
Templates are cached when running in production mode. Templates should not be cached in development (default) mode. What version of Lift are you using? On Mon, Jun 1, 2009 at 8:01 AM, Jesse Eichar jesse.eic...@camptocamp.comwrote: Hi, To my surprise when I changed the css in the

[Lift] Re: Prevent direct access to templates

2009-06-01 Thread David Pollak
In Boot.scala: LiftRules.passNotFoundToChain = false If this is set to true and Lift cannot process a page, it passes the request on to the Servlet chain which will serve the xhtml file. 2009/6/1 feelgood asseliva...@gmail.com SiteMap contains login only. On 1 июн, 19:21, marius d.

[Lift] Re: Snippet name clashes

2009-06-01 Thread feelgood
What is about: lift:path.Snippet.action / Where there is following exclusive cases for path: 1 path is a relative path from one of the packages denoted by LiftRules.addToPackages to a Snippet class 2 path is a path from the _root_ to the Snippet class. And the Lift can sequentially try each

[Lift] Data model graph

2009-06-01 Thread Charles F. Munat
Anyone know of an easy way to graph the data model of a JPA Lift app? I'm guessing there might be a way to do it with Eclipse or NetBeans. Chas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: Lift does not display templates as described in the book.

2009-06-01 Thread David Pollak
On Sat, May 30, 2009 at 3:01 PM, Sean Reque seanre...@gmail.com wrote: Concrete examples are a great teaching tool, but unless you eventually teach the concepts behind the examples, your students are incapable of applying their knowledge to do anything beyond what they can glean from the

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Charles F. Munat
Hi, Derek, There are definitely some bugs since the move to 2.7.4. I mentioned the missing templates-hidden folder for one of the archetypes (basic, I think). It's missing for the other as well (blank?). I was able to get a blank one up and running and things seem to be going smoothly, but

[Lift] Could Lift have been implemented in another language?

2009-06-01 Thread Mark Lynn
This question is not intended to be inflammatory in any way. I have been developing web applications in Ruby on Rails for the last two years, and have recently been exploring Scala and Lift because of a growing dissatisfaction with Rails. I very much enjoy Ruby and appreciate the

[Lift] Re: Could Lift have been implemented in another language?

2009-06-01 Thread David Pollak
On Mon, Jun 1, 2009 at 8:47 AM, Mark Lynn m...@sabado.com wrote: This question is not intended to be inflammatory in any way. I have been developing web applications in Ruby on Rails for the last two years, and have recently been exploring Scala and Lift because of a growing dissatisfaction

[Lift] Re: Strange behavior of RequestVar

2009-06-01 Thread Derek Chen-Becker
Actually, based on my experience the first one shouldn't work and the second one should, because in the first one, oVar.is is called within the context of of the submit request, not the bind request. Derek On Sun, May 31, 2009 at 11:18 AM, feelgood asseliva...@gmail.com wrote: Compare two

[Lift] Re: Strange behavior of RequestVar

2009-06-01 Thread Derek Chen-Becker
Sorry, to clarify, the function () = processAdd(oVar.is) will not capture the current value of oVar. Rather, the oVar.is call is made when the submit function is called. Derek On Mon, Jun 1, 2009 at 10:51 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Actually, based on my experience the

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Derek Chen-Becker
The templates-hidden folder should be checked in already. I thought I fixed that last week. I'll work on the other bugs today. Derek On Sun, May 31, 2009 at 11:26 PM, Charles F. Munat c...@munat.com wrote: Hi, Derek, There are definitely some bugs since the move to 2.7.4. I mentioned the

[Lift] Re: lift views

2009-06-01 Thread Viktor Klang
On Mon, Jun 1, 2009 at 1:53 PM, Timothy Perrett timo...@getintheloop.euwrote: Make a draft and we'll help eachother out :) Ok will do - perhaps try mocking this up later in the week. Any thoughts in and around this otherwise? Must haves vs nice to have? Hmmm, perhaps we should start with

[Lift] Re: Could Lift have been implemented in another language?

2009-06-01 Thread Mark Lynn
Thanks David. Your response was thoughtful and thorough which was exactly what I was hoping for. I did not want to start a language war. I have read good chunks of your Scala book and also Programming in Scala. I really like the language so far - just struggling to get it all through my

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Derek Chen-Becker
Hmm. I just blew away my maven repo and tried the original command you used: mvn archetype:generate \ -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-jpa-basic \ -DarchetypeVersion=1.1-SNAPSHOT \

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Charles F. Munat
The templates-hidden folder was there with one archetype (basic) but not with the other (blank) when I ran them. But that was a few days ago. Chas. Derek Chen-Becker wrote: The templates-hidden folder should be checked in already. I thought I fixed that last week. I'll work on the other

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Derek Chen-Becker
Strange. I committed these back on the 26th: http://github.com/dpp/liftweb/commit/647f281e720720f09e3d6a5105ecb273cc0b592e Not sure where you're getting the stale archetypes from. As for the other issue with the enum, are you still seeing that? I can't reproduce it. Derek On Mon, Jun 1, 2009

[Lift] Re: Continued problems with JPA archetypes

2009-06-01 Thread Charles F. Munat
I think everything is working now. I blew away .m2 several times and retried things. When I used the blank archetype (and copied the templates-hidden file over from the basic), it worked fine. Maybe a server was down somewhere. If it's working for you, then it's probably OK now. Thanks for

[Lift] Future of the Lift wiki

2009-06-01 Thread Xavi Ramirez
Hello, I'm a bit confused about the future of the lift wiki. What's the end goal? In an ideal world is it supposed to be the main repository of lift knowledge, or just another documentation source? I personally feel that having one repository of knowledge is much more noob friendly.

[Lift] Maven lift-archetype-basic error

2009-06-01 Thread glenn
The 0.0.1-SNAPSHOT version of the lift-archetype-basic generates a default.html template with lift-tag:bind name=content /, which generate the following error: XML Parsing Error: prefix not bound to a namespace Changing the tab to lift:bind name=content/ eliminates this problem. Glenn...

[Lift] Re: Ideas for an ordered list in a form

2009-06-01 Thread Derek Chen-Becker
I found this jQuery plugin that I think actually works much better than a simple palette control: http://plugins.jquery.com/project/asmselect There's an accompanying article that has a nice demo of it: http://www.ryancramer.com/journal/entries/select_multiple/ I'm going to see about making a

[Lift] Re: Future of the Lift wiki

2009-06-01 Thread Charles F. Munat
Hi, Xavi, One of my tasks is to come up with a good organization for the wiki and a site map, as well as a list of things we'd like to add to it. Unfortunately, with the coming Scala/Liftoff and OSB conferences, I've been swamped with other things. But I am working on it, albeit slowly. If

[Lift] Re: Future of the Lift wiki

2009-06-01 Thread Joe Wass
I agree that the wiki needs a clear remit. I have found it very useful for learning (especially the cheat sheet). But the first thing I ever did with lift (which was only last week) was firstly to read the 'getting started' document but secondly to RTFS (only some of it!), in particular Mapper.

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread Xavi Ramirez
Ahh thanks. I forget to wrap my script with ![CDATA[]]. Also, thanks for the working example. =] Adding the session variable did fix the echoing issue I was seeing, for the most part. As for my second problem, I still saw performance issues even when using a chrome/firefox combination. I've

[Lift] Re: Future of the Lift wiki

2009-06-01 Thread g-man
Having gone through Rails, the Google App Engine with Django, and web2py over the last four years, I have seen it all as far as learning new frameworks goes, and I have posted a few ideas on that subject both here and on the book group. For those of us spoiled by the wealth of learning material

[Lift] Re: Newbie question: Templates cached?

2009-06-01 Thread David Pollak
If you're running from SBT, it's likely that SBT builds a WAR file and runs it (I'm just guessing here.) When you do an mvn jetty:run, you can change the templates, hit reload and all works just fine. On Mon, Jun 1, 2009 at 11:08 AM, Jesse Eichar jesse.eic...@camptocamp.comwrote: I am using

[Lift] Re: Record with the new bind-immutable

2009-06-01 Thread Oliver Lambert
On Sat, May 30, 2009 at 2:05 AM, marius d. marius.dan...@gmail.com wrote: On May 29, 4:32 pm, Oliver Lambert olambo...@gmail.com wrote: Hi Marius, To try and answer your question, I had to go and look at the Record code in more detail. I hadn't recently written the Binder Validator, so