[Lift] Re: lift views

2009-05-31 Thread Charles F. Munat
Yoryos, You probably missed the part where you can add a head element inside the surround tags and it will replace the default element: lift:surround with=default2 at=content head titleA better title than the one in default.html/title /head h2Welcome to your project!/h2

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

2009-05-31 Thread Charles F. Munat
Try posting your conceptual questions to the list. Maybe folks here can help, and once we understand what you need, we can look into providing some documentation to support it. No book can fill all needs. Lots of people just want clear examples and can go from there. The Lift book addresses

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread Charles F. Munat
Nope, it's in there. Thanks. 刘浩 wrote: I think you need to add snapshots repository in your pom.xml repositories repository idscala-tools.org http://scala-tools.org/id nameScala-Tools Maven2 Repository/name urlhttp://scala-tools.org/repo-releases/url

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread Charles F. Munat
Nope. Now it just can't find the lift-jpa jar. Thanks. Chas. Atsuhiko Yamanaka wrote: Hi, On Sun, May 31, 2009 at 9:37 AM, c...@munat.com wrote: Missing: -- 1) org.scala-libs:scalajpa:jar:1.1-SNAPSHOT Instead of the artifactId for scalajpa, I think that problem will be

[Lift] Re: JavaScript interface to Comet

2009-05-31 Thread marius d.
Yes looks like this is exactly what you would need. Please see partialUpdate from CometActor. As an example you can see sites/example/ src/main/scala/net/liftweb/example/comet/Clock.scala. partialUPdate function returns a JsCmd but there are of course implicit conversions between JsExp and JsCmd.

[Lift] Re: Showing a Box or Redirecting?

2009-05-31 Thread marius d.
class SomeSnippet { val foo: Box[Foo] = tryo(session1.get(S.param(id).getOrElse ())) // But I think with this code you'll always get a Full Box due to getOrElse ? def render(func: foo = NodeSeq) = foo.map(l = func(l)) openOr (your code in case foo is empty and potentially return

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

2009-05-31 Thread marius d.
A couple of years ago I did the same thing with drag and drop ... but I wrote the JS code, and for some reason I didn't really look for an existent solution :) ... I think I still have the damn thing and if you want to I could send it to you. On May 31, 3:01 am, Derek Chen-Becker

[Lift] Re: lift views

2009-05-31 Thread marius d.
Agreed with Tim. I also don't see any value. And the point of viewing the template statically is not an argument to me because the template is still incomplete for a proper rendering, xhtml browser would probably complain about prefixes it doesn't know about etc. Br's, Marius On May 31, 5:32 

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread 刘浩
I just checked repository. I think no 1.1-SNAPSHOT for scalajpa. Only 1.0-SNAPSHOT their. That should be the problem. 2009/5/31 Charles F. Munat c...@munat.com Nope. Now it just can't find the lift-jpa jar. Thanks. Chas. Atsuhiko Yamanaka wrote: Hi, On Sun, May 31, 2009 at 9:37 AM,

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread 刘浩
And also a thread scalajpa 1.1 you could follow. http://groups.google.com/group/liftweb/browse_thread/thread/3dc4c71216a24e6c?pli=1 2009/5/31 刘浩 sniperliu...@gmail.com I just checked repository. I think no 1.1-SNAPSHOT for scalajpa. Only 1.0-SNAPSHOT their. That should be the problem.

[Lift] Re: lift views

2009-05-31 Thread Timothy Perrett
Now you mention it though, it might well work quite nicely. Talk to me Viktor - what are you thinking? Cheers, Tim On 31/05/2009 14:10, Viktor Klang viktor.kl...@gmail.com wrote: Couldn't they just define an XSLT template to view the lift templates with?

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread Charles F. Munat
That helped. Thanks. 刘浩 wrote: And also a thread scalajpa 1.1 you could follow. http://groups.google.com/group/liftweb/browse_thread/thread/3dc4c71216a24e6c?pli=1 2009/5/31 刘浩 sniperliu...@gmail.com mailto:sniperliu...@gmail.com I just checked repository. I think no 1.1-SNAPSHOT

[Lift] Re: Vscaladoc not grokking new documentation

2009-05-31 Thread Derek Chen-Becker
No, because they're intended to be formatting for the Scaladoc. Note that I escape entities within the table that should be displayed. Derek On Sat, May 30, 2009 at 9:38 AM, Timothy Perrett timo...@getintheloop.euwrote: Just an off the wall shot, but do the entities have to be encoded? E.g.

[Lift] Re: Vscaladoc not grokking new documentation

2009-05-31 Thread Timothy Perrett
Try shooting David B a mail offline ­ he¹s the vscaladoc master Not sure that he watches the lift list too much these days. Having said that I¹ve not seen him on Gtalk for sometime so not sure what his movements are. Cheers, Tim On 31/05/2009 22:50, Derek Chen-Becker dchenbec...@gmail.com

[Lift] Re: Continued problems with JPA archetypes

2009-05-31 Thread Derek Chen-Becker
The velocity warnings are normal. What you're seeing may be a bug. I haven't tested the archetype since the change to 2.7.4, so it may be related. I'll test it out this week. Derek On Sat, May 30, 2009 at 6:38 PM, c...@munat.com wrote: I tried again, running this: mvn archetype:generate \

[Lift] Re: Where is scalajpa.jar?

2009-05-31 Thread Atsuhiko Yamanaka
Hi, On Sun, May 31, 2009 at 4:30 PM, Charles F. Munat c...@munat.com wrote: Nope. Now it just can't find the lift-jpa jar. Liftweb project recommends to use 'lift-jpa'. Refer to the content of its pom file[1]. scalajpa.jar 1.1 will be downloaded from

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

2009-05-31 Thread Derek Chen-Becker
If it's not too much trouble to find that would be great, but don't work too hard searching : Derek On Sun, May 31, 2009 at 2:59 AM, marius d. marius.dan...@gmail.com wrote: A couple of years ago I did the same thing with drag and drop ... but I wrote the JS code, and for some reason I

[Lift] Strange behavior of RequestVar

2009-05-31 Thread feelgood
Compare two cases. First: class SnippetName { object oVar extends RequestVar(O.create) def processAdd(o: O) { ... } def add(xml: NodeSeq): NodeSeq = { bind (f, xml, field - SHtml.text(oVar.is.field, oVar.is.field(_)), submit - SHtml.submit(Submit, () = processAdd(oVar.is)

[Lift] Re: lift views

2009-05-31 Thread Yoryos
No! I didn't missed that part. Like Xavi said the benefit is a valid html page. It would be much more intresting having something like html xmlns=http://www.w3.org/1999/xhtml; xmlns:lift=http:// liftweb.net/ head!-- I don't not if it's valid to just not even have a head tag when we don't want to

[Lift] date management

2009-05-31 Thread g-man
As I proceed to enhance the ToDo example, I have added a new field to the ToDo.scala model: object dueOn extends MappedDateTime(this) { final val dateFormat = DateFormat.getDateInstance (DateFormat.SHORT) override def asHtml = Text(dateFormat.format(is))} Next, I added a binding in the

[Lift] Re: lift views

2009-05-31 Thread David Pollak
Folks, There's nothing that Lift does magically with lift:surround/ or lift:embed/ They just replace XML nodes. If you want to structure your apps to not have surround or embed, that's fine. If you want to surround or embed at different points in your files, totally cool. Do it however you

[Lift] Re: Showing a Box or Redirecting?

2009-05-31 Thread David Pollak
class SomeSnippet { implicit def boxOpener(in: Box[NodeSeq]): NodeSeq = in openOr {S.error(Inactive); S.redirectTo(S.referer openOr /)} def showA(xhtml: NodeSeq): NodeSeq = for { id - S.param(id) info - session1.get(id) } yield bind(foo, xhtml, thing - info.x) } The implicit