[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Mateusz Fiołka
As far as I remember David said once, that Mapper will be anyway a part of
Lift and it will be not deprecated.

Regards,
Mateusz

On Thu, Mar 19, 2009 at 8:31 PM, Alex a...@liivid.com wrote:


 I have been looking through Lift documents trying to figure out what
 to do about an ORM for my first Lift app.  The migration from Mapper
 to Record also adds uncertainty.  I don't really want to commit to an
 ORM that will be deprecated in 2 months.  Is there somewhere I can
 read about the design goals, migration path, and development status of
 Record?


 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] JPA inheritance

2009-03-20 Thread Charles F. Munat

I have a BaseEvent object from which various other events (e.g. Seminar) 
inherit. I want to pull them all out in a query, so they come out as 
BaseEvents. But then as I'm looping through them, I want to find out 
what type of event they really are. There is an event_type column in 
the database, but I don't know how to get at that.

Anyone know offhand how to get the class of the objects? This is in Lift 
with JPA/Hibernate.

Thanks,
Chas.

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread Viktor Klang
Guys,

I might only have 8 years of experience with working with the Servlet-stack,
but the main reason that Lift is hooked into a Filter is that Lift filters
requests... ;)

Hooking it in as a Servlet would only be feasible if we'd have a two-pass
system where:

The request first goes through the Filter, to do rewriting and see if it's a
Lift-request, then do a dispatch to a LiftServlet and let the lift servlet
do the actual delivery of the payload, else just passing the request through
the FilterChain

What do you think?

Cheers,
Viktor

On Fri, Mar 20, 2009 at 12:16 AM, Chad Skinner chadwskin...@gmail.comwrote:



 On Thu, Mar 19, 2009 at 5:44 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Chad,
 What would be most helpful is if you could mock up and example with
 servlets (written in Scala or Java).  If I have something that I can run and
 test, then I can figure out how to shim Lift into it.



 David, I'll try to mock something up when I get a little bit of time,
 however I don't know much about a lot of the services supported by Lift
 (Comet, being one) and so any example I come up with would be a little short
 sighted at best. Are you familiar with OSGi and would you be interested in
 discussing methods of implementing Lift as services? In the meantime I will
 start working on a couple of the simpler applications and getting the
 servlets working on OSGi.

 Also, I don't know much about the snippets, are the classes containing the
 snippets pooled or instantiated on a request basis or are they treated as
 singletons? The reason I ask is I am using Easybeans with JPA and would like
 to be able to inject the required EJB. If the snippets are singletons then
 this would not work otherwise I would need to know how to extend the factory
 to inject the EJB.

 Thanks Again,
 Chad

 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Lists in snippets / Snippet Failure

2009-03-20 Thread Thomas Rynne

I am trying to render a list of items using bind without success. I
have reduced it to a clean liftweb project with the following in
HelloWorld.scala

  def fruits(xhtml:NodeSeq) = {
  List(apple, orange, banana).flatMap(
   fruit = bind(f, xhtml, name - fruit)
  )
  }

And this in index.html
 lift:helloWorld.fruits
f:name/ br /
 /lift:helloWorld.fruits


The snippet is not rendered and I get this in the logs:
WARN - Snippet Failure: SnippetFailure(/ - ParsePath(List
(index),,true,false),Full(helloWorld.fruits),Method Not Found)

What am I missing? I assume there is a problem with the fruits method
signature. Do snippet methods havve to return NodeSeq?

thanks for any advice.
Thomas

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance

2009-03-20 Thread Charles F. Munat

Not really. What I want to do is have the object tell me what it is. 
Unless I'm really misunderstanding isInstanceOf, I have to iterate 
through all the possibilities. Plus, my brain is probably just fried, 
but I'm not seeing how to use it in a match, so I'm having to run 
through a bunch of if statements. I know there's a better way. Just 
can't see it at 3:45 AM.

Chas.

Viktor Klang wrote:
 
 
 On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com 
 mailto:c...@munat.com wrote:
 
 
 I have a BaseEvent object from which various other events (e.g. Seminar)
 inherit. I want to pull them all out in a query, so they come out as
 BaseEvents. But then as I'm looping through them, I want to find out
 what type of event they really are. There is an event_type column in
 the database, but I don't know how to get at that.
 
 
 Don't fancy isInstanceOf?
  
 
 
 
 Anyone know offhand how to get the class of the objects? This is in Lift
 with JPA/Hibernate.
 
 Thanks,
 Chas.
 
 
 
 
 
 -- 
 Viktor Klang
 Senior Systems Analyst
 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance... never mind

2009-03-20 Thread Charles F. Munat

OK, I really am tired...

How about this:

(b: BaseEvent) match {
   case b: Seminar = ...
   case b: Event = ...
   case _ = ...
}

Sigh...

Thanks anyway!

Chas.

Charles F. Munat wrote:
 Not really. What I want to do is have the object tell me what it is. 
 Unless I'm really misunderstanding isInstanceOf, I have to iterate 
 through all the possibilities. Plus, my brain is probably just fried, 
 but I'm not seeing how to use it in a match, so I'm having to run 
 through a bunch of if statements. I know there's a better way. Just 
 can't see it at 3:45 AM.
 
 Chas.
 
 Viktor Klang wrote:

 On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com 
 mailto:c...@munat.com wrote:


 I have a BaseEvent object from which various other events (e.g. Seminar)
 inherit. I want to pull them all out in a query, so they come out as
 BaseEvents. But then as I'm looping through them, I want to find out
 what type of event they really are. There is an event_type column in
 the database, but I don't know how to get at that.


 Don't fancy isInstanceOf?
  



 Anyone know offhand how to get the class of the objects? This is in Lift
 with JPA/Hibernate.

 Thanks,
 Chas.





 -- 
 Viktor Klang
 Senior Systems Analyst

 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance

2009-03-20 Thread Viktor Klang
On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com wrote:


 Not really. What I want to do is have the object tell me what it is.
 Unless I'm really misunderstanding isInstanceOf, I have to iterate
 through all the possibilities. Plus, my brain is probably just fried,
 but I'm not seeing how to use it in a match, so I'm having to run
 through a bunch of if statements. I know there's a better way. Just
 can't see it at 3:45 AM.


But you wrote: . But then as I'm looping through them, I want to find out
what type of event they really are.

so when you're looping through them, if you're doing pattern-matching you
could probably just:

case x : MySubEvent = blah(x)
case y : MyOtherSubEvent = blugh(y)
case _ = ohSnap()!





 Chas.

 Viktor Klang wrote:
 
 
  On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  I have a BaseEvent object from which various other events (e.g.
 Seminar)
  inherit. I want to pull them all out in a query, so they come out as
  BaseEvents. But then as I'm looping through them, I want to find out
  what type of event they really are. There is an event_type column
 in
  the database, but I don't know how to get at that.
 
 
  Don't fancy isInstanceOf?
 
 
 
 
  Anyone know offhand how to get the class of the objects? This is in
 Lift
  with JPA/Hibernate.
 
  Thanks,
  Chas.
 
 
 
 
 
  --
  Viktor Klang
  Senior Systems Analyst
 
  

 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance

2009-03-20 Thread Timothy Perrett
Chas,

If you want the object to tell you what it is can you not use some form of
reflection?

Tim 


On 20/03/2009 11:03, Viktor Klang viktor.kl...@gmail.com wrote:

 
 
 On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com wrote:
 
 Not really. What I want to do is have the object tell me what it is.
 Unless I'm really misunderstanding isInstanceOf, I have to iterate
 through all the possibilities. Plus, my brain is probably just fried,
 but I'm not seeing how to use it in a match, so I'm having to run
 through a bunch of if statements. I know there's a better way. Just
 can't see it at 3:45 AM.
 
 But you wrote: . But then as I'm looping through them, I want to find out
 what type of event they really are.
 
 so when you're looping through them, if you're doing pattern-matching you
 could probably just:
 
 case x : MySubEvent = blah(x)
 case y : MyOtherSubEvent = blugh(y)
 case _ = ohSnap()!
 
  
 
 
 Chas.
 
 Viktor Klang wrote:
 
 
  On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
      I have a BaseEvent object from which various other events (e.g.
 Seminar)
      inherit. I want to pull them all out in a query, so they come out as
      BaseEvents. But then as I'm looping through them, I want to find out
      what type of event they really are. There is an event_type column in
      the database, but I don't know how to get at that.
 
 
  Don't fancy isInstanceOf?
 
 
 
 
      Anyone know offhand how to get the class of the objects? This is in
 Lift
      with JPA/Hibernate.
 
      Thanks,
      Chas.
 
 
 
 
 
  --
  Viktor Klang
  Senior Systems Analyst
 
  
 
 
 
 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance... now it won't compile

2009-03-20 Thread Charles F. Munat

Viktor, I guess you didn't see my other never mind email as it went 
out about six minutes before you sent this. I arrived at the same 
conclusion. Duh.

But now I'm running out of heap space when I try to compile. I shut 
everything down, rebooted. Still breaks. I pulled out all the code I'd 
just added. Still breaks. Tried another app -- that works no problem.

What could I have done to make it run out of heap space on compile? 
Anyone else run into this? Nothing in the warnings seems to be of any 
use at all.

Chas.

[WARNING] Exception in thread main java.lang.OutOfMemoryError: Java 
heap space
[WARNING]   at scala.StringBuilder.init(StringBuilder.scala:33)
[WARNING]   at scala.StringBuilder.init(StringBuilder.scala:41)
[WARNING]   at scala.tools.nsc.symtab.Names$Name.decode(Names.scala:390)
[WARNING]   at 
scala.tools.nsc.symtab.Symbols$Symbol.nameString(Symbols.scala:1224)
[WARNING]   at 
scala.tools.nsc.symtab.Symbols$Symbol.toString(Symbols.scala:1261)
[WARNING]   at 
scala.tools.nsc.backend.icode.Members$Local.toString(Members.scala:305)
[WARNING]   at java.lang.String.valueOf(String.java:2615)
[WARNING]   at scala.StringBuilder.append(StringBuilder.scala:234)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.indexOf(GenJVM.scala:1526)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genBlock$1$1.apply(GenJVM.scala:914)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genBlock$1$1.apply(GenJVM.scala:866)
[WARNING]   at scala.Iterator$class.foreach(Iterator.scala:414)
[WARNING]   at 
scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45)
[WARNING]   at scala.Iterable$class.foreach(Iterable.scala:256)
[WARNING]   at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
[WARNING]   at 
scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock.foreach(BasicBlocks.scala:130)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genBlock$1(GenJVM.scala:866)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genBlocks$1(GenJVM.scala:789)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genCode(GenJVM.scala:1413)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:592)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$4.apply(GenJVM.scala:216)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$4.apply(GenJVM.scala:216)
[WARNING]   at scala.List.foreach(List.scala:834)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genClass(GenJVM.scala:216)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:55)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:55)
[WARNING]   at scala.Iterator$class.foreach(Iterator.scala:414)
[WARNING]   at scala.collection.Map$$anon$6.foreach(Map.scala:123)
[WARNING]   at 
scala.tools.nsc.backend.jvm.GenJVM$JvmPhase.run(GenJVM.scala:55)
[WARNING]   at 
scala.tools.nsc.Global$Run.compileSources(Global.scala:574)
[WARNING]   at scala.tools.nsc.Global$Run.compile(Global.scala:667)
[WARNING]   at scala.tools.nsc.Main$.process(Main.scala:73)
[INFO] 

[ERROR] BUILD FAILURE

Viktor Klang wrote:
 
 
 On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com 
 mailto:c...@munat.com wrote:
 
 
 Not really. What I want to do is have the object tell me what it is.
 Unless I'm really misunderstanding isInstanceOf, I have to iterate
 through all the possibilities. Plus, my brain is probably just fried,
 but I'm not seeing how to use it in a match, so I'm having to run
 through a bunch of if statements. I know there's a better way. Just
 can't see it at 3:45 AM.
 
 
 But you wrote: . But then as I'm looping through them, I want to find out
 what type of event they really are.
 
 so when you're looping through them, if you're doing pattern-matching 
 you could probably just:
 
 case x : MySubEvent = blah(x)
 case y : MyOtherSubEvent = blugh(y)
 case _ = ohSnap()!
 
  
 
 
 
 Chas.
 
 Viktor Klang wrote:
  
  
   On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com
 mailto:c...@munat.com
   mailto:c...@munat.com mailto:c...@munat.com wrote:
  
  
   I have a BaseEvent object from which various other events
 (e.g. Seminar)
   inherit. I want to pull them all out in a query, so they come
 out as
   BaseEvents. But then as I'm looping through them, I want to
 find out
   what type of event they really are. There is an event_type
 column in
   the database, but I don't know how to get at that.
  
  
   Don't 

[Lift] Re: JPA inheritance

2009-03-20 Thread Viktor Klang
If you need the Class:

org.hibernate.proxy.HibernateProxyHelper.getClassWithoutInitializingProxy(obj)

On Fri, Mar 20, 2009 at 12:08 PM, Timothy Perrett
timo...@getintheloop.euwrote:

  Chas,

 If you want the object to tell you what it is can you not use some form of
 reflection?

 Tim


 On 20/03/2009 11:03, Viktor Klang viktor.kl...@gmail.com wrote:



 On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com wrote:


 Not really. What I want to do is have the object tell me what it is.
 Unless I'm really misunderstanding isInstanceOf, I have to iterate
 through all the possibilities. Plus, my brain is probably just fried,
 but I'm not seeing how to use it in a match, so I'm having to run
 through a bunch of if statements. I know there's a better way. Just
 can't see it at 3:45 AM.


 But you wrote: . But then as I'm looping through them, I want to find out
 what type of event they really are.

 so when you're looping through them, if you're doing pattern-matching you
 could probably just:

 case x : MySubEvent = blah(x)
 case y : MyOtherSubEvent = blugh(y)
 case _ = ohSnap()!





 Chas.

 Viktor Klang wrote:
 
 
  On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com c...@munat.com%3e wrote:
 
 
  I have a BaseEvent object from which various other events (e.g.
 Seminar)
  inherit. I want to pull them all out in a query, so they come out as
  BaseEvents. But then as I'm looping through them, I want to find out
  what type of event they really are. There is an event_type column
 in
  the database, but I don't know how to get at that.
 
 
  Don't fancy isInstanceOf?
 
 
 
 
  Anyone know offhand how to get the class of the objects? This is in
 Lift
  with JPA/Hibernate.
 
  Thanks,
  Chas.
 
 
 
 
 
  --
  Viktor Klang
  Senior Systems Analyst
 
  





 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance... now it won't compile

2009-03-20 Thread Viktor Klang
Chas,

I have no clue since I don't know what your code looks like.
But just increase the heap size? Maybe you just hit the roof?

Cheers,
Viktor

On Fri, Mar 20, 2009 at 12:55 PM, Charles F. Munat c...@munat.com wrote:


 Viktor, I guess you didn't see my other never mind email as it went
 out about six minutes before you sent this. I arrived at the same
 conclusion. Duh.

 But now I'm running out of heap space when I try to compile. I shut
 everything down, rebooted. Still breaks. I pulled out all the code I'd
 just added. Still breaks. Tried another app -- that works no problem.

 What could I have done to make it run out of heap space on compile?
 Anyone else run into this? Nothing in the warnings seems to be of any
 use at all.

 Chas.

 [WARNING] Exception in thread main java.lang.OutOfMemoryError: Java
 heap space
 [WARNING]   at scala.StringBuilder.init(StringBuilder.scala:33)
 [WARNING]   at scala.StringBuilder.init(StringBuilder.scala:41)
 [WARNING]   at
 scala.tools.nsc.symtab.Names$Name.decode(Names.scala:390)
 [WARNING]   at
 scala.tools.nsc.symtab.Symbols$Symbol.nameString(Symbols.scala:1224)
 [WARNING]   at
 scala.tools.nsc.symtab.Symbols$Symbol.toString(Symbols.scala:1261)
 [WARNING]   at
 scala.tools.nsc.backend.icode.Members$Local.toString(Members.scala:305)
 [WARNING]   at java.lang.String.valueOf(String.java:2615)
 [WARNING]   at scala.StringBuilder.append(StringBuilder.scala:234)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.indexOf(GenJVM.scala:1526)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genBlock$1$1.apply(GenJVM.scala:914)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genBlock$1$1.apply(GenJVM.scala:866)
 [WARNING]   at scala.Iterator$class.foreach(Iterator.scala:414)
 [WARNING]   at
 scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45)
 [WARNING]   at scala.Iterable$class.foreach(Iterable.scala:256)
 [WARNING]   at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
 [WARNING]   at

 scala.tools.nsc.backend.icode.BasicBlocks$BasicBlock.foreach(BasicBlocks.scala:130)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genBlock$1(GenJVM.scala:866)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genBlocks$1(GenJVM.scala:789)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genCode(GenJVM.scala:1413)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:592)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$4.apply(GenJVM.scala:216)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$4.apply(GenJVM.scala:216)
 [WARNING]   at scala.List.foreach(List.scala:834)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genClass(GenJVM.scala:216)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:55)
 [WARNING]   at

 scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:55)
 [WARNING]   at scala.Iterator$class.foreach(Iterator.scala:414)
 [WARNING]   at scala.collection.Map$$anon$6.foreach(Map.scala:123)
 [WARNING]   at
 scala.tools.nsc.backend.jvm.GenJVM$JvmPhase.run(GenJVM.scala:55)
 [WARNING]   at
 scala.tools.nsc.Global$Run.compileSources(Global.scala:574)
 [WARNING]   at scala.tools.nsc.Global$Run.compile(Global.scala:667)
 [WARNING]   at scala.tools.nsc.Main$.process(Main.scala:73)
 [INFO]
 
 [ERROR] BUILD FAILURE

 Viktor Klang wrote:
 
 
  On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  Not really. What I want to do is have the object tell me what it is.
  Unless I'm really misunderstanding isInstanceOf, I have to iterate
  through all the possibilities. Plus, my brain is probably just fried,
  but I'm not seeing how to use it in a match, so I'm having to run
  through a bunch of if statements. I know there's a better way. Just
  can't see it at 3:45 AM.
 
 
  But you wrote: . But then as I'm looping through them, I want to find
 out
  what type of event they really are.
 
  so when you're looping through them, if you're doing pattern-matching
  you could probably just:
 
  case x : MySubEvent = blah(x)
  case y : MyOtherSubEvent = blugh(y)
  case _ = ohSnap()!
 
 
 
 
 
  Chas.
 
  Viktor Klang wrote:
   
   
On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com
mailto:c...@munat.com mailto:c...@munat.com wrote:
   
   
I have a BaseEvent object from which various other events
  (e.g. Seminar)
inherit. I want to pull them all out 

[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Derek Chen-Becker
There's no real reason to make it go away even when we have Record, so you
can safely use it.

Derek

2009/3/20 Mateusz Fiołka mateusz.fio...@gmail.com

 As far as I remember David said once, that Mapper will be anyway a part of
 Lift and it will be not deprecated.

 Regards,
 Mateusz


 On Thu, Mar 19, 2009 at 8:31 PM, Alex a...@liivid.com wrote:


 I have been looking through Lift documents trying to figure out what
 to do about an ORM for my first Lift app.  The migration from Mapper
 to Record also adds uncertainty.  I don't really want to commit to an
 ORM that will be deprecated in 2 months.  Is there somewhere I can
 read about the design goals, migration path, and development status of
 Record?





 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Timothy Perrett

Potentially in a few version of Lift it will become deprecated, but that
wont be anytime soon and it will be supported by the commit team for the
foreseeable future.

Cheers, Tim

On 20/03/2009 13:28, Derek Chen-Becker dchenbec...@gmail.com wrote:

 There's no real reason to make it go away even when we have Record, so you can
 safely use it.
 
 Derek
 
 2009/3/20 Mateusz Fiołka mateusz.fio...@gmail.com
 As far as I remember David said once, that Mapper will be anyway a part of
 Lift and it will be not deprecated.
 
 Regards,
 Mateusz
 
 
 On Thu, Mar 19, 2009 at 8:31 PM, Alex a...@liivid.com wrote:
 
 I have been looking through Lift documents trying to figure out what
 to do about an ORM for my first Lift app.  The migration from Mapper
 to Record also adds uncertainty.  I don't really want to commit to an
 ORM that will be deprecated in 2 months.  Is there somewhere I can
 read about the design goals, migration path, and development status of
 Record?
 
 
 
 
 
 
 
 
  
 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lists in snippets / Snippet Failure

2009-03-20 Thread TylerWeir

 What am I missing? I assume there is a problem with the fruits method
 signature. Do snippet methods havve to return NodeSeq?

Yes, if you change it to this, you'll be good to go:

 def fruits(xhtml:NodeSeq): NodeSeq = {
  List(apple, orange, banana).flatMap(
   fruit = bind(f, xhtml, name - fruit)
  )
  }


On Mar 20, 3:21 am, Thomas Rynne thomas.ry...@gmail.com wrote:
 I am trying to render a list of items using bind without success. I
 have reduced it to a clean liftweb project with the following in
 HelloWorld.scala

   def fruits(xhtml:NodeSeq) = {
       List(apple, orange, banana).flatMap(
        fruit = bind(f, xhtml, name - fruit)
       )
   }

 And this in index.html
  lift:helloWorld.fruits
     f:name/ br /
  /lift:helloWorld.fruits

 The snippet is not rendered and I get this in the logs:
 WARN - Snippet Failure: SnippetFailure(/ - ParsePath(List
 (index),,true,false),Full(helloWorld.fruits),Method Not Found)

 What am I missing? I assume there is a problem with the fruits method
 signature. Do snippet methods havve to return NodeSeq?

 thanks for any advice.
 Thomas
--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread Chad Skinner
 I might only have 8 years of experience with working with the
 Servlet-stack, but the main reason that Lift is hooked into a Filter is that
 Lift filters requests... ;)


But, if OSGi does not support filters then another solution will need to be
identified. For example, what if all requests are Lift Requests? I.E. in a
bundle where everything is on the classpath and you need to register the
snippet packages and the resource filter folders within that bundle or jar?

... I have some experience with servlets and filters, but not a great deal
since we have used frameworks that provide the servlets and filters and we
just implement the logic. What I would like to be able to do is work out a
solution that would be common to many OSGi applications so that Lift could
be used by other projects utilizing OSGi.

I would like the solution to be useful to the community not just me ;-)

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread Viktor Klang
On Fri, Mar 20, 2009 at 2:23 PM, Chad Skinner chadwskin...@gmail.comwrote:


 I might only have 8 years of experience with working with the
 Servlet-stack, but the main reason that Lift is hooked into a Filter is that
 Lift filters requests... ;)


 But, if OSGi does not support filters then another solution will need to be
 identified. For example, what if all requests are Lift Requests? I.E. in a
 bundle where everything is on the classpath and you need to register the
 snippet packages and the resource filter folders within that bundle or jar?

 ... I have some experience with servlets and filters, but not a great deal
 since we have used frameworks that provide the servlets and filters and we
 just implement the logic. What I would like to be able to do is work out a
 solution that would be common to many OSGi applications so that Lift could
 be used by other projects utilizing OSGi.

 I would like the solution to be useful to the community not just me ;-)


I'd suggest to create a LiftWrapperServlet where I'd use LiftFilter with a
wrapper over FilterChain that'd serve static content now served by
LiftFilter.




 



-- 
Viktor Klang
Senior Systems Analyst

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 1:52 AM, Viktor Klang viktor.kl...@gmail.comwrote:

 Guys,

 I might only have 8 years of experience with working with the
 Servlet-stack, but the main reason that Lift is hooked into a Filter is that
 Lift filters requests... ;)

 Hooking it in as a Servlet would only be feasible if we'd have a two-pass
 system where:

 The request first goes through the Filter, to do rewriting and see if it's
 a Lift-request, then do a dispatch to a LiftServlet and let the lift servlet
 do the actual delivery of the payload, else just passing the request through
 the FilterChain

 What do you think?


By default Lift stays as a Filter.

It will be possible to run Lift as a Servlet.

It will also be possible to run Lift as a Portlet.

Toilet, no.

Other kind of input (e.g., hook it into that high performance Scala-based
HTTP server that Russian guy wrote), yes.

The bottom line is that we want to divorce Lift from the mechanics of where
the request came from or is going to as much as possible.

The only breakage that I can see is that Req.request is going to turn from
an HttpServletRequest to Box[HttpServletRequest]  The rest will be under the
covers.



 Cheers,
 Viktor

 On Fri, Mar 20, 2009 at 12:16 AM, Chad Skinner chadwskin...@gmail.comwrote:



 On Thu, Mar 19, 2009 at 5:44 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Chad,
 What would be most helpful is if you could mock up and example with
 servlets (written in Scala or Java).  If I have something that I can run and
 test, then I can figure out how to shim Lift into it.



 David, I'll try to mock something up when I get a little bit of time,
 however I don't know much about a lot of the services supported by Lift
 (Comet, being one) and so any example I come up with would be a little short
 sighted at best. Are you familiar with OSGi and would you be interested in
 discussing methods of implementing Lift as services? In the meantime I will
 start working on a couple of the simpler applications and getting the
 servlets working on OSGi.

 Also, I don't know much about the snippets, are the classes containing the
 snippets pooled or instantiated on a request basis or are they treated as
 singletons? The reason I ask is I am using Easybeans with JPA and would like
 to be able to inject the required EJB. If the snippets are singletons then
 this would not work otherwise I would need to know how to extend the factory
 to inject the EJB.

 Thanks Again,
 Chad





 --
 Viktor Klang
 Senior Systems Analyst


 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread TylerWeir

 The only breakage that I can see is that Req.request is going to turn from
 an HttpServletRequest to Box[HttpServletRequest]  The rest will be under the
 covers.

This is pretty damn exciting.

On Mar 20, 10:24 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Fri, Mar 20, 2009 at 1:52 AM, Viktor Klang viktor.kl...@gmail.comwrote:



  Guys,

  I might only have 8 years of experience with working with the
  Servlet-stack, but the main reason that Lift is hooked into a Filter is that
  Lift filters requests... ;)

  Hooking it in as a Servlet would only be feasible if we'd have a two-pass
  system where:

  The request first goes through the Filter, to do rewriting and see if it's
  a Lift-request, then do a dispatch to a LiftServlet and let the lift servlet
  do the actual delivery of the payload, else just passing the request through
  the FilterChain

  What do you think?

 By default Lift stays as a Filter.

 It will be possible to run Lift as a Servlet.

 It will also be possible to run Lift as a Portlet.

 Toilet, no.

 Other kind of input (e.g., hook it into that high performance Scala-based
 HTTP server that Russian guy wrote), yes.

 The bottom line is that we want to divorce Lift from the mechanics of where
 the request came from or is going to as much as possible.

 The only breakage that I can see is that Req.request is going to turn from
 an HttpServletRequest to Box[HttpServletRequest]  The rest will be under the
 covers.





  Cheers,
  Viktor

  On Fri, Mar 20, 2009 at 12:16 AM, Chad Skinner 
  chadwskin...@gmail.comwrote:

  On Thu, Mar 19, 2009 at 5:44 PM, David Pollak 
  feeder.of.the.be...@gmail.com wrote:

  Chad,
  What would be most helpful is if you could mock up and example with
  servlets (written in Scala or Java).  If I have something that I can run 
  and
  test, then I can figure out how to shim Lift into it.

  David, I'll try to mock something up when I get a little bit of time,
  however I don't know much about a lot of the services supported by Lift
  (Comet, being one) and so any example I come up with would be a little 
  short
  sighted at best. Are you familiar with OSGi and would you be interested in
  discussing methods of implementing Lift as services? In the meantime I will
  start working on a couple of the simpler applications and getting the
  servlets working on OSGi.

  Also, I don't know much about the snippets, are the classes containing the
  snippets pooled or instantiated on a request basis or are they treated as
  singletons? The reason I ask is I am using Easybeans with JPA and would 
  like
  to be able to inject the required EJB. If the snippets are singletons then
  this would not work otherwise I would need to know how to extend the 
  factory
  to inject the EJB.

  Thanks Again,
  Chad

  --
  Viktor Klang
  Senior Systems Analyst

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Lift as a UI in server side OSGi

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 6:23 AM, Chad Skinner chadwskin...@gmail.comwrote:


 I might only have 8 years of experience with working with the
 Servlet-stack, but the main reason that Lift is hooked into a Filter is that
 Lift filters requests... ;)


 But, if OSGi does not support filters then another solution will need to be
 identified. For example, what if all requests are Lift Requests? I.E. in a
 bundle where everything is on the classpath and you need to register the
 snippet packages and the resource filter folders within that bundle or jar?

 ... I have some experience with servlets and filters, but not a great deal
 since we have used frameworks that provide the servlets and filters and we
 just implement the logic. What I would like to be able to do is work out a
 solution that would be common to many OSGi applications so that Lift could
 be used by other projects utilizing OSGi.

 I would like the solution to be useful to the community not just me ;-)


Yes.  We're not going to invest time or effort into a solution that's not
generalized (unless you're paying a *lot* of money, then we can talk.)

I'll ping some OSGi folks that I know and see if I can draw them into the
discussion.




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: horizontal navbar drop-downs

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 12:45 AM, Charles F. Munat c...@munat.com wrote:


 It doesn't say anything about licensing on the site, but it's a jQuery
 plugin. I presume that if we can bundle jQuery, we can bundle Superfish.


Sounds reasonable.  However, I'd prefer not to bundle it with Lift webkit,
but make it like the other widgets.




 Chas.

 Derek Chen-Becker wrote:
  That's awesome. Are there restrictions that would prevent us from just
  including the superfish script file (and CSS) as part of a widget? It
  looks like it wants ULs anyways, which is what Lift already outputs.
   From what DPP said, it should be easy to dump the entire menu as a full
  UL (with nesting), in which case it really is just adding the
  appropriate script element on the page.
 
  Derek
 
  On Thu, Mar 19, 2009 at 5:43 PM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  You should take a look at Superfish:
 
  http://users.tpg.com.au/j_birch/plugins/superfish/
 
  It's probably the best looking and slickest of the menu bars I've
 seen,
  and it can work horizontally or vertically. It's pretty accessible to
  persons with disabilities as it's basically implemented via CSS, with
  just a little JQuery to spiff things up.
 
  If the Lift code either spit things out so that they were ready to be
  used by Superfish, or at least could be configured (via
 user-specified
  class attributes, for example) so that Superfish could just drop in,
  that would be great.
 
  Might also take a look at the YUI version for those people using YUI
  (I'm using both, though obviously not at the same time).
 
  Chas.
 
  David Pollak wrote:
   
   
On Thu, Mar 19, 2009 at 9:50 AM, marius d.
  marius.dan...@gmail.com mailto:marius.dan...@gmail.com
mailto:marius.dan...@gmail.com
  mailto:marius.dan...@gmail.com wrote:
   
   
I'm wondering if we shouldn't provide this by the means of a
 Lift
widget. Looks like a needed feature ...
   
WDYT ?
   
   
Sounds good to me.
   
   
   
Br's,
Marius
   
On Mar 19, 6:43 pm, David Pollak
  feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com
 
mailto:feeder.of.the.be...@gmail.com
  mailto:feeder.of.the.be...@gmail.com
wrote:
  On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker
dchenbec...@gmail.com mailto:dchenbec...@gmail.com
  mailto:dchenbec...@gmail.com mailto:dchenbec...@gmail.comwrote:
 
   This is something that has been asked before, but I
  don't think
there was
   anything out there. I think that this would be a really
 nice
feature,
   particularly if it could leverage the existing jQuery
 stuff.
 IIRC, the
   built-in Menu snippet doesn't render children at all
  unless the
parent is
   the current selected page, so we would have to either
 modify
that or we
   could code up a new MenuBar snippet that renders a bar
instead of a UL
   like the current one.
 
  There's a way to ask for the entire menu rather than just
 the
current view.
   Dan O'Leary from Enthiosys did this for Innovation Games
  Online.
 I've
  pinged him to see if he can share some of the code.
 
 
 
 
 
   Derek
 
   On Thu, Mar 19, 2009 at 10:21 AM, DavidV
david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.comwrote:
 
   I'm wondering if there is a built-in way to create
  drop-down menus
   from a horizontal navbar using the Menu.builder method.
  These
are the
   relevant sections of my current template:
 
  titleMy Titlelift:Menu.title / /title
  lift:StyleSheet.entryForm /
  lift:StyleSheet.fancyType /
  script id=jquery src=/classpath/jquery.js
  type=text/
   javascript/
  script id=json src=/classpath/json.js
type=text/javascript/
 
  style
 
/* ![CDATA[ */
   #navbar ul {
  margin: 0;
  padding: 2px;
  list-style-type: none;
  font-weight: bold;
  text-align: center;
  background-color: #C3D9FF;
  }
 
   #navbar ul li {
  display: inline;
  }
 
 

[Lift] Re: horizontal navbar drop-downs

2009-03-20 Thread Derek Chen-Becker
Sure, I'll bundle it as part of the widgets module along with some code do
handle the nitty-gritty of emitting the full menu and enabling superfish.

Derek

On Fri, Mar 20, 2009 at 9:30 AM, David Pollak feeder.of.the.be...@gmail.com
 wrote:



 On Fri, Mar 20, 2009 at 12:45 AM, Charles F. Munat c...@munat.com wrote:


 It doesn't say anything about licensing on the site, but it's a jQuery
 plugin. I presume that if we can bundle jQuery, we can bundle Superfish.


 Sounds reasonable.  However, I'd prefer not to bundle it with Lift webkit,
 but make it like the other widgets.




 Chas.

 Derek Chen-Becker wrote:
  That's awesome. Are there restrictions that would prevent us from just
  including the superfish script file (and CSS) as part of a widget? It
  looks like it wants ULs anyways, which is what Lift already outputs.
   From what DPP said, it should be easy to dump the entire menu as a full
  UL (with nesting), in which case it really is just adding the
  appropriate script element on the page.
 
  Derek
 
  On Thu, Mar 19, 2009 at 5:43 PM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  You should take a look at Superfish:
 
  http://users.tpg.com.au/j_birch/plugins/superfish/
 
  It's probably the best looking and slickest of the menu bars I've
 seen,
  and it can work horizontally or vertically. It's pretty accessible
 to
  persons with disabilities as it's basically implemented via CSS,
 with
  just a little JQuery to spiff things up.
 
  If the Lift code either spit things out so that they were ready to
 be
  used by Superfish, or at least could be configured (via
 user-specified
  class attributes, for example) so that Superfish could just drop in,
  that would be great.
 
  Might also take a look at the YUI version for those people using YUI
  (I'm using both, though obviously not at the same time).
 
  Chas.
 
  David Pollak wrote:
   
   
On Thu, Mar 19, 2009 at 9:50 AM, marius d.
  marius.dan...@gmail.com mailto:marius.dan...@gmail.com
mailto:marius.dan...@gmail.com
  mailto:marius.dan...@gmail.com wrote:
   
   
I'm wondering if we shouldn't provide this by the means of a
 Lift
widget. Looks like a needed feature ...
   
WDYT ?
   
   
Sounds good to me.
   
   
   
Br's,
Marius
   
On Mar 19, 6:43 pm, David Pollak
  feeder.of.the.be...@gmail.com mailto:
 feeder.of.the.be...@gmail.com
mailto:feeder.of.the.be...@gmail.com
  mailto:feeder.of.the.be...@gmail.com
wrote:
  On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker
dchenbec...@gmail.com mailto:dchenbec...@gmail.com
  mailto:dchenbec...@gmail.com mailto:dchenbec...@gmail.com
 wrote:
 
   This is something that has been asked before, but I
  don't think
there was
   anything out there. I think that this would be a really
 nice
feature,
   particularly if it could leverage the existing jQuery
 stuff.
 IIRC, the
   built-in Menu snippet doesn't render children at all
  unless the
parent is
   the current selected page, so we would have to either
 modify
that or we
   could code up a new MenuBar snippet that renders a bar
instead of a UL
   like the current one.
 
  There's a way to ask for the entire menu rather than just
 the
current view.
   Dan O'Leary from Enthiosys did this for Innovation Games
  Online.
 I've
  pinged him to see if he can share some of the code.
 
 
 
 
 
   Derek
 
   On Thu, Mar 19, 2009 at 10:21 AM, DavidV
david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.comwrote:
 
   I'm wondering if there is a built-in way to create
  drop-down menus
   from a horizontal navbar using the Menu.builder method.
  These
are the
   relevant sections of my current template:
 
  titleMy Titlelift:Menu.title / /title
  lift:StyleSheet.entryForm /
  lift:StyleSheet.fancyType /
  script id=jquery src=/classpath/jquery.js
  type=text/
   javascript/
  script id=json src=/classpath/json.js
type=text/javascript/
 
  style
 
/* ![CDATA[ */
   #navbar ul {
  margin: 0;
  padding: 2px;
  list-style-type: none;
   

[Lift] Re: horizontal navbar drop-downs

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 9:37 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:

 I'm looking at the code and I can't figure out how to make SiteMap emit the
 entire menu tree, other than to modify Lift core. The sitemap Menu class
 specifically tests against the current path to determine whether children
 are displayed, so it seems like it would be helpful to somehow provide an
 override (constructor param? LiftRules toggle?) that would bypass the path
 test. Am I missing something obvious?


Yes.

for {sm - LiftRules.siteMap
   req - S.request} yield sm.buildMenu(req.location)


 If not, does it sound reasonable to add something like

 LiftRules.expandAllMenus

 ?

 Derek


 On Fri, Mar 20, 2009 at 9:48 AM, Derek Chen-Becker 
 dchenbec...@gmail.comwrote:

 Sure, I'll bundle it as part of the widgets module along with some code do
 handle the nitty-gritty of emitting the full menu and enabling superfish.

 Derek


 On Fri, Mar 20, 2009 at 9:30 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Fri, Mar 20, 2009 at 12:45 AM, Charles F. Munat c...@munat.comwrote:


 It doesn't say anything about licensing on the site, but it's a jQuery
 plugin. I presume that if we can bundle jQuery, we can bundle Superfish.


 Sounds reasonable.  However, I'd prefer not to bundle it with Lift
 webkit, but make it like the other widgets.




 Chas.

 Derek Chen-Becker wrote:
  That's awesome. Are there restrictions that would prevent us from just
  including the superfish script file (and CSS) as part of a widget? It
  looks like it wants ULs anyways, which is what Lift already outputs.
   From what DPP said, it should be easy to dump the entire menu as a
 full
  UL (with nesting), in which case it really is just adding the
  appropriate script element on the page.
 
  Derek
 
  On Thu, Mar 19, 2009 at 5:43 PM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  You should take a look at Superfish:
 
  http://users.tpg.com.au/j_birch/plugins/superfish/
 
  It's probably the best looking and slickest of the menu bars I've
 seen,
  and it can work horizontally or vertically. It's pretty accessible
 to
  persons with disabilities as it's basically implemented via CSS,
 with
  just a little JQuery to spiff things up.
 
  If the Lift code either spit things out so that they were ready to
 be
  used by Superfish, or at least could be configured (via
 user-specified
  class attributes, for example) so that Superfish could just drop
 in,
  that would be great.
 
  Might also take a look at the YUI version for those people using
 YUI
  (I'm using both, though obviously not at the same time).
 
  Chas.
 
  David Pollak wrote:
   
   
On Thu, Mar 19, 2009 at 9:50 AM, marius d.
  marius.dan...@gmail.com mailto:marius.dan...@gmail.com
mailto:marius.dan...@gmail.com
  mailto:marius.dan...@gmail.com wrote:
   
   
I'm wondering if we shouldn't provide this by the means of
 a Lift
widget. Looks like a needed feature ...
   
WDYT ?
   
   
Sounds good to me.
   
   
   
Br's,
Marius
   
On Mar 19, 6:43 pm, David Pollak
  feeder.of.the.be...@gmail.com mailto:
 feeder.of.the.be...@gmail.com
mailto:feeder.of.the.be...@gmail.com
  mailto:feeder.of.the.be...@gmail.com
wrote:
  On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker
dchenbec...@gmail.com mailto:dchenbec...@gmail.com
  mailto:dchenbec...@gmail.com mailto:dchenbec...@gmail.com
 wrote:
 
   This is something that has been asked before, but I
  don't think
there was
   anything out there. I think that this would be a
 really nice
feature,
   particularly if it could leverage the existing jQuery
 stuff.
 IIRC, the
   built-in Menu snippet doesn't render children at all
  unless the
parent is
   the current selected page, so we would have to either
 modify
that or we
   could code up a new MenuBar snippet that renders a
 bar
instead of a UL
   like the current one.
 
  There's a way to ask for the entire menu rather than
 just the
current view.
   Dan O'Leary from Enthiosys did this for Innovation
 Games
  Online.
 I've
  pinged him to see if he can share some of the code.
 
 
 
 
 
   Derek
 
   On Thu, Mar 19, 2009 at 10:21 AM, DavidV
david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.com
  mailto:david.v.villa...@gmail.comwrote:
 
   I'm wondering if there is a 

[Lift] Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread TylerWeir

Derek, Marius and I are happy to announce:

Exploring Lift: Scala-based Web Framework

http://www.apress.com/book/view/1430224215

Lift is an exciting new framework that leverages the Scala programming
language to offer an innovative approach to creating web applications.
Lift provides enormous flexibility and functionality while keeping
your code simple.

Exploring Lift is brought to you by Derek Chen-Becker, Marius Danciu,
and Tyler Weir, three committers on the Lift project. The book not
only covers the fundamentals of building a comprehensive Lift-based
application, but contains multiple chapters on advanced functionality
such as AJAX, Comet and custom URL rewriting. Extensive code samples
are given throughout the book to demonstrate practical application,
and a complete demo app is built from the ground up to reinforce the
information presented.
What you'll learn

* How to get a basic Lift application up and running quickly using
Maven's archetypes
* How to generate and process forms, including file uploads
* How to use the SiteMap framework to provide a custom site menu
and programmatic access control to your application's pages
* Database access using Lift's Mapper framework as well as how to
integrate the Java Persistence Architecture
* How to use custom URL rewriting and request dispatch to easily
provide user-friendly URLs and powerful servlet-like functionality
* How to easily internationalized (I18N) your application
* And much more!

Who this book is for?

Anyone interested in getting the most out of their web applications
and who appreciates the power and flexibility of the Scala programming
language. A basic understanding of Scala is assumed, so if you're not
familiar with it we would suggest reading David Pollak's excellent
book, Beginning Scala, http://apress.com/book/view/1430219890 .

Reviews

Lift was created by David Pollak, an industry veteran who has
repeatedly pushed the boundaries of what is possible with programming.
Here is what people are saying about Lift:

Lift is the only new framework in the last four years to offer
fresh and innovative approaches to web development. It's not just some
incremental improvements over the status quo, it redefines the state
of the art. If you are a web developer, you should learn Lift. Even if
you don't wind up using it everyday, it will change the way you
approach web applications.

—Michael Galpin, Developer, eBay

Lift is an expressive and elegant framework for writing web
applications. Lift stresses the importance of security,
maintainability, scalability and performance, while allowing for high
levels of developer productivity.

—Lee Mighdoll, CTO, Digiting, Inc.
--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Alex

Great, thanks.  Any response to my second question?  I couldn't find
information:

Is there somewhere I can read about the design goals, migration path,
and development status of Record?



On Mar 20, 8:09 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 I've got 8+ active projects that use Mapper.  It will continue to be
 supported for a *long time*.  It will not be the recommended path after 1.1,
 but given how long software http://www.plsys.co.uk/mesa I write tends to
 stay in production http://dogscape.com , I think it's safe to say that if
 you use Mapper today, you'll get at least 5 years of support on it.

 On Thu, Mar 19, 2009 at 12:31 PM, Alex a...@liivid.com wrote:

  I have been looking through Lift documents trying to figure out what
  to do about an ORM for my first Lift app.  The migration from Mapper
  to Record also adds uncertainty.  I don't really want to commit to an
  ORM that will be deprecated in 2 months.  Is there somewhere I can
  read about the design goals, migration path, and development status of
  Record?

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread Randall R Schulz

On Friday March 20 2009, TylerWeir wrote:
 Derek, Marius and I are happy to announce:

 Exploring Lift: Scala-based Web Framework

 http://www.apress.com/book/view/1430224215

 ...

How does this book relate to your open-source book:

- http://github.com/tjweir/liftbook/tree
- http://groups.google.com/group/the-lift-book


Randall Schulz

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapper to Record ORM

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 11:33 AM, Alex a...@liivid.com wrote:


 Great, thanks.  Any response to my second question?  I couldn't find
 information:

 Is there somewhere I can read about the design goals, migration path,
 and development status of Record?


Nowhere.  Marius and I have been chatting about it on and off on this list.
 Marius has been doing some coding.  We are looking at the 1.1 sprints and
we should have an idea of where it fits in the the 1.1 sprints when we have
those blocked out.

In terms of migration, the semantics should be similar, so the migration
should be simple code replacement.






 On Mar 20, 8:09 am, David Pollak feeder.of.the.be...@gmail.com
 wrote:
  I've got 8+ active projects that use Mapper.  It will continue to be
  supported for a *long time*.  It will not be the recommended path after
 1.1,
  but given how long software http://www.plsys.co.uk/mesa I write tends
 to
  stay in production http://dogscape.com , I think it's safe to say that
 if
  you use Mapper today, you'll get at least 5 years of support on it.
 
  On Thu, Mar 19, 2009 at 12:31 PM, Alex a...@liivid.com wrote:
 
   I have been looking through Lift documents trying to figure out what
   to do about an ORM for my first Lift app.  The migration from Mapper
   to Record also adds uncertainty.  I don't really want to commit to an
   ORM that will be deprecated in 2 months.  Is there somewhere I can
   read about the design goals, migration path, and development status of
   Record?
 
  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread TylerWeir

It's the exact same content.

Thanks,
Tyler

  ...

 How does this book relate to your open-source book:

 - http://github.com/tjweir/liftbook/tree
 - http://groups.google.com/group/the-lift-book

 Randall Schulz
--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance

2009-03-20 Thread Viktor Klang

In my bag of knowledge :) (google)

Viktor,
Rogue Software Architect

20 mar 2009 kl. 20.24 Charles F. Munat c...@munat.com skrev:


 Ooooh. That's really good to know. Where did you find that?

 Chas.

 Viktor Klang wrote:
 If you need the Class:

 org.
 hibernate.
 proxy.HibernateProxyHelper.getClassWithoutInitializingProxy(obj)

 On Fri, Mar 20, 2009 at 12:08 PM, Timothy Perrett
 timo...@getintheloop.eu wrote:

Chas,

If you want the object to tell you what it is can you not use some
form of reflection?

Tim


On 20/03/2009 11:03, Viktor Klang viktor.kl...@gmail.com
http://viktor.kl...@gmail.com wrote:



On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat
c...@munat.com http://c...@munat.com wrote:


Not really. What I want to do is have the object tell me
what it is.
Unless I'm really misunderstanding isInstanceOf, I have to
iterate
through all the possibilities. Plus, my brain is probably
just fried,
but I'm not seeing how to use it in a match, so I'm having
to run
through a bunch of if statements. I know there's a better
way. Just
can't see it at 3:45 AM.


But you wrote: . But then as I'm looping through them, I want
to find out
what type of event they really are.

so when you're looping through them, if you're doing
pattern-matching you could probably just:

case x : MySubEvent = blah(x)
case y : MyOtherSubEvent = blugh(y)
case _ = ohSnap()!





Chas.

Viktor Klang wrote:


 On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat
c...@munat.com http://c...@munat.com
 mailto:c...@munat.com mailto:c...@munat.com%3e wrote:


 I have a BaseEvent object from which various other
events (e.g. Seminar)
 inherit. I want to pull them all out in a query, so
they come out as
 BaseEvents. But then as I'm looping through them, I
want to find out
 what type of event they really are. There is an
event_type column in
 the database, but I don't know how to get at that.


 Don't fancy isInstanceOf?




 Anyone know offhand how to get the class of the
objects? This is in Lift
 with JPA/Hibernate.

 Thanks,
 Chas.





 --
 Viktor Klang
 Senior Systems Analyst











 --  
 Viktor Klang
 Senior Systems Analyst



 

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Charles F. Munat

Heh, heh. I built http://tridosha.com/ in 1999. It is still running 
pretty much unchanged. (Which is too bad, because significant amounts of 
data on the site are out of date. But it's built in Cold Fusion and I 
haven't the tools or the knowledge to work on it. And the owners are too 
poor, I guess, to hire a new developer.)

Still, ten years is pretty good. And it's not a bad looking site.

Mesa looks very cool. I'm impressed. Too bad I don't have $34.

Chas.

David Pollak wrote:
 I've got 8+ active projects that use Mapper.  It will continue to be 
 supported for a *long time*.  It will not be the recommended path after 
 1.1, but given how long software http://www.plsys.co.uk/mesa I write 
 tends to stay in production http://dogscape.com , I think it's safe to 
 say that if you use Mapper today, you'll get at least 5 years of support 
 on it.
 
 On Thu, Mar 19, 2009 at 12:31 PM, Alex a...@liivid.com 
 mailto:a...@liivid.com wrote:
 
 
 I have been looking through Lift documents trying to figure out what
 to do about an ORM for my first Lift app.  The migration from Mapper
 to Record also adds uncertainty.  I don't really want to commit to an
 ORM that will be deprecated in 2 months.  Is there somewhere I can
 read about the design goals, migration path, and development status of
 Record?
 
 
 
 
 
 
 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp
 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread Charles F. Munat

Outstanding.

TylerWeir wrote:
 Derek, Marius and I are happy to announce:
 
 Exploring Lift: Scala-based Web Framework
 
 http://www.apress.com/book/view/1430224215
 
 Lift is an exciting new framework that leverages the Scala programming
 language to offer an innovative approach to creating web applications.
 Lift provides enormous flexibility and functionality while keeping
 your code simple.
 
 Exploring Lift is brought to you by Derek Chen-Becker, Marius Danciu,
 and Tyler Weir, three committers on the Lift project. The book not
 only covers the fundamentals of building a comprehensive Lift-based
 application, but contains multiple chapters on advanced functionality
 such as AJAX, Comet and custom URL rewriting. Extensive code samples
 are given throughout the book to demonstrate practical application,
 and a complete demo app is built from the ground up to reinforce the
 information presented.
 What you'll learn
 
 * How to get a basic Lift application up and running quickly using
 Maven's archetypes
 * How to generate and process forms, including file uploads
 * How to use the SiteMap framework to provide a custom site menu
 and programmatic access control to your application's pages
 * Database access using Lift's Mapper framework as well as how to
 integrate the Java Persistence Architecture
 * How to use custom URL rewriting and request dispatch to easily
 provide user-friendly URLs and powerful servlet-like functionality
 * How to easily internationalized (I18N) your application
 * And much more!
 
 Who this book is for?
 
 Anyone interested in getting the most out of their web applications
 and who appreciates the power and flexibility of the Scala programming
 language. A basic understanding of Scala is assumed, so if you're not
 familiar with it we would suggest reading David Pollak's excellent
 book, Beginning Scala, http://apress.com/book/view/1430219890 .
 
 Reviews
 
 Lift was created by David Pollak, an industry veteran who has
 repeatedly pushed the boundaries of what is possible with programming.
 Here is what people are saying about Lift:
 
 Lift is the only new framework in the last four years to offer
 fresh and innovative approaches to web development. It's not just some
 incremental improvements over the status quo, it redefines the state
 of the art. If you are a web developer, you should learn Lift. Even if
 you don't wind up using it everyday, it will change the way you
 approach web applications.
 
 —Michael Galpin, Developer, eBay
 
 Lift is an expressive and elegant framework for writing web
 applications. Lift stresses the importance of security,
 maintainability, scalability and performance, while allowing for high
 levels of developer productivity.
 
 —Lee Mighdoll, CTO, Digiting, Inc.
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Mapper to Record ORM

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 12:38 PM, Charles F. Munat c...@munat.com wrote:


 Heh, heh. I built http://tridosha.com/ in 1999.


Very cool.


 It is still running
 pretty much unchanged. (Which is too bad, because significant amounts of
 data on the site are out of date. But it's built in Cold Fusion and I
 haven't the tools or the knowledge to work on it. And the owners are too
 poor, I guess, to hire a new developer.)

 Still, ten years is pretty good. And it's not a bad looking site.

 Mesa looks very cool. I'm impressed. Too bad I don't have $34.


No worries.  None of that $34 makes it to my pocket. :-)




 Chas.

 David Pollak wrote:
  I've got 8+ active projects that use Mapper.  It will continue to be
  supported for a *long time*.  It will not be the recommended path after
  1.1, but given how long software http://www.plsys.co.uk/mesa I write
  tends to stay in production http://dogscape.com , I think it's safe to
  say that if you use Mapper today, you'll get at least 5 years of support
  on it.
 
  On Thu, Mar 19, 2009 at 12:31 PM, Alex a...@liivid.com
  mailto:a...@liivid.com wrote:
 
 
  I have been looking through Lift documents trying to figure out what
  to do about an ORM for my first Lift app.  The migration from Mapper
  to Record also adds uncertainty.  I don't really want to commit to an
  ORM that will be deprecated in 2 months.  Is there somewhere I can
  read about the design goals, migration path, and development status
 of
  Record?
 
 
 
 
 
 
  --
  Lift, the simply functional web framework http://liftweb.net
  Beginning Scala http://www.apress.com/book/view/1430219890
  Follow me: http://twitter.com/dpp
  Git some: http://github.com/dpp
 
  

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Welcome Charles Munat to the Lift committers

2009-03-20 Thread David Pollak
Folks,
I am pleased to welcome Charles Munat to the list of Lift committers.  Now,
many of you, including some other Lift committers, look at Charles'
contribution to Lift and the community and say, yeah, he's a committer.
 Well, now he is.

Welcome Charles!

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA inheritance

2009-03-20 Thread Charles F. Munat

You must know how to sweet talk Google. It's rarely that forthcoming 
with me. I'm going to try to figure out how to increase the heap size 
and see if that works. But is there some way that a compiler can get 
into an infinite loop?

Chas.

Viktor Klang wrote:
 In my bag of knowledge :) (google)
 
 Viktor,
 Rogue Software Architect
 
 20 mar 2009 kl. 20.24 Charles F. Munat c...@munat.com skrev:
 
 Ooooh. That's really good to know. Where did you find that?

 Chas.

 Viktor Klang wrote:
 If you need the Class:

 org.
 hibernate.
 proxy.HibernateProxyHelper.getClassWithoutInitializingProxy(obj)

 On Fri, Mar 20, 2009 at 12:08 PM, Timothy Perrett
 timo...@getintheloop.eu wrote:

Chas,

If you want the object to tell you what it is can you not use some
form of reflection?

Tim


On 20/03/2009 11:03, Viktor Klang viktor.kl...@gmail.com
http://viktor.kl...@gmail.com wrote:



On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat
c...@munat.com http://c...@munat.com wrote:


Not really. What I want to do is have the object tell me
what it is.
Unless I'm really misunderstanding isInstanceOf, I have to
iterate
through all the possibilities. Plus, my brain is probably
just fried,
but I'm not seeing how to use it in a match, so I'm having
to run
through a bunch of if statements. I know there's a better
way. Just
can't see it at 3:45 AM.


But you wrote: . But then as I'm looping through them, I want
to find out
what type of event they really are.

so when you're looping through them, if you're doing
pattern-matching you could probably just:

case x : MySubEvent = blah(x)
case y : MyOtherSubEvent = blugh(y)
case _ = ohSnap()!





Chas.

Viktor Klang wrote:

 On Fri, Mar 20, 2009 at 9:37 AM, Charles F. Munat
c...@munat.com http://c...@munat.com
 mailto:c...@munat.com mailto:c...@munat.com%3e wrote:


 I have a BaseEvent object from which various other
events (e.g. Seminar)
 inherit. I want to pull them all out in a query, so
they come out as
 BaseEvents. But then as I'm looping through them, I
want to find out
 what type of event they really are. There is an
event_type column in
 the database, but I don't know how to get at that.


 Don't fancy isInstanceOf?




 Anyone know offhand how to get the class of the
objects? This is in Lift
 with JPA/Hibernate.

 Thanks,
 Chas.





 --
 Viktor Klang
 Senior Systems Analyst









 --  
 Viktor Klang
 Senior Systems Analyst

 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Welcome Charles Munat to the Lift committers

2009-03-20 Thread Charles F. Munat

People have been trying to have me committed for years. Someone finally 
succeeded. Is there anything David can't do?

Chas.

David Pollak wrote:
 Folks,
 
 I am pleased to welcome Charles Munat to the list of Lift committers. 
  Now, many of you, including some other Lift committers, look at 
 Charles' contribution to Lift and the community and say, yeah, he's a 
 committer.  Well, now he is.
 
 Welcome Charles!
 
 Thanks,
 
 David
 
 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp
 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Welcome Charles Munat to the Lift committers

2009-03-20 Thread marius d.

Welcome Charles ... I know I'm on the list of people that always
thought you're already a committer ... so now my confusion is gone !
Glad to have you on board and not over it :)

On Mar 20, 9:49 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 Folks,
 I am pleased to welcome Charles Munat to the list of Lift committers.  Now,
 many of you, including some other Lift committers, look at Charles'
 contribution to Lift and the community and say, yeah, he's a committer.
  Well, now he is.

 Welcome Charles!

 Thanks,

 David

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread Derek Chen-Becker
To clarify, it's *intended* to be the exact same content. I'm trying to make
sure that any changes and feedback we receive makes it into both versions
but it's possible that they may be slightly out of sync. In any case, and
differences other than formatting should be very, very minor.

Derek

On Fri, Mar 20, 2009 at 1:42 PM, Charles F. Munat c...@munat.com wrote:


 Outstanding.

 TylerWeir wrote:
  Derek, Marius and I are happy to announce:
 
  Exploring Lift: Scala-based Web Framework
 
  http://www.apress.com/book/view/1430224215
 
  Lift is an exciting new framework that leverages the Scala programming
  language to offer an innovative approach to creating web applications.
  Lift provides enormous flexibility and functionality while keeping
  your code simple.
 
  Exploring Lift is brought to you by Derek Chen-Becker, Marius Danciu,
  and Tyler Weir, three committers on the Lift project. The book not
  only covers the fundamentals of building a comprehensive Lift-based
  application, but contains multiple chapters on advanced functionality
  such as AJAX, Comet and custom URL rewriting. Extensive code samples
  are given throughout the book to demonstrate practical application,
  and a complete demo app is built from the ground up to reinforce the
  information presented.
  What you'll learn
 
  * How to get a basic Lift application up and running quickly using
  Maven's archetypes
  * How to generate and process forms, including file uploads
  * How to use the SiteMap framework to provide a custom site menu
  and programmatic access control to your application's pages
  * Database access using Lift's Mapper framework as well as how to
  integrate the Java Persistence Architecture
  * How to use custom URL rewriting and request dispatch to easily
  provide user-friendly URLs and powerful servlet-like functionality
  * How to easily internationalized (I18N) your application
  * And much more!
 
  Who this book is for?
 
  Anyone interested in getting the most out of their web applications
  and who appreciates the power and flexibility of the Scala programming
  language. A basic understanding of Scala is assumed, so if you're not
  familiar with it we would suggest reading David Pollak's excellent
  book, Beginning Scala, http://apress.com/book/view/1430219890 .
 
  Reviews
 
  Lift was created by David Pollak, an industry veteran who has
  repeatedly pushed the boundaries of what is possible with programming.
  Here is what people are saying about Lift:
 
  Lift is the only new framework in the last four years to offer
  fresh and innovative approaches to web development. It's not just some
  incremental improvements over the status quo, it redefines the state
  of the art. If you are a web developer, you should learn Lift. Even if
  you don't wind up using it everyday, it will change the way you
  approach web applications.
 
  —Michael Galpin, Developer, eBay
 
  Lift is an expressive and elegant framework for writing web
  applications. Lift stresses the importance of security,
  maintainability, scalability and performance, while allowing for high
  levels of developer productivity.
 
  —Lee Mighdoll, CTO, Digiting, Inc.
  

 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [Lift committers] Welcome Charles Munat to the Lift committers

2009-03-20 Thread Derek Chen-Becker
Glad to have you aboard!

Derek

On Fri, Mar 20, 2009 at 1:49 PM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 Folks,
 I am pleased to welcome Charles Munat to the list of Lift committers.  Now,
 many of you, including some other Lift committers, look at Charles'
 contribution to Lift and the community and say, yeah, he's a committer.
  Well, now he is.

 Welcome Charles!

 Thanks,

 David

 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp

 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Book Announcement: Exploring Lift: Scala-based Web Framework

2009-03-20 Thread Bill Venners

Hi Tyler,

Congratulations. I'm going to have to buy a new bookshelf to hold all
these Scala books.

Bill

On Fri, Mar 20, 2009 at 12:08 PM, TylerWeir tyler.w...@gmail.com wrote:

 Derek, Marius and I are happy to announce:

 Exploring Lift: Scala-based Web Framework

 http://www.apress.com/book/view/1430224215

 Lift is an exciting new framework that leverages the Scala programming
 language to offer an innovative approach to creating web applications.
 Lift provides enormous flexibility and functionality while keeping
 your code simple.

 Exploring Lift is brought to you by Derek Chen-Becker, Marius Danciu,
 and Tyler Weir, three committers on the Lift project. The book not
 only covers the fundamentals of building a comprehensive Lift-based
 application, but contains multiple chapters on advanced functionality
 such as AJAX, Comet and custom URL rewriting. Extensive code samples
 are given throughout the book to demonstrate practical application,
 and a complete demo app is built from the ground up to reinforce the
 information presented.
 What you'll learn

    * How to get a basic Lift application up and running quickly using
 Maven's archetypes
    * How to generate and process forms, including file uploads
    * How to use the SiteMap framework to provide a custom site menu
 and programmatic access control to your application's pages
    * Database access using Lift's Mapper framework as well as how to
 integrate the Java Persistence Architecture
    * How to use custom URL rewriting and request dispatch to easily
 provide user-friendly URLs and powerful servlet-like functionality
    * How to easily internationalized (I18N) your application
    * And much more!

 Who this book is for?

 Anyone interested in getting the most out of their web applications
 and who appreciates the power and flexibility of the Scala programming
 language. A basic understanding of Scala is assumed, so if you're not
 familiar with it we would suggest reading David Pollak's excellent
 book, Beginning Scala, http://apress.com/book/view/1430219890 .

 Reviews

 Lift was created by David Pollak, an industry veteran who has
 repeatedly pushed the boundaries of what is possible with programming.
 Here is what people are saying about Lift:

    Lift is the only new framework in the last four years to offer
 fresh and innovative approaches to web development. It's not just some
 incremental improvements over the status quo, it redefines the state
 of the art. If you are a web developer, you should learn Lift. Even if
 you don't wind up using it everyday, it will change the way you
 approach web applications.

 —Michael Galpin, Developer, eBay

    Lift is an expressive and elegant framework for writing web
 applications. Lift stresses the importance of security,
 maintainability, scalability and performance, while allowing for high
 levels of developer productivity.

 —Lee Mighdoll, CTO, Digiting, Inc.
 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Where are the lift jars?

2009-03-20 Thread Alex

This is a n00b question, but I've spent a bit too much time trying to
find where a number of the Lift classes are defined.  I installed the
PocketChange app, and I can get it to run (although the current
version is quiet broken and I had to create a postgres db user) but
when I open it as a project in IntelliJ (with apologies to David - I'm
giving it a chance :) it can't find many of the Lift classes,
including the mapper ones (e.g. LongKeyedMapper).  There seems to be a
custom MappedDecimal class, but that's the only one I (and IntelliJ)
can find in net.liftweb.mapper.  It also can't find net.liftweb.util.
{Box,Empty,Full}.

I am new to maven I think it downloaded them magically and put them
somewhere, but where?  Can maven also download the source so I don't
have to keep a separate source directory in sync somehow?

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Where are the lift jars?

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 1:46 PM, Alex a...@liivid.com wrote:


 This is a n00b question, but I've spent a bit too much time trying to
 find where a number of the Lift classes are defined.  I installed the
 PocketChange app, and I can get it to run (although the current
 version is quiet broken and I had to create a postgres db user) but
 when I open it as a project in IntelliJ (with apologies to David - I'm
 giving it a chance :)


Please do.  I encourage it.  Use the tool you are most comfortable with.


 it can't find many of the Lift classes,
 including the mapper ones (e.g. LongKeyedMapper).  There seems to be a
 custom MappedDecimal class, but that's the only one I (and IntelliJ)
 can find in net.liftweb.mapper.  It also can't find net.liftweb.util.
 {Box,Empty,Full}.

 I am new to maven I think it downloaded them magically and put them
 somewhere, but where?  Can maven also download the source so I don't
 have to keep a separate source directory in sync somehow?


No.  They're in ~/.m2/repository

When you do an mvn install, Maven will assemble things together in a WAR
file for you.  Maven will also automatically make sure you've got the right
version of everything.




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Getting Started HTML Has Rogue Tildas

2009-03-20 Thread lmorroni

Hey Everyone,
This stumped me for a few minutes.  I thought I was looking at some
Scala Ninja Moves but in reality I think that the HTML version of the
Getting Started docs has tildas instead of double quotes in a lot of
places.  Can anyone else confirm?
Thanks,
Larry

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] in a heap o' trouble

2009-03-20 Thread Charles F. Munat

Suddenly, my Lift app won't compile. Maven complains that it is out of 
heap space. I have set Maven with MAVEN_OPTS=-Xmx768M -- which should be 
doubling the heap space. No effect.

I removed all the code I added since the last time it compiled. No effect.

What could possibly be causing this? I'm completely at a loss...

Chas.

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: horizontal navbar drop-downs

2009-03-20 Thread marius d.

Derek if you want to build menu the widget by all means go ahead. I
just don't want to duplicate the effort by having us work on the same
thing. (If you do please update the ticket owner)

Br's,
Marius

On Mar 20, 5:48 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
 Sure, I'll bundle it as part of the widgets module along with some code do
 handle the nitty-gritty of emitting the full menu and enabling superfish.

 Derek

 On Fri, Mar 20, 2009 at 9:30 AM, David Pollak feeder.of.the.be...@gmail.com

  wrote:

  On Fri, Mar 20, 2009 at 12:45 AM, Charles F. Munat c...@munat.com wrote:

  It doesn't say anything about licensing on the site, but it's a jQuery
  plugin. I presume that if we can bundle jQuery, we can bundle Superfish.

  Sounds reasonable.  However, I'd prefer not to bundle it with Lift webkit,
  but make it like the other widgets.

  Chas.

  Derek Chen-Becker wrote:
   That's awesome. Are there restrictions that would prevent us from just
   including the superfish script file (and CSS) as part of a widget? It
   looks like it wants ULs anyways, which is what Lift already outputs.
    From what DPP said, it should be easy to dump the entire menu as a full
   UL (with nesting), in which case it really is just adding the
   appropriate script element on the page.

   Derek

   On Thu, Mar 19, 2009 at 5:43 PM, Charles F. Munat c...@munat.com
   mailto:c...@munat.com wrote:

       You should take a look at Superfish:

      http://users.tpg.com.au/j_birch/plugins/superfish/

       It's probably the best looking and slickest of the menu bars I've
  seen,
       and it can work horizontally or vertically. It's pretty accessible
  to
       persons with disabilities as it's basically implemented via CSS,
  with
       just a little JQuery to spiff things up.

       If the Lift code either spit things out so that they were ready to
  be
       used by Superfish, or at least could be configured (via
  user-specified
       class attributes, for example) so that Superfish could just drop in,
       that would be great.

       Might also take a look at the YUI version for those people using YUI
       (I'm using both, though obviously not at the same time).

       Chas.

       David Pollak wrote:

         On Thu, Mar 19, 2009 at 9:50 AM, marius d.
       marius.dan...@gmail.com mailto:marius.dan...@gmail.com
         mailto:marius.dan...@gmail.com
       mailto:marius.dan...@gmail.com wrote:

             I'm wondering if we shouldn't provide this by the means of a
  Lift
             widget. Looks like a needed feature ...

             WDYT ?

         Sounds good to me.

             Br's,
             Marius

             On Mar 19, 6:43 pm, David Pollak
       feeder.of.the.be...@gmail.com mailto:
  feeder.of.the.be...@gmail.com
             mailto:feeder.of.the.be...@gmail.com
       mailto:feeder.of.the.be...@gmail.com
             wrote:
               On Thu, Mar 19, 2009 at 9:30 AM, Derek Chen-Becker
             dchenbec...@gmail.com mailto:dchenbec...@gmail.com
       mailto:dchenbec...@gmail.com mailto:dchenbec...@gmail.com
  wrote:

                This is something that has been asked before, but I
       don't think
             there was
                anything out there. I think that this would be a really
  nice
             feature,
                particularly if it could leverage the existing jQuery
  stuff.
              IIRC, the
                built-in Menu snippet doesn't render children at all
       unless the
             parent is
                the current selected page, so we would have to either
  modify
             that or we
                could code up a new MenuBar snippet that renders a bar
             instead of a UL
                like the current one.

               There's a way to ask for the entire menu rather than just
  the
             current view.
                Dan O'Leary from Enthiosys did this for Innovation Games
       Online.
              I've
               pinged him to see if he can share some of the code.

                Derek

                On Thu, Mar 19, 2009 at 10:21 AM, DavidV
             david.v.villa...@gmail.com
       mailto:david.v.villa...@gmail.com
       mailto:david.v.villa...@gmail.com
       mailto:david.v.villa...@gmail.comwrote:

                I'm wondering if there is a built-in way to create
       drop-down menus
                from a horizontal navbar using the Menu.builder method.
       These
             are the
                relevant sections of my current template:

                   titleMy Titlelift:Menu.title / /title
                   lift:StyleSheet.entryForm /
                   lift:StyleSheet.fancyType /
                   script id=jquery src=/classpath/jquery.js
       type=text/
                javascript/
                   script id=json src=/classpath/json.js
             type=text/javascript/

                   style

                 /* ![CDATA[ */
                

[Lift] Re: in a heap o' trouble

2009-03-20 Thread David Pollak
In your pom.xml file:

 plugin
groupIdorg.scala-tools/groupId
artifactIdmaven-scala-plugin/artifactId
version2.9/version
executions
  execution
goals
  goalcompile/goal
  goaltestCompile/goal
/goals
  /execution
/executions
configuration
  jvmArgs
jvmArg-Xmx1024m/jvmArg
  /jvmArgs
  scalaVersion${scala.version}/scalaVersion
/configuration
  /plugin

plugin
groupIdorg.scala-tools/groupId
artifactIdmaven-scala-plugin/artifactId
configuration
  jvmArgs
jvmArg-Xmx1024m/jvmArg
  /jvmArgs

  scalaVersion${scala.version}/scalaVersion
/configuration
  /plugin

Scalac doesn't obey MAVEN_OPTS

On Fri, Mar 20, 2009 at 2:35 PM, Charles F. Munat c...@munat.com wrote:


 Suddenly, my Lift app won't compile. Maven complains that it is out of
 heap space. I have set Maven with MAVEN_OPTS=-Xmx768M -- which should be
 doubling the heap space. No effect.

 I removed all the code I added since the last time it compiled. No effect.

 What could possibly be causing this? I'm completely at a loss...

 Chas.

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Getting Started HTML Has Rogue Tildas

2009-03-20 Thread Derek Chen-Becker
Wow. I totally missed that. Unfortunately, I'm not very familiar with
tex4ht, so I really need to dig into that to figure out what the heck is
going on there. From what I can tell, it's only doing it for code listings.
Are you seeing it anywhere else?

Derek

On Fri, Mar 20, 2009 at 2:59 PM, lmorroni la...@morroni.com wrote:


 Hey Everyone,
 This stumped me for a few minutes.  I thought I was looking at some
 Scala Ninja Moves but in reality I think that the HTML version of the
 Getting Started docs has tildas instead of double quotes in a lot of
 places.  Can anyone else confirm?
 Thanks,
 Larry

 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Where are the lift jars?

2009-03-20 Thread Alex


 I think the best way is if you open the pom.xml as a project. Then add the
 Scala facet to the module. IntelliJ should download the required maven jars
 for you as you load the maven project.

Bingo!  I was creating a new project from source.  When I opened the
pom as a project (I never would have thought of that) It actually
detected the Scala facet so I didn't even need to set it up.

It was not finding the jars otherwise, probably because it didn't use
the pom.xml.

So far IntelliJ/Scala is working great.  Like David I don't like the
way it puts your cursor where you click, but I do like that I can do
Apple-C/X and it will copy/paste the whole line.

Thanks!

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: in a heap o' trouble

2009-03-20 Thread Charles F. Munat

AH HA! I thought so. In fact, I was busy searching Google for exactly this.

Thank you very much. I can get down off the roof now.

Is there anywhere online where all these Maven POM settings are 
documented? I've been to the Maven site, but can't find it.

Chas.

David Pollak wrote:
 In your pom.xml file:
 
  plugin
 groupIdorg.scala-tools/groupId
 artifactIdmaven-scala-plugin/artifactId
 version2.9/version
 executions
   execution
 goals
   goalcompile/goal
   goaltestCompile/goal
 /goals
   /execution
 /executions
 configuration
   jvmArgs
 jvmArg-Xmx1024m/jvmArg
   /jvmArgs
   scalaVersion${scala.version}/scalaVersion
 /configuration
   /plugin
 
 plugin
 groupIdorg.scala-tools/groupId
 artifactIdmaven-scala-plugin/artifactId
 configuration
   jvmArgs
 jvmArg-Xmx1024m/jvmArg
   /jvmArgs
 
   scalaVersion${scala.version}/scalaVersion
 /configuration
   /plugin
 
 Scalac doesn't obey MAVEN_OPTS
 
 On Fri, Mar 20, 2009 at 2:35 PM, Charles F. Munat c...@munat.com 
 mailto:c...@munat.com wrote:
 
 
 Suddenly, my Lift app won't compile. Maven complains that it is out of
 heap space. I have set Maven with MAVEN_OPTS=-Xmx768M -- which should be
 doubling the heap space. No effect.
 
 I removed all the code I added since the last time it compiled. No
 effect.
 
 What could possibly be causing this? I'm completely at a loss...
 
 Chas.
 
 
 
 
 
 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp
 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: in a heap o' trouble

2009-03-20 Thread David Pollak
On Fri, Mar 20, 2009 at 3:13 PM, Charles F. Munat c...@munat.com wrote:


 AH HA! I thought so. In fact, I was busy searching Google for exactly this.

 Thank you very much. I can get down off the roof now.

 Is there anywhere online where all these Maven POM settings are
 documented? I've been to the Maven site, but can't find it.


In DavidB and Josh's heads. :-(




 Chas.

 David Pollak wrote:
  In your pom.xml file:
 
   plugin
  groupIdorg.scala-tools/groupId
  artifactIdmaven-scala-plugin/artifactId
  version2.9/version
  executions
execution
  goals
goalcompile/goal
goaltestCompile/goal
  /goals
/execution
  /executions
  configuration
jvmArgs
  jvmArg-Xmx1024m/jvmArg
/jvmArgs
scalaVersion${scala.version}/scalaVersion
  /configuration
/plugin
 
  plugin
  groupIdorg.scala-tools/groupId
  artifactIdmaven-scala-plugin/artifactId
  configuration
jvmArgs
  jvmArg-Xmx1024m/jvmArg
/jvmArgs
 
scalaVersion${scala.version}/scalaVersion
  /configuration
/plugin
 
  Scalac doesn't obey MAVEN_OPTS
 
  On Fri, Mar 20, 2009 at 2:35 PM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:
 
 
  Suddenly, my Lift app won't compile. Maven complains that it is out
 of
  heap space. I have set Maven with MAVEN_OPTS=-Xmx768M -- which should
 be
  doubling the heap space. No effect.
 
  I removed all the code I added since the last time it compiled. No
  effect.
 
  What could possibly be causing this? I'm completely at a loss...
 
  Chas.
 
 
 
 
 
  --
  Lift, the simply functional web framework http://liftweb.net
  Beginning Scala http://www.apress.com/book/view/1430219890
  Follow me: http://twitter.com/dpp
  Git some: http://github.com/dpp
 
  

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Where are the lift jars?

2009-03-20 Thread Joachim A.


 Bingo!  I was creating a new project from source.  When I opened the
 pom as a project (I never would have thought of that) It actually
 detected the Scala facet so I didn't even need to set it up.

 It was not finding the jars otherwise, probably because it didn't use
 the pom.xml.

 So far IntelliJ/Scala is working great.  Like David I don't like the
 way it puts your cursor where you click, but I do like that I can do
 Apple-C/X and it will copy/paste the whole line.

I'm not sure what you mean.
If you meant that you can place the cursor after the end of the line you can 
turn that off in Settings-Editor-Virtual space .

Regards,
Joachim

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: in a heap o' trouble

2009-03-20 Thread Charles F. Munat

As I suspected.

David Pollak wrote:
 
 
 On Fri, Mar 20, 2009 at 3:13 PM, Charles F. Munat c...@munat.com 
 mailto:c...@munat.com wrote:
 
 
 AH HA! I thought so. In fact, I was busy searching Google for
 exactly this.
 
 Thank you very much. I can get down off the roof now.
 
 Is there anywhere online where all these Maven POM settings are
 documented? I've been to the Maven site, but can't find it.
 
 
 In DavidB and Josh's heads. :-(
  
 
 
 
 Chas.
 
 David Pollak wrote:
   In your pom.xml file:
  
plugin
   groupIdorg.scala-tools/groupId
   artifactIdmaven-scala-plugin/artifactId
   version2.9/version
   executions
 execution
   goals
 goalcompile/goal
 goaltestCompile/goal
   /goals
 /execution
   /executions
   configuration
 jvmArgs
   jvmArg-Xmx1024m/jvmArg
 /jvmArgs
 scalaVersion${scala.version}/scalaVersion
   /configuration
 /plugin
  
   plugin
   groupIdorg.scala-tools/groupId
   artifactIdmaven-scala-plugin/artifactId
   configuration
 jvmArgs
   jvmArg-Xmx1024m/jvmArg
 /jvmArgs
  
 scalaVersion${scala.version}/scalaVersion
   /configuration
 /plugin
  
   Scalac doesn't obey MAVEN_OPTS
  
   On Fri, Mar 20, 2009 at 2:35 PM, Charles F. Munat c...@munat.com
 mailto:c...@munat.com
   mailto:c...@munat.com mailto:c...@munat.com wrote:
  
  
   Suddenly, my Lift app won't compile. Maven complains that it
 is out of
   heap space. I have set Maven with MAVEN_OPTS=-Xmx768M --
 which should be
   doubling the heap space. No effect.
  
   I removed all the code I added since the last time it
 compiled. No
   effect.
  
   What could possibly be causing this? I'm completely at a loss...
  
   Chas.
  
  
  
  
  
   --
   Lift, the simply functional web framework http://liftweb.net
   Beginning Scala http://www.apress.com/book/view/1430219890
   Follow me: http://twitter.com/dpp
   Git some: http://github.com/dpp
  
   
 
 
 
 
 
 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp
 
  

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: in a heap o' trouble

2009-03-20 Thread Timothy Perrett

The mojo's are well documented both on scala-tools maven site and in  
the code itself. I'm on my iPhone right now so can't paste the link  
(damn you apple!) but it's all on scala-tools! If been looking for  
specific options myself before and found it to be very well organized.

Tim

Sent from my iPhone

On 20 Mar 2009, at 23:25, Charles F. Munat c...@munat.com wrote:


 As I suspected.

 David Pollak wrote:


 On Fri, Mar 20, 2009 at 3:13 PM, Charles F. Munat c...@munat.com
 mailto:c...@munat.com wrote:


AH HA! I thought so. In fact, I was busy searching Google for
exactly this.

Thank you very much. I can get down off the roof now.

Is there anywhere online where all these Maven POM settings are
documented? I've been to the Maven site, but can't find it.


 In DavidB and Josh's heads. :-(




Chas.

David Pollak wrote:
 In your pom.xml file:

 plugin
groupIdorg.scala-tools/groupId
artifactIdmaven-scala-plugin/artifactId
version2.9/version
executions
  execution
goals
  goalcompile/goal
  goaltestCompile/goal
/goals
  /execution
/executions
configuration
  jvmArgs
jvmArg-Xmx1024m/jvmArg
  /jvmArgs
  scalaVersion${scala.version}/scalaVersion
/configuration
  /plugin

 plugin
groupIdorg.scala-tools/groupId
artifactIdmaven-scala-plugin/artifactId
configuration
  jvmArgs
jvmArg-Xmx1024m/jvmArg
  /jvmArgs

  scalaVersion${scala.version}/scalaVersion
/configuration
  /plugin

 Scalac doesn't obey MAVEN_OPTS

 On Fri, Mar 20, 2009 at 2:35 PM, Charles F. Munat c...@munat.com
mailto:c...@munat.com
 mailto:c...@munat.com mailto:c...@munat.com wrote:


Suddenly, my Lift app won't compile. Maven complains that it
is out of
heap space. I have set Maven with MAVEN_OPTS=-Xmx768M --
which should be
doubling the heap space. No effect.

I removed all the code I added since the last time it
compiled. No
effect.

What could possibly be causing this? I'm completely at a loss...

Chas.





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp







 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp



 


--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Schema management with JPA

2009-03-20 Thread Alex

I'm going through the recently announced book and JPA looks pretty
attractive.  There is no mention of schema management - e.g. creating
and modifying tables.  Is there any or is that all done manually?

--~--~-~--~~~---~--~~
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 group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---