[Lift] Spring Security

2009-09-15 Thread Charles F. Munat

Has anyone tried using Spring Security (formerly Acegi) in Lift?

If so, care to comment on the experience? Suggestions? Pitfalls?

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] Expires: header value set two times in response header?

2009-09-15 Thread jon

Is this ok?

$ curl -I demo.liftweb.net
HTTP/1.1 200 OK
Server: nginx/0.6.32
Date: Tue, 15 Sep 2009 06:37:32 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=4ybw6k5861ab;Path=/
Content-Length: 8061
Expires: Tue, 15 Sep 2009 06:37:32 UTC
Cache-Control: no-cache; private; no-store; must-revalidate; max-
stale=0; post-check=0; pre-check=0; max-age=0
Pragma: no-cache
X-Lift-Version: 1.1-SNAPSHOT

--~--~-~--~~~---~--~~
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: Expires: header value set two times in response header?

2009-09-15 Thread Timothy Perrett

Perhaps one from lift and one from nginx?

Cheers, Tim

On Sep 15, 7:40 am, jon jonhoff...@gmail.com wrote:
 Is this ok?

 $ curl -I demo.liftweb.net
 HTTP/1.1 200 OK
 Server: nginx/0.6.32
 Date: Tue, 15 Sep 2009 06:37:32 GMT
 Content-Type: text/html; charset=utf-8
 Connection: keep-alive
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Set-Cookie: JSESSIONID=4ybw6k5861ab;Path=/
 Content-Length: 8061
 Expires: Tue, 15 Sep 2009 06:37:32 UTC
 Cache-Control: no-cache; private; no-store; must-revalidate; max-
 stale=0; post-check=0; pre-check=0; max-age=0
 Pragma: no-cache
 X-Lift-Version: 1.1-SNAPSHOT
--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Timothy Perrett

Its telling you that the class Clock could not be found - if i were
you, check the package definitions on the clock class to make sure its
in the right namespace.

Cheers, Tim

On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
 I compiled the comet Clock app and used the following markup

 lift:surround with=default at=content
   lift:comet type=Clock name=Other
     clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround

 I also used the standard default.html

 When I ran it, I got the error

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
 --
  13:     clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 Any ideas?
--~--~-~--~~~---~--~~
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 should i put the props file?

2009-09-15 Thread XiaomingZheng

i wanted to use a property file and put a file named default.props in
myapp/props/ dir, but i found the property is not set correctly. Where
should i put the property file? my os is windows vista. 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: alternate webroot using Boot?

2009-09-15 Thread tonyc

I'm considering lift for an alternative web framework but need to
maintain a whole bunch of servlets / filters that already live in my
web.xml.

This is the closest thread to this subject so I thought I'd post here.

I'm trying to get the LiftFilter to match on a distinct url-pattern to
allow the other filters/servlets to continue matching their current
url patterns.

For this reason I need LiftFilter to match on say lift-test/* and so
it receives requests like http://host/lift-test/index.html, but NOT
like http://host/index.html

Trouble is, I'm now a bit confused where to put the (lift) index.html
in the webapp and/or what I need to change in Boot.scala.

Scala plays nicely with Java, and I'd like to be able to get web
frameworks playing nicely as well.

I've already cobbled together spring/gwt/restlet/apachecxf so I guess
I'm a glutton for punishment;)

I suspect there's quite a few people want to integrate Lift with their
pre-existing webapps, so I'm hoping somebody has solved it already.

Cheers,

Tony.

--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
The package is correct. Here is the error
XML parsing failed: syntax error (Line: 13, Character: 4)

Reparse document as HTML
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
 10:   body
 11:
 12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
Full(Other) Not Found --
 13: clk:timeMissing Clock/clk:time
 14:
 15:
 16:   script type=text/javascript
I tried it both with the full class name and just Clock. I get the same
error in both cases.
Its seems to be saying clk is an undeclared namespace?


On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett timo...@getintheloop.euwrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?
 


--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
Here is the complete code for my Clock example
*class*

import scala.xml._
import net.liftweb.http.S
import net.liftweb.http.CometActor
import net.liftweb.http.SessionVar
import net.liftweb.util._
import _root_.scala.xml._
import _root_.net.liftweb.util.Helpers._
import scala.actors._




class Clock extends CometActor {
  override def defaultPrefix = Full(clk)

  def render = bind(time - timeSpan)

  def timeSpan = (span id=time{timeNow}/span)

  ActorPing.schedule(this, Tick, 1L)

  override def lowPriority :
  PartialFunction[Any, Unit] = {
case Tick = {
  partialUpdate(SetHtml(time,
Text(timeNow.toString)))
  ActorPing.schedule(this,Tick, 1L)
}
  }
}

case object Tick

*markup - (I have also tried it with just *type=Clock since the package is
in my Boot class)

lift:surround with=default at=content
  lift:comet type=com.authoritude.snippet.Clock name=Other
clk:timeMissing Clock/clk:time
  /lift:comet
/lift:surround


On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com wrote:

 The package is correct. Here is the error
 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the same
 error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett 
 timo...@getintheloop.euwrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?
 



--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
And here is the error again:
Error!
XML parsing failed

XML parsing failed: syntax error (Line: 13, Character: 4)

Reparse document as HTML
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
 10:   body
 11:
 12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
Full(Other) Not Found --
 13: clk:timeMissing Clock/clk:time
 14:
 15:
 16:   script type=text/javascript

On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com wrote:

 Here is the complete code for my Clock example
 *class*

 import scala.xml._
 import net.liftweb.http.S
 import net.liftweb.http.CometActor
 import net.liftweb.http.SessionVar
 import net.liftweb.util._
 import _root_.scala.xml._
 import _root_.net.liftweb.util.Helpers._
 import scala.actors._




 class Clock extends CometActor {
   override def defaultPrefix = Full(clk)

   def render = bind(time - timeSpan)

   def timeSpan = (span id=time{timeNow}/span)

   ActorPing.schedule(this, Tick, 1L)

   override def lowPriority :
   PartialFunction[Any, Unit] = {
 case Tick = {
   partialUpdate(SetHtml(time,
 Text(timeNow.toString)))
   ActorPing.schedule(this,Tick, 1L)
 }
   }
 }

 case object Tick

 *markup - (I have also tried it with just *type=Clock since the package
 is in my Boot class)

 lift:surround with=default at=content
   lift:comet type=com.authoritude.snippet.Clock name=Other
 clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround


 On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.comwrote:

 The package is correct. Here is the error
 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the same
 error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett timo...@getintheloop.eu
  wrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?
 




--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Tim Nelson
Comet classes are supposed to go in the comet folder. It looks like you have
it in your snippet folder. Did you try putting the clock class in the comet
folder?

On Tue, Sep 15, 2009 at 7:34 AM, Jack Widman jack.wid...@gmail.com wrote:

 And here is the error again:
 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.comwrote:

 Here is the complete code for my Clock example
 *class*

 import scala.xml._
 import net.liftweb.http.S
 import net.liftweb.http.CometActor
 import net.liftweb.http.SessionVar
 import net.liftweb.util._
 import _root_.scala.xml._
 import _root_.net.liftweb.util.Helpers._
 import scala.actors._




 class Clock extends CometActor {
   override def defaultPrefix = Full(clk)

   def render = bind(time - timeSpan)

   def timeSpan = (span id=time{timeNow}/span)

   ActorPing.schedule(this, Tick, 1L)

   override def lowPriority :
   PartialFunction[Any, Unit] = {
 case Tick = {
   partialUpdate(SetHtml(time,
 Text(timeNow.toString)))
   ActorPing.schedule(this,Tick, 1L)
 }
   }
 }

 case object Tick

 *markup - (I have also tried it with just *type=Clock since the package
 is in my Boot class)

 lift:surround with=default at=content
   lift:comet type=com.authoritude.snippet.Clock name=Other
 clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround


 On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.comwrote:

 The package is correct. Here is the error
 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the same
 error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
 timo...@getintheloop.eu wrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?





 


--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
Yikes. Feeling stupid.

On Tue, Sep 15, 2009 at 9:02 AM, Tim Nelson tnell...@gmail.com wrote:

 Comet classes are supposed to go in the comet folder. It looks like you
 have it in your snippet folder. Did you try putting the clock class in the
 comet folder?


 On Tue, Sep 15, 2009 at 7:34 AM, Jack Widman jack.wid...@gmail.comwrote:

 And here is the error again:
 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.comwrote:

 Here is the complete code for my Clock example
 *class*

 import scala.xml._
 import net.liftweb.http.S
 import net.liftweb.http.CometActor
 import net.liftweb.http.SessionVar
 import net.liftweb.util._
 import _root_.scala.xml._
 import _root_.net.liftweb.util.Helpers._
 import scala.actors._




 class Clock extends CometActor {
   override def defaultPrefix = Full(clk)

   def render = bind(time - timeSpan)

   def timeSpan = (span id=time{timeNow}/span)

   ActorPing.schedule(this, Tick, 1L)

   override def lowPriority :
   PartialFunction[Any, Unit] = {
 case Tick = {
   partialUpdate(SetHtml(time,
 Text(timeNow.toString)))
   ActorPing.schedule(this,Tick, 1L)
 }
   }
 }

 case object Tick

 *markup - (I have also tried it with just *type=Clock since the
 package is in my Boot class)

 lift:surround with=default at=content
   lift:comet type=com.authoritude.snippet.Clock name=Other
 clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround


 On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.comwrote:

 The package is correct. Here is the error
 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the same
 error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
 timo...@getintheloop.eu wrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not
 Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?








 


--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Timothy Perrett
Like I said in the first place... check the package ;-)

Tim


On 15 Sep 2009, at 14:46, Jack Widman wrote:

 Yikes. Feeling stupid.

 On Tue, Sep 15, 2009 at 9:02 AM, Tim Nelson tnell...@gmail.com  
 wrote:
 Comet classes are supposed to go in the comet folder. It looks like  
 you have it in your snippet folder. Did you try putting the clock  
 class in the comet folder?


 On Tue, Sep 15, 2009 at 7:34 AM, Jack Widman jack.wid...@gmail.com  
 wrote:
 And here is the error again:

 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock)  
 name: Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com  
 wrote:
 Here is the complete code for my Clock example

 class

 import scala.xml._
 import net.liftweb.http.S
 import net.liftweb.http.CometActor
 import net.liftweb.http.SessionVar
 import net.liftweb.util._
 import _root_.scala.xml._
 import _root_.net.liftweb.util.Helpers._
 import scala.actors._




 class Clock extends CometActor {
   override def defaultPrefix = Full(clk)

   def render = bind(time - timeSpan)

   def timeSpan = (span id=time{timeNow}/span)

   ActorPing.schedule(this, Tick, 1L)

   override def lowPriority :
   PartialFunction[Any, Unit] = {
 case Tick = {
   partialUpdate(SetHtml(time,
   Text(timeNow.toString)))
   ActorPing.schedule(this,Tick, 1L)
 }
   }
 }

 case object Tick

 markup - (I have also tried it with just type=Clock since the  
 package is in my Boot class)

 lift:surround with=default at=content
   lift:comet type=com.authoritude.snippet.Clock name=Other
 clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround


 On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com  
 wrote:
 The package is correct. Here is the error

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock)  
 name: Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the  
 same error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett timo...@getintheloop.eu 
  wrote:

 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not  
 Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?











 


--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Naftoli Gugenheim

Did you leave out the package statement? Where is the .class file outputted?
I think the browser is complaining that the error message xml has an unbound 
prefix.


-
Jack Widmanjack.wid...@gmail.com wrote:

And here is the error again:
Error!
XML parsing failed

XML parsing failed: syntax error (Line: 13, Character: 4)

Reparse document as HTML
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
 10:   body
 11:
 12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
Full(Other) Not Found --
 13: clk:timeMissing Clock/clk:time
 14:
 15:
 16:   script type=text/javascript

On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com wrote:

 Here is the complete code for my Clock example
 *class*

 import scala.xml._
 import net.liftweb.http.S
 import net.liftweb.http.CometActor
 import net.liftweb.http.SessionVar
 import net.liftweb.util._
 import _root_.scala.xml._
 import _root_.net.liftweb.util.Helpers._
 import scala.actors._




 class Clock extends CometActor {
   override def defaultPrefix = Full(clk)

   def render = bind(time - timeSpan)

   def timeSpan = (span id=time{timeNow}/span)

   ActorPing.schedule(this, Tick, 1L)

   override def lowPriority :
   PartialFunction[Any, Unit] = {
 case Tick = {
   partialUpdate(SetHtml(time,
 Text(timeNow.toString)))
   ActorPing.schedule(this,Tick, 1L)
 }
   }
 }

 case object Tick

 *markup - (I have also tried it with just *type=Clock since the package
 is in my Boot class)

 lift:surround with=default at=content
   lift:comet type=com.authoritude.snippet.Clock name=Other
 clk:timeMissing Clock/clk:time
   /lift:comet
 /lift:surround


 On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.comwrote:

 The package is correct. Here is the error
 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript
 I tried it both with the full class name and just Clock. I get the same
 error in both cases.
 Its seems to be saying clk is an undeclared namespace?


 On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett timo...@getintheloop.eu
  wrote:


 Its telling you that the class Clock could not be found - if i were
 you, check the package definitions on the clock class to make sure its
 in the right namespace.

 Cheers, Tim

 On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
  I compiled the comet Clock app and used the following markup
 
  lift:surround with=default at=content
lift:comet type=Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
  I also used the standard default.html
 
  When I ran it, I got the error
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not Found
  --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  Any ideas?
 






--~--~-~--~~~---~--~~
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
I did not try it without the package statement. The class is located in the
snippet folder. It was just pointed out to me that it must be in the comet
folder.

On Tue, Sep 15, 2009 at 10:15 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:


 Did you leave out the package statement? Where is the .class file
 outputted?
 I think the browser is complaining that the error message xml has an
 unbound prefix.


 -
 Jack Widmanjack.wid...@gmail.com wrote:

 And here is the error again:
 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com
 wrote:

  Here is the complete code for my Clock example
  *class*
 
  import scala.xml._
  import net.liftweb.http.S
  import net.liftweb.http.CometActor
  import net.liftweb.http.SessionVar
  import net.liftweb.util._
  import _root_.scala.xml._
  import _root_.net.liftweb.util.Helpers._
  import scala.actors._
 
 
 
 
  class Clock extends CometActor {
override def defaultPrefix = Full(clk)
 
def render = bind(time - timeSpan)
 
def timeSpan = (span id=time{timeNow}/span)
 
ActorPing.schedule(this, Tick, 1L)
 
override def lowPriority :
PartialFunction[Any, Unit] = {
  case Tick = {
partialUpdate(SetHtml(time,
  Text(timeNow.toString)))
ActorPing.schedule(this,Tick, 1L)
  }
}
  }
 
  case object Tick
 
  *markup - (I have also tried it with just *type=Clock since the package
  is in my Boot class)
 
  lift:surround with=default at=content
lift:comet type=com.authoritude.snippet.Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
 
  On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com
 wrote:
 
  The package is correct. Here is the error
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Reparse document as HTML
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
  Full(Other) Not Found --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
  I tried it both with the full class name and just Clock. I get the same
  error in both cases.
  Its seems to be saying clk is an undeclared namespace?
 
 
  On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
 timo...@getintheloop.eu
   wrote:
 
 
  Its telling you that the class Clock could not be found - if i were
  you, check the package definitions on the clock class to make sure its
  in the right namespace.
 
  Cheers, Tim
 
  On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
   I compiled the comet Clock app and used the following markup
  
   lift:surround with=default at=content
 lift:comet type=Clock name=Other
   clk:timeMissing Clock/clk:time
 /lift:comet
   /lift:surround
  
   I also used the standard default.html
  
   When I ran it, I got the error
  
   XML parsing failed: syntax error (Line: 13, Character: 4)
  
   Error:undeclared XML namespace prefix used in attribute name
   Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:   body
11:
12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not
 Found
   --
13: clk:timeMissing Clock/clk:time
14:
15:
16:   script type=text/javascript
  
   Any ideas?
  
 
 
 



 


--~--~-~--~~~---~--~~
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: Expires: header value set two times in response header?

2009-09-15 Thread David Pollak
No.  Please open a ticket at http://github.com/dpp/liftweb/issues

On Mon, Sep 14, 2009 at 11:40 PM, jon jonhoff...@gmail.com wrote:


 Is this ok?

 $ curl -I demo.liftweb.net
 HTTP/1.1 200 OK
 Server: nginx/0.6.32
 Date: Tue, 15 Sep 2009 06:37:32 GMT
 Content-Type: text/html; charset=utf-8
 Connection: keep-alive
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Set-Cookie: JSESSIONID=4ybw6k5861ab;Path=/
 Content-Length: 8061
 Expires: Tue, 15 Sep 2009 06:37:32 UTC
 Cache-Control: no-cache; private; no-store; must-revalidate; max-
 stale=0; post-check=0; pre-check=0; max-age=0
 Pragma: no-cache
 X-Lift-Version: 1.1-SNAPSHOT

 



-- 
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: Spring Security

2009-09-15 Thread David Pollak
What does Spring security give you that you can't get with SiteMap for HTML
pages and guards or wrappers around partial functions for non-HTML?

On Mon, Sep 14, 2009 at 11:34 PM, Charles F. Munat c...@munat.com wrote:


 Has anyone tried using Spring Security (formerly Acegi) in Lift?

 If so, care to comment on the experience? Suggestions? Pitfalls?

 Thanks!

 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: trouble with comet Clock example

2009-09-15 Thread Naftoli Gugenheim

I asked because the package statement didn't seem to get pasted into your email 
with the rest of your code, and I've had times that I tracked down errors to an 
incorrect package statement. In Java, if a package statement doesn't correspond 
to a file's containing folder it's an error, but in Scala it just compiles into 
a different package/output folder.

-
Jack Widmanjack.wid...@gmail.com wrote:

I did not try it without the package statement. The class is located in the
snippet folder. It was just pointed out to me that it must be in the comet
folder.

On Tue, Sep 15, 2009 at 10:15 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:


 Did you leave out the package statement? Where is the .class file
 outputted?
 I think the browser is complaining that the error message xml has an
 unbound prefix.


 -
 Jack Widmanjack.wid...@gmail.com wrote:

 And here is the error again:
 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com
 wrote:

  Here is the complete code for my Clock example
  *class*
 
  import scala.xml._
  import net.liftweb.http.S
  import net.liftweb.http.CometActor
  import net.liftweb.http.SessionVar
  import net.liftweb.util._
  import _root_.scala.xml._
  import _root_.net.liftweb.util.Helpers._
  import scala.actors._
 
 
 
 
  class Clock extends CometActor {
override def defaultPrefix = Full(clk)
 
def render = bind(time - timeSpan)
 
def timeSpan = (span id=time{timeNow}/span)
 
ActorPing.schedule(this, Tick, 1L)
 
override def lowPriority :
PartialFunction[Any, Unit] = {
  case Tick = {
partialUpdate(SetHtml(time,
  Text(timeNow.toString)))
ActorPing.schedule(this,Tick, 1L)
  }
}
  }
 
  case object Tick
 
  *markup - (I have also tried it with just *type=Clock since the package
  is in my Boot class)
 
  lift:surround with=default at=content
lift:comet type=com.authoritude.snippet.Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
 
  On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com
 wrote:
 
  The package is correct. Here is the error
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Reparse document as HTML
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
  Full(Other) Not Found --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
  I tried it both with the full class name and just Clock. I get the same
  error in both cases.
  Its seems to be saying clk is an undeclared namespace?
 
 
  On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
 timo...@getintheloop.eu
   wrote:
 
 
  Its telling you that the class Clock could not be found - if i were
  you, check the package definitions on the clock class to make sure its
  in the right namespace.
 
  Cheers, Tim
 
  On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
   I compiled the comet Clock app and used the following markup
  
   lift:surround with=default at=content
 lift:comet type=Clock name=Other
   clk:timeMissing Clock/clk:time
 /lift:comet
   /lift:surround
  
   I also used the standard default.html
  
   When I ran it, I got the error
  
   XML parsing failed: syntax error (Line: 13, Character: 4)
  
   Error:undeclared XML namespace prefix used in attribute name
   Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:   body
11:
12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not
 Found
   --
13: clk:timeMissing Clock/clk:time
14:
15:
16:   script type=text/javascript
  
   Any ideas?
  
 
 
 



 




--~--~-~--~~~---~--~~
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: alternate webroot using Boot?

2009-09-15 Thread David Pollak
On Tue, Sep 15, 2009 at 1:57 AM, tonyc tculs...@gmail.com wrote:


 I'm considering lift for an alternative web framework but need to
 maintain a whole bunch of servlets / filters that already live in my
 web.xml.

 This is the closest thread to this subject so I thought I'd post here.

 I'm trying to get the LiftFilter to match on a distinct url-pattern to
 allow the other filters/servlets to continue matching their current
 url patterns.

 For this reason I need LiftFilter to match on say lift-test/* and so
 it receives requests like http://host/lift-test/index.html, but NOT
 like http://host/index.html


I think you have to put the index.html file in /lift-test/index.html

If this becomes a common occurrence, I think we can introduce something into
LiftRules that will offset where things are looked up and also the
re-writing of URL.



 Trouble is, I'm now a bit confused where to put the (lift) index.html
 in the webapp and/or what I need to change in Boot.scala.

 Scala plays nicely with Java, and I'd like to be able to get web
 frameworks playing nicely as well.

 I've already cobbled together spring/gwt/restlet/apachecxf so I guess
 I'm a glutton for punishment;)

 I suspect there's quite a few people want to integrate Lift with their
 pre-existing webapps, so I'm hoping somebody has solved it already.

 Cheers,

 Tony.

 



-- 
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: trouble with comet Clock example

2009-09-15 Thread Jack Widman
I double checked it. The full package was there, I just failed to include it
in the email.

On Tue, Sep 15, 2009 at 11:12 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:


 I asked because the package statement didn't seem to get pasted into your
 email with the rest of your code, and I've had times that I tracked down
 errors to an incorrect package statement. In Java, if a package statement
 doesn't correspond to a file's containing folder it's an error, but in Scala
 it just compiles into a different package/output folder.

 -
 Jack Widmanjack.wid...@gmail.com wrote:

 I did not try it without the package statement. The class is located in the
 snippet folder. It was just pointed out to me that it must be in the comet
 folder.

 On Tue, Sep 15, 2009 at 10:15 AM, Naftoli Gugenheim naftoli...@gmail.com
 wrote:

 
  Did you leave out the package statement? Where is the .class file
  outputted?
  I think the browser is complaining that the error message xml has an
  unbound prefix.
 
 
  -
  Jack Widmanjack.wid...@gmail.com wrote:
 
  And here is the error again:
  Error!
  XML parsing failed
 
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Reparse document as HTML
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
  Full(Other) Not Found --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
 
  On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com
  wrote:
 
   Here is the complete code for my Clock example
   *class*
  
   import scala.xml._
   import net.liftweb.http.S
   import net.liftweb.http.CometActor
   import net.liftweb.http.SessionVar
   import net.liftweb.util._
   import _root_.scala.xml._
   import _root_.net.liftweb.util.Helpers._
   import scala.actors._
  
  
  
  
   class Clock extends CometActor {
 override def defaultPrefix = Full(clk)
  
 def render = bind(time - timeSpan)
  
 def timeSpan = (span id=time{timeNow}/span)
  
 ActorPing.schedule(this, Tick, 1L)
  
 override def lowPriority :
 PartialFunction[Any, Unit] = {
   case Tick = {
 partialUpdate(SetHtml(time,
   Text(timeNow.toString)))
 ActorPing.schedule(this,Tick, 1L)
   }
 }
   }
  
   case object Tick
  
   *markup - (I have also tried it with just *type=Clock since the
 package
   is in my Boot class)
  
   lift:surround with=default at=content
 lift:comet type=com.authoritude.snippet.Clock name=Other
   clk:timeMissing Clock/clk:time
 /lift:comet
   /lift:surround
  
  
   On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com
  wrote:
  
   The package is correct. Here is the error
   XML parsing failed: syntax error (Line: 13, Character: 4)
  
   Reparse document as HTML
   Error:undeclared XML namespace prefix used in attribute name
   Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:   body
11:
12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock)
 name:
   Full(Other) Not Found --
13: clk:timeMissing Clock/clk:time
14:
15:
16:   script type=text/javascript
   I tried it both with the full class name and just Clock. I get the
 same
   error in both cases.
   Its seems to be saying clk is an undeclared namespace?
  
  
   On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
  timo...@getintheloop.eu
wrote:
  
  
   Its telling you that the class Clock could not be found - if i were
   you, check the package definitions on the clock class to make sure
 its
   in the right namespace.
  
   Cheers, Tim
  
   On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
I compiled the comet Clock app and used the following markup
   
lift:surround with=default at=content
  lift:comet type=Clock name=Other
clk:timeMissing Clock/clk:time
  /lift:comet
/lift:surround
   
I also used the standard default.html
   
When I ran it, I got the error
   
XML parsing failed: syntax error (Line: 13, Character: 4)
   
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
 10:   body
 11:
 12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not
  Found
--
 13: clk:timeMissing Clock/clk:time
 14:
 15:
 16:   script type=text/javascript
   
Any ideas?
   
  
  
  
 
 
 
  
 



 


--~--~-~--~~~---~--~~
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 

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
Ok Great. I will try this first thing when I get home tonight.

On Tue, Sep 15, 2009 at 11:05 AM, David Pollak 
feeder.of.the.be...@gmail.com wrote:



 On Tue, Sep 15, 2009 at 7:18 AM, Jack Widman jack.wid...@gmail.comwrote:

 I did not try it without the package statement. The class is located in
 the snippet folder. It was just pointed out to me that it must be in the
 comet folder.


 Actually, it doesn't matter what folder it's in, but the package my be
 specified correctly or Lift won't know how to find the code.

 In your code above, there is no package declaration, so the code is not
 going to have any package.

 Please take the package line from your snippet file, copy it into your
 Clock file and change snippet to comet and it should work.




 On Tue, Sep 15, 2009 at 10:15 AM, Naftoli Gugenheim naftoli...@gmail.com
  wrote:


 Did you leave out the package statement? Where is the .class file
 outputted?
 I think the browser is complaining that the error message xml has an
 unbound prefix.


 -
 Jack Widmanjack.wid...@gmail.com wrote:

 And here is the error again:
 Error!
 XML parsing failed

 XML parsing failed: syntax error (Line: 13, Character: 4)

 Reparse document as HTML
 Error:undeclared XML namespace prefix used in attribute name
 Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
  10:   body
  11:
  12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock) name:
 Full(Other) Not Found --
  13: clk:timeMissing Clock/clk:time
  14:
  15:
  16:   script type=text/javascript

 On Tue, Sep 15, 2009 at 8:32 AM, Jack Widman jack.wid...@gmail.com
 wrote:

  Here is the complete code for my Clock example
  *class*
 
  import scala.xml._
  import net.liftweb.http.S
  import net.liftweb.http.CometActor
  import net.liftweb.http.SessionVar
  import net.liftweb.util._
  import _root_.scala.xml._
  import _root_.net.liftweb.util.Helpers._
  import scala.actors._
 
 
 
 
  class Clock extends CometActor {
override def defaultPrefix = Full(clk)
 
def render = bind(time - timeSpan)
 
def timeSpan = (span id=time{timeNow}/span)
 
ActorPing.schedule(this, Tick, 1L)
 
override def lowPriority :
PartialFunction[Any, Unit] = {
  case Tick = {
partialUpdate(SetHtml(time,
  Text(timeNow.toString)))
ActorPing.schedule(this,Tick, 1L)
  }
}
  }
 
  case object Tick
 
  *markup - (I have also tried it with just *type=Clock since the
 package
  is in my Boot class)
 
  lift:surround with=default at=content
lift:comet type=com.authoritude.snippet.Clock name=Other
  clk:timeMissing Clock/clk:time
/lift:comet
  /lift:surround
 
 
  On Tue, Sep 15, 2009 at 8:25 AM, Jack Widman jack.wid...@gmail.com
 wrote:
 
  The package is correct. Here is the error
  XML parsing failed: syntax error (Line: 13, Character: 4)
 
  Reparse document as HTML
  Error:undeclared XML namespace prefix used in attribute name
  Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
   10:   body
   11:
   12:   !--FIXME - comet type: Full(com.authoritude.snippet.Clock)
 name:
  Full(Other) Not Found --
   13: clk:timeMissing Clock/clk:time
   14:
   15:
   16:   script type=text/javascript
  I tried it both with the full class name and just Clock. I get the
 same
  error in both cases.
  Its seems to be saying clk is an undeclared namespace?
 
 
  On Tue, Sep 15, 2009 at 4:46 AM, Timothy Perrett
 timo...@getintheloop.eu
   wrote:
 
 
  Its telling you that the class Clock could not be found - if i were
  you, check the package definitions on the clock class to make sure
 its
  in the right namespace.
 
  Cheers, Tim
 
  On Sep 15, 3:38 am, jack jack.wid...@gmail.com wrote:
   I compiled the comet Clock app and used the following markup
  
   lift:surround with=default at=content
 lift:comet type=Clock name=Other
   clk:timeMissing Clock/clk:time
 /lift:comet
   /lift:surround
  
   I also used the standard default.html
  
   When I ran it, I got the error
  
   XML parsing failed: syntax error (Line: 13, Character: 4)
  
   Error:undeclared XML namespace prefix used in attribute name
   Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:   body
11:
12:   !--FIXME - comet type: Full(Clock) name: Full(Other) Not
 Found
   --
13: clk:timeMissing Clock/clk:time
14:
15:
16:   script type=text/javascript
  
   Any ideas?
  
 
 
 










 --
 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 

[Lift] FireFox plug-ins: beware!

2009-09-15 Thread Dano

I recently ran into a problem where the login/logout process of my
lift app was not working - basically redirection was not working.  I
tried different versions of FireFox (3.0, 3.5) and still the problem
persisted.  I thought it was a Lift bug, but others could not
reproduce it.

Finally, I removed the Skype FireFox plugin and magically my Lift app
was cured!

Don't know if others have already run into this, but thought I would
send a note out just in case.

Thanks.


Dano
--~--~-~--~~~---~--~~
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: alternate webroot using Boot?

2009-09-15 Thread tonyc

Thanks David.

It will mean developers can introduce lift gradually without a big
bang approach, which is what I'm trying to do.

It's quite normal to change the url-pattern on servlets/filters and
it's also unusual for a filter which acts on *.html files in the root
to override the default  action (of serving up an html file).

When dynamically changing the content of an html file before serving
up, it's probably a sign that an alternative file extension and/or
location is needed. JSPs (ugh!), do end in *.jsp, not *.html so that
the web container knows not to serve them directly up, ie. they are
picked up by the JSP Servlet, not a filter that matches on every url.

Maybe there is a way with what's already there, but I'm missing
something?

Cheers,

Tony.

On Sep 16, 2:58 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Tue, Sep 15, 2009 at 1:57 AM, tonyc tculs...@gmail.com wrote:

  I'm considering lift for an alternative web framework but need to
  maintain a whole bunch of servlets / filters that already live in my
  web.xml.

  This is the closest thread to this subject so I thought I'd post here.

  I'm trying to get the LiftFilter to match on a distinct url-pattern to
  allow the other filters/servlets to continue matching their current
  url patterns.

  For this reason I need LiftFilter to match on say lift-test/* and so
  it receives requests like http://host/lift-test/index.html, but NOT
  like http://host/index.html

 I think you have to put the index.html file in /lift-test/index.html

 If this becomes a common occurrence, I think we can introduce something into
 LiftRules that will offset where things are looked up and also the
 re-writing of URL.





  Trouble is, I'm now a bit confused where to put the (lift) index.html
  in the webapp and/or what I need to change in Boot.scala.

  Scala plays nicely with Java, and I'd like to be able to get web
  frameworks playing nicely as well.

  I've already cobbled together spring/gwt/restlet/apachecxf so I guess
  I'm a glutton for punishment;)

  I suspect there's quite a few people want to integrate Lift with their
  pre-existing webapps, so I'm hoping somebody has solved it already.

  Cheers,

  Tony.

 --
 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] Problems with ByList on M5

2009-09-15 Thread harryh

val venues = Venue.findAll(ByList(Venue.id, List(1, 2, 3)))

results in the following compile error:

 found   : com.foursquare.model.Venue.id.type (with underlying type
object com.foursquare.model.Venue.id)
 required: net.liftweb.mapper.MappedField
[AnyVal,com.foursquare.model.Venue.MapperType]
Note that implicit conversions are not applicable because they are
ambiguous:
 both method mapToType in object MappedField of type [T,A :
net.liftweb.mapper.Mapper[A]](net.liftweb.mapper.MappedField[T,A])T
 and method mapToType in object MappedField of type [T,A :
net.liftweb.mapper.Mapper[A]](net.liftweb.mapper.MappedField[T,A])T
 are possible conversion functions from
com.foursquare.model.Venue.id.type to net.liftweb.mapper.MappedField
[AnyVal,com.foursquare.model.Venue.MapperType]
  val venues = Venue.findAll(ByList(Venue.id, List(1, 2, 3)))

-harryh
--~--~-~--~~~---~--~~
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: Problems with ByList on M5

2009-09-15 Thread harryh

Though strangely enough, this compiles fine:

val ids: List[Long] = List(1,2,3)
val venues = Venue.findAll(ByList(Venue.id, ids)

Weird!

-harryh

--~--~-~--~~~---~--~~
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: Problems with ByList on M5

2009-09-15 Thread Ross Mellgren

Probably because here you've fixed the type of the list to Long,  
whereas before it was List[Int] since you didn't specify L, e.g.

instead of

val venues = Venue.findAll(ByList(Venue.id, List(1, 2, 3))) // -- List 
[Int] by default

try

val venues = Venue.findAll(ByList(Venue.id, List(1L, 2L, 3L))) // --  
now a List[Long], may do what you want

or

val venues = Venue.findAll(ByList(Venue.id, List[Long](1, 2, 3)))

It (scalac) should probably be able to infer that vals (the second  
argument to ByList) must a List[Long] based on field (the first  
argument) being MappedField[Long, Venue], but I guess it is not.  
Scala's type inferencer seems to in general be best attempt,  
especially in the face of implicits :-/

-Ross

On Sep 15, 2009, at 2:18 PM, harryh wrote:


 Though strangely enough, this compiles fine:

 val ids: List[Long] = List(1,2,3)
 val venues = Venue.findAll(ByList(Venue.id, ids)

 Weird!

 -harryh

 


--~--~-~--~~~---~--~~
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] java.lang.ClassCastException: net.liftweb.mapper.LoggedPreparedStatement cannot be cast to java.lang.String

2009-09-15 Thread Ewan

Hi all

I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
I am finding on a reload the following exception is logged in the
console.

java.lang.ClassCastException:
net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
java.lang.String
at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at scala.List.foreach(List.scala:841)
at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
at net.liftweb.mapper.DB$.exec(DB.scala:301)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1432)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1430)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:375)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:372)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1429)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1423)
at net.liftweb.mapper.DB$.use(DB.scala:389)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1422)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1418)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
1415)
at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
at org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
28)
at bootstrap.liftweb.Boot.boot(Boot.scala:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
(ClassHelpers.scala:408)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
(ClassHelpers.scala:406)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
(LiftRules.scala:1087)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
(LiftRules.scala:1087)
at net.liftweb.util.Full.map(Box.scala:330)
at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
at net.liftweb.http.provider.HTTPProvider$class.bootLift
(HTTPProvider.scala:69)
at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
(ServletFilterProvider.scala:19)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
97)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:658)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
(Jetty6PluginWebAppContext.java:124)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.restartWebApp
(AbstractJettyRunMojo.java:458)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged
(AbstractJettyRunMojo.java:419)
at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:486)
at org.mortbay.util.Scanner.reportDifferences(Scanner.java:352)
at org.mortbay.util.Scanner.scan(Scanner.java:280)
at org.mortbay.util.Scanner$1.run(Scanner.java:232)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
[INFO] Restart completed at Tue Sep 15 19:50:31 BST 2009

I'm running on Derby if that helps.

-- Ewan

--~--~-~--~~~---~--~~
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 

[Lift] Re: JSON forms problem

2009-09-15 Thread Derek Chen-Becker
The apply method should be getting called because the SHtml.json method
should register it as the handler for the form. Would you mind sending me
the code you have and I'll take a look at it? I'm pretty sure this code was
working at one point, but perhaps something has changed.

Derek

On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:


 Actually, the JsonHandler in the example gets called, but not the apply
 (in:Any) method, as
 that is never called in the book example. Also, the handler seems to
 be called twice with every submit.
 Why is that?

 Glenn

 On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
  This may be a question for the Lift Book forum, but has anyone gotten
  the JSON forms example 8.13 in the Lift Book to work?  When I tried
  it, the JsonHandler in class JSONForm never gets called when the
  submit button is clicked.
 
  Glenn
 


--~--~-~--~~~---~--~~
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: java.lang.ClassCastException: net.liftweb.mapper.LoggedPreparedStatement cannot be cast to java.lang.String

2009-09-15 Thread David Pollak
Please try doing  mvn -U clean install jetty:run and see if that makes any
difference.

On Tue, Sep 15, 2009 at 11:54 AM, Ewan ehar...@gmail.com wrote:


 Hi all

 I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
 I am finding on a reload the following exception is logged in the
 console.

 java.lang.ClassCastException:
 net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
 java.lang.String
at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at scala.List.foreach(List.scala:841)
at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
at net.liftweb.mapper.DB$.exec(DB.scala:301)
at
 net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
 $35.apply(MetaMapper.scala:1432)
at
 net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
 $35.apply(MetaMapper.scala:1430)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
 (DB.scala:375)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
 (DB.scala:372)
at
 net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
 (MetaMapper.scala:1429)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
 (MetaMapper.scala:1423)
at net.liftweb.mapper.DB$.use(DB.scala:389)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
 1422)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
 1418)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
 1415)
at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
at
 org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
 28)
at bootstrap.liftweb.Boot.boot(Boot.scala:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
 (ClassHelpers.scala:408)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
 (ClassHelpers.scala:406)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
 (LiftRules.scala:1087)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
 (LiftRules.scala:1087)
at net.liftweb.util.Full.map(Box.scala:330)
at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
at net.liftweb.http.provider.HTTPProvider$class.bootLift
 (HTTPProvider.scala:69)
at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
at
 net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
 (ServletFilterProvider.scala:19)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
 97)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:658)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:517)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 467)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
 (Jetty6PluginWebAppContext.java:124)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:50)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.restartWebApp
 (AbstractJettyRunMojo.java:458)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged
 (AbstractJettyRunMojo.java:419)
at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:486)
at org.mortbay.util.Scanner.reportDifferences(Scanner.java:352)
at org.mortbay.util.Scanner.scan(Scanner.java:280)
at org.mortbay.util.Scanner$1.run(Scanner.java:232)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
 [INFO] Restart completed at Tue Sep 15 19:50:31 BST 2009

 I'm running on Derby if that helps.

 -- Ewan

 



-- 
Lift, the simply 

[Lift] Re: Spring Security

2009-09-15 Thread Timothy Perrett

Whilst I agree there is certainly a lot very good work in spring
security, one has to ask: what is it YOU want from it? You listed a
bunch of features there but one would imagine your not going to be
using them all.

Perhaps look at this another way - what problem do you have that you
feel spring security addresses that is not currently addressed by
lift? (that is, im not saying Lift is perfect just trying to drill
into your requirements)

Cheers, Tim

On Sep 15, 7:38 pm, Charles F. Munat c...@munat.com wrote:
 Pretty much drop-in capability, integration with CAS or JOSSO for
 single-sign-on, easy integration of OpenID, easy integration with
 OpenLDAP, documentation (for the next developer), six years of debugging
 and tweaking, and not reinventing the wheel, for a start...

 Chas.



 David Pollak wrote:
  What does Spring security give you that you can't get with SiteMap for
  HTML pages and guards or wrappers around partial functions for non-HTML?

  On Mon, Sep 14, 2009 at 11:34 PM, Charles F. Munat c...@munat.com
  mailto:c...@munat.com wrote:

      Has anyone tried using Spring Security (formerly Acegi) in Lift?

      If so, care to comment on the experience? Suggestions? Pitfalls?

      Thanks!

      Chas.

  --
  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: Spring Security

2009-09-15 Thread Charles F. Munat

No, actually, I'm going to be using everything listed (though obviously 
*either* CAS or JOSSO, not both). I have the LDAP server up and running. 
I definitely want OpenIDE capability. JOSSO looks easier than CAS, but I 
might be able to avoid that for a while anyway. I am using a 
single-sign-on system for multiple related apps (eventually to be spread 
across multiple servers), but for right now they're in the same JVM.

As I see it, a great benefit of Lift is the ability to use Java 
libraries (and I'm using a lot of them). Yet, it seems that I'm being 
discouraged from using Spring Security... is that the case, and, if so, 
why? Why *wouldn't* I want to use SS?

Chas.

Timothy Perrett wrote:
 Whilst I agree there is certainly a lot very good work in spring
 security, one has to ask: what is it YOU want from it? You listed a
 bunch of features there but one would imagine your not going to be
 using them all.
 
 Perhaps look at this another way - what problem do you have that you
 feel spring security addresses that is not currently addressed by
 lift? (that is, im not saying Lift is perfect just trying to drill
 into your requirements)
 
 Cheers, Tim
 
 On Sep 15, 7:38 pm, Charles F. Munat c...@munat.com wrote:
 Pretty much drop-in capability, integration with CAS or JOSSO for
 single-sign-on, easy integration of OpenID, easy integration with
 OpenLDAP, documentation (for the next developer), six years of debugging
 and tweaking, and not reinventing the wheel, for a start...

 Chas.



 David Pollak wrote:
 What does Spring security give you that you can't get with SiteMap for
 HTML pages and guards or wrappers around partial functions for non-HTML?
 On Mon, Sep 14, 2009 at 11:34 PM, Charles F. Munat c...@munat.com
 mailto:c...@munat.com wrote:
 Has anyone tried using Spring Security (formerly Acegi) in Lift?
 If so, care to comment on the experience? Suggestions? Pitfalls?
 Thanks!
 Chas.
 --
 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: java.lang.ClassCastException: net.liftweb.mapper.LoggedPreparedStatement cannot be cast to java.lang.String

2009-09-15 Thread Derek Chen-Becker
If it still happens for you, please send me your Boot.scala file, since
that's where the exception is being thrown (line 70)

Derek

On Tue, Sep 15, 2009 at 12:54 PM, Ewan ehar...@gmail.com wrote:


 Hi all

 I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
 I am finding on a reload the following exception is logged in the
 console.

 java.lang.ClassCastException:
 net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
 java.lang.String
at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
at scala.List.foreach(List.scala:841)
at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
at net.liftweb.mapper.DB$.exec(DB.scala:301)
at
 net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
 $35.apply(MetaMapper.scala:1432)
at
 net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
 $35.apply(MetaMapper.scala:1430)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
 (DB.scala:375)
at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
 (DB.scala:372)
at
 net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
 (MetaMapper.scala:1429)
at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
 (MetaMapper.scala:1423)
at net.liftweb.mapper.DB$.use(DB.scala:389)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
 1422)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
 1418)
at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
 1415)
at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
at
 org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
 28)
at bootstrap.liftweb.Boot.boot(Boot.scala:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
 (ClassHelpers.scala:408)
at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
 (ClassHelpers.scala:406)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
 (LiftRules.scala:1087)
at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
 (LiftRules.scala:1087)
at net.liftweb.util.Full.map(Box.scala:330)
at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
at net.liftweb.http.provider.HTTPProvider$class.bootLift
 (HTTPProvider.scala:69)
at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
at
 net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
 (ServletFilterProvider.scala:19)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
 97)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:658)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:517)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 467)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
 (Jetty6PluginWebAppContext.java:124)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:50)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.restartWebApp
 (AbstractJettyRunMojo.java:458)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged
 (AbstractJettyRunMojo.java:419)
at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:486)
at org.mortbay.util.Scanner.reportDifferences(Scanner.java:352)
at org.mortbay.util.Scanner.scan(Scanner.java:280)
at org.mortbay.util.Scanner$1.run(Scanner.java:232)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
 [INFO] Restart completed at Tue Sep 15 19:50:31 BST 2009

 I'm running on Derby if that 

[Lift] [bug(s)?] lift-archetype-jpa-basic

2009-09-15 Thread Lanny Ripple

I'm trying to use mvn to grab and build lift-archetype-jpa-basic.
When I do so (using the mvn command from The Lift Book) I find that
the scala.version property is set to ${scala.version} in the top level
pom.xml.

Fixing that problem and trying to mvn install I get many warnings

[clean:clean]
Deleting directory /home/lanny/NetBeansProjects/JPADemo/web/target
[resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
Copying 1 resource
[yuicompressor:compress]
[WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
-1:column -1:Try to use a single 'var' statement per scope.
showHeader!=$.dpConst.SHOW_HEADER_NONE){ --- var  --- headRow=$(dc
(tr));
[WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
-1:column -1:Try to use a single 'var' statement per scope.
(dc(tr));for( --- var  --- i=Date.firstDayOfWeek;iDate.
[WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
-1:column -1:Try to use a single 'var' statement per scope.
...

and some errors

Compiling 4 source files to /home/lanny/NetBeansProjects/JPADemo/web/
target/classes
[WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
bootstrap/liftweb/Boot.scala:22: error: value provider is not a member
of package net.liftweb.http
[WARNING] import _root_.net.liftweb.http.provider._
[WARNING]^
[WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
bootstrap/liftweb/Boot.scala:64: error: wrong number of arguments for
constructor Object: ()java.lang.Object
[WARNING] object swedishOn extends SessionVar(false)
[WARNING]  ^
[WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
bootstrap/liftweb/Boot.scala:68: error: value is is not a member of
object swedishOn
[WARNING] case Nil if swedishOn.is == true = Full
(swedishChef)

I blew away ~/.m2 in the hopes that would help but it did not.

  Regards,
  -ljr

--~--~-~--~~~---~--~~
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] ANNOUNCEMENT: reboot of scala-tools.org

2009-09-15 Thread Derek Chen-Becker
We'll be rebooting the server that hosts scala-tools.org tonight at 11pm
Mountain Time (GMT-6) for maintenance. It should only be down for 5-10
minutes.

Derek

--~--~-~--~~~---~--~~
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: [bug(s)?] lift-archetype-jpa-basic

2009-09-15 Thread Timothy Perrett

This is a known problem - Derek origionally created that archetype but  
we recently made some breaking changes in HEAD. I think the buck is  
currently living on my door for the maven process stuff so to that  
end, I'll try to check-in a change tomorrow that should address this  
for you.

Cheers, Tim

Sent from my iPhone

On 15 Sep 2009, at 21:02, Lanny Ripple lan...@gmail.com wrote:


 I'm trying to use mvn to grab and build lift-archetype-jpa-basic.
 When I do so (using the mvn command from The Lift Book) I find that
 the scala.version property is set to ${scala.version} in the top level
 pom.xml.

 Fixing that problem and trying to mvn install I get many warnings

 [clean:clean]
 Deleting directory /home/lanny/NetBeansProjects/JPADemo/web/target
 [resources:resources]
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 Copying 1 resource
 [yuicompressor:compress]
 [WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
 -1:column -1:Try to use a single 'var' statement per scope.
 showHeader!=$.dpConst.SHOW_HEADER_NONE){ --- var  --- headRow=$(dc
 (tr));
 [WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
 -1:column -1:Try to use a single 'var' statement per scope.
 (dc(tr));for( --- var  --- i=Date.firstDayOfWeek;iDate.
 [WARNING] .../src/main/webapp/scripts/jquery.datePicker.js:line
 -1:column -1:Try to use a single 'var' statement per scope.
 ...

 and some errors

 Compiling 4 source files to /home/lanny/NetBeansProjects/JPADemo/web/
 target/classes
 [WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
 bootstrap/liftweb/Boot.scala:22: error: value provider is not a member
 of package net.liftweb.http
 [WARNING] import _root_.net.liftweb.http.provider._
 [WARNING]^
 [WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
 bootstrap/liftweb/Boot.scala:64: error: wrong number of arguments for
 constructor Object: ()java.lang.Object
 [WARNING] object swedishOn extends SessionVar(false)
 [WARNING]  ^
 [WARNING] /home/lanny/NetBeansProjects/JPADemo/web/src/main/scala/
 bootstrap/liftweb/Boot.scala:68: error: value is is not a member of
 object swedishOn
 [WARNING] case Nil if swedishOn.is == true = Full
 (swedishChef)

 I blew away ~/.m2 in the hopes that would help but it did not.

  Regards,
  -ljr

 


--~--~-~--~~~---~--~~
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: java.lang.ClassCastException: net.liftweb.mapper.LoggedPreparedStatement cannot be cast to java.lang.String

2009-09-15 Thread Ewan

The culprit from Boot.scala line 70...

DB.addLogFunc((query, time) = Log.info(query+: +time+ms))

What do I need to change this for the updated SQL logging you added?

thx

-- Ewan

On Sep 15, 8:56 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
 If it still happens for you, please send me your Boot.scala file, since
 that's where the exception is being thrown (line 70)

 Derek

 On Tue, Sep 15, 2009 at 12:54 PM, Ewan ehar...@gmail.com wrote:

  Hi all

  I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
  I am finding on a reload the following exception is logged in the
  console.

  java.lang.ClassCastException:
  net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
  java.lang.String
         at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
         at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
         at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
         at scala.List.foreach(List.scala:841)
         at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
         at net.liftweb.mapper.DB$.exec(DB.scala:301)
         at
  net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
  $35.apply(MetaMapper.scala:1432)
         at
  net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
  $35.apply(MetaMapper.scala:1430)
         at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
  (DB.scala:375)
         at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
  (DB.scala:372)
         at
  net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
         at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
         at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
         at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
         at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
  (MetaMapper.scala:1429)
         at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
  (MetaMapper.scala:1423)
         at net.liftweb.mapper.DB$.use(DB.scala:389)
         at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
  1422)
         at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
         at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
  1418)
         at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
         at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
  1415)
         at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
         at
  org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
  28)
         at bootstrap.liftweb.Boot.boot(Boot.scala:89)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
  (NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
  (ClassHelpers.scala:408)
         at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
  (ClassHelpers.scala:406)
         at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
  (LiftRules.scala:1087)
         at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
  (LiftRules.scala:1087)
         at net.liftweb.util.Full.map(Box.scala:330)
         at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
         at net.liftweb.http.provider.HTTPProvider$class.bootLift
  (HTTPProvider.scala:69)
         at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
         at
  net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
  (ServletFilterProvider.scala:19)
         at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
         at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
  97)
         at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:50)
         at org.mortbay.jetty.servlet.ServletHandler.initialize
  (ServletHandler.java:658)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
  (WebAppContext.java:1250)
         at org.mortbay.jetty.handler.ContextHandler.doStart
  (ContextHandler.java:517)
         at
  org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
  467)
         at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
  (Jetty6PluginWebAppContext.java:124)
         at org.mortbay.component.AbstractLifeCycle.start
  (AbstractLifeCycle.java:50)
         at org.mortbay.jetty.plugin.AbstractJettyRunMojo.restartWebApp
  (AbstractJettyRunMojo.java:458)
         at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged
  (AbstractJettyRunMojo.java:419)
         at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:486)
         at 

[Lift] FacebookRestApi examples?

2009-09-15 Thread Keith K

Hello,

Are there any code examples that use the Lift Facebook package?  I
encountered one in the Lift Book, but it is incomplete.  I have spent
a lot of time searching, but am only able to find the implementation
of it, not any unit test or some sample code to set up a session,
facebook client, etc.  Thanks,

-Keith

--~--~-~--~~~---~--~~
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: FacebookRestApi examples?

2009-09-15 Thread TylerWeir

I believe Jorge did the original implementation.

I'm not sure if anyone else is using it.

I'd suggest starting on your own app and post when you hit a stumbling
block.  Someone on the list will take a look.



On Sep 15, 4:46 pm, Keith K quasike...@gmail.com wrote:
 Hello,

 Are there any code examples that use the Lift Facebook package?  I
 encountered one in the Lift Book, but it is incomplete.  I have spent
 a lot of time searching, but am only able to find the implementation
 of it, not any unit test or some sample code to set up a session,
 facebook client, etc.  Thanks,

 -Keith
--~--~-~--~~~---~--~~
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: Spring Security

2009-09-15 Thread Charles F. Munat

Whew. You had me worried.

The current Lift system works with Mapper. If you're using JPA you 
pretty much have to roll your own. Even with the Mapper version, plenty 
of work is involved. So I agree, this is an area where it would be nice 
to have something ready to go for folks who just need by-URL protection 
and a login/logout page.

But I think it's perfectly reasonable to expect those doing more 
enterprise level systems to drop in a full solution. I'm not sure it's 
worth spending a lot of Lift time reinventing the wheel there. Making it 
easier to use something like SS might be a better route.

I'm still pretty vague on all this, so open to arguments both ways.

Thanks for your comments, Tim. As always, they help to keep things focused.

Chas.

Timothy Perrett wrote:
 No particular reason... mainly just that we'd like lift to be as full
 featured as possible; as you say, your free to use whatever java libs
 you want: that includes SS.
 
 HTH :-)
 
 Cheers, Tim
 
 Yet, it seems that I'm being
 discouraged from using Spring Security... is that the case, and, if so,
 why? Why *wouldn't* I want to use SS?

  
 

--~--~-~--~~~---~--~~
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: java.lang.ClassCastException: net.liftweb.mapper.LoggedPreparedStatement cannot be cast to java.lang.String

2009-09-15 Thread Ewan

Thanks I'll give that a go.

On Sep 15, 10:03 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
 See this post for some examples:

 http://groups.google.com/group/liftweb/browse_thread/thread/36b9080de...



 On Tue, Sep 15, 2009 at 2:43 PM, Ewan ehar...@gmail.com wrote:

  The culprit from Boot.scala line 70...

     DB.addLogFunc((query, time) = Log.info(query+: +time+ms))

  What do I need to change this for the updated SQL logging you added?

  thx

  -- Ewan

  On Sep 15, 8:56 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
   If it still happens for you, please send me your Boot.scala file, since
   that's where the exception is being thrown (line 70)

   Derek

   On Tue, Sep 15, 2009 at 12:54 PM, Ewan ehar...@gmail.com wrote:

Hi all

I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
I am finding on a reload the following exception is logged in the
console.

java.lang.ClassCastException:
net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
java.lang.String
       at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
       at
  net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
       at
  net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
       at scala.List.foreach(List.scala:841)
       at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
       at net.liftweb.mapper.DB$.exec(DB.scala:301)
       at
net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1432)
       at
net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1430)
       at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:375)
       at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:372)
       at
net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
       at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
       at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
       at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
       at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1429)
       at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1423)
       at net.liftweb.mapper.DB$.use(DB.scala:389)
       at
  net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1422)
       at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
       at
  net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1418)
       at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
       at
  net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
1415)
       at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
       at
org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
28)
       at bootstrap.liftweb.Boot.boot(Boot.scala:89)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
(ClassHelpers.scala:408)
       at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
(ClassHelpers.scala:406)
       at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
(LiftRules.scala:1087)
       at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
(LiftRules.scala:1087)
       at net.liftweb.util.Full.map(Box.scala:330)
       at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
       at net.liftweb.http.provider.HTTPProvider$class.bootLift
(HTTPProvider.scala:69)
       at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
       at
net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
(ServletFilterProvider.scala:19)
       at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
       at
  org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
97)
       at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:658)
       at
  org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
       at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1250)
       at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
       at 

[Lift] Silly Question

2009-09-15 Thread Randinn

I was wondering if the plan is to move to record eventually why is
there improvements being made to mapper? Are they only debugging
changes?
--~--~-~--~~~---~--~~
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: Silly Question

2009-09-15 Thread Derek Chen-Becker
My understanding is that although Record is being designed to have different
driver backends, one of the drivers will be something that utilizes a lot
of the existing Mapper framework.

Derek

On Tue, Sep 15, 2009 at 4:27 PM, Randinn rand...@gmail.com wrote:


 I was wondering if the plan is to move to record eventually why is
 there improvements being made to mapper? Are they only debugging
 changes?
 


--~--~-~--~~~---~--~~
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: FacebookRestApi examples?

2009-09-15 Thread Keith K

Hello,

I am able to get a certain distance, to the point where FB gives me
back an authToken.  Here is my code.

println(FacebookRestApi.apiKey =  + FacebookRestApi.apiKey);

val respNode: Node = FacebookClient !? (AuthCreateToken);
val authToken = respNode.text;

println(authToken =  + authToken);

val fbSession: Option[FacebookSession] =
FacebookSession.fromAuthToken(authToken)

println(fbSession =  + fbSession.toString);

This doesn't include the code for the apiKey and secret. I see the
following output:

FacebookRestApi.apiKey = 25548077c8db93252a947a525d93be02
authToken = cd86be265bfcacf96a2dc392ffed874c
fbSession = None


Maybe as a scala newbie, I'm not handling the fbSession code properly,
but it's coming back with None, which seems weird to me.


On Sep 15, 2:02 pm, TylerWeir tyler.w...@gmail.com wrote:
 I believe Jorge did the original implementation.

 I'm not sure if anyone else is using it.

 I'd suggest starting on your own app and post when you hit a stumbling
 block.  Someone on the list will take a look.

 On Sep 15, 4:46 pm, Keith K quasike...@gmail.com wrote:

  Hello,

  Are there any code examples that use the Lift Facebook package?  I
  encountered one in the Lift Book, but it is incomplete.  I have spent
  a lot of time searching, but am only able to find the implementation
  of it, not any unit test or some sample code to set up a session,
  facebook client, etc.  Thanks,

  -Keith



--~--~-~--~~~---~--~~
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: JSON forms problem

2009-09-15 Thread marius d.

Maybe this would help ?

http://wiki.liftweb.net/index.php/HowTo_use_JSON_forms

This definitely worked but I haven't tested in a while. Also the lift
book example was tested before putting it in the book. If there is
indeed a lift problem I'd be happy to correct it ASAP.

Br's,
Marius

On Sep 15, 1:59 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
 The apply method should be getting called because the SHtml.json method
 should register it as the handler for the form. Would you mind sending me
 the code you have and I'll take a look at it? I'm pretty sure this code was
 working at one point, but perhaps something has changed.

 Derek

 On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:

  Actually, the JsonHandler in the example gets called, but not the apply
  (in:Any) method, as
  that is never called in the book example. Also, the handler seems to
  be called twice with every submit.
  Why is that?

  Glenn

  On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
   This may be a question for the Lift Book forum, but has anyone gotten
   the JSON forms example 8.13 in the Lift Book to work?  When I tried
   it, the JsonHandler in class JSONForm never gets called when the
   submit button is clicked.

   Glenn
--~--~-~--~~~---~--~~
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: JSON forms problem

2009-09-15 Thread glenn

Derek,

Here is the template. Just as in the book.

lift:surround with=default at=content
lift:JSONForm.head /
lift:JSONForm.show
input type=text name=name /
br /
input type=text name=value /
br /
input type=radio name=vehicle value=Bike /
input type=radio name=vehicle value=Car /
input type=radio name=vehicle value=Airplane /
br /
select name=cars 
option value=volvoVolvo/option
option value=saabSaab/option
option value=opelOpel/option
option value=audiAudi/option
/select
button type=submitSubmit/button
/lift:JSONForm.show
div id=json_result/div
/lift:surround

And  here is my JSONForm class:


class JSONForm {

  def head = head{Script(json.jsCmd)}/head
  def show(html: Group): NodeSeq = {
  json.jsCmd
  SHtml.jsonForm(json, html)
  }

   object json extends JsonHandler {
def apply(in: Any): JsCmd =
  SetHtml(json_result, Text(This is a test))


  }
}

Here, I just simplified the JsCmd returned from the handler.

I understand that in the head method, the call to json.jsCmd creates
the ajax handler (from the apply method), but clicking on the submit
button on the form doesn't populate the json_result div. In fact,
it doesn't do anything even though, on the page source, the button's
onclick method is
wired up.


Glenn

On Sep 15, 11:59 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
 The apply method should be getting called because the SHtml.json method
 should register it as the handler for the form. Would you mind sending me
 the code you have and I'll take a look at it? I'm pretty sure this code was
 working at one point, but perhaps something has changed.

 Derek

 On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:

  Actually, the JsonHandler in the example gets called, but not the apply
  (in:Any) method, as
  that is never called in the book example. Also, the handler seems to
  be called twice with every submit.
  Why is that?

  Glenn

  On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
   This may be a question for the Lift Book forum, but has anyone gotten
   the JSON forms example 8.13 in the Lift Book to work?  When I tried
   it, the JsonHandler in class JSONForm never gets called when the
   submit button is clicked.

   Glenn
--~--~-~--~~~---~--~~
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: JSON forms problem

2009-09-15 Thread marius d.

Do you see any errors in FireBug ? ... Do see the Ajax request being
send out in FireBug?

On Sep 15, 5:49 pm, glenn gl...@exmbly.com wrote:
 Derek,

 Here is the template. Just as in the book.

 lift:surround with=default at=content
 lift:JSONForm.head /
 lift:JSONForm.show
 input type=text name=name /
 br /
 input type=text name=value /
 br /
 input type=radio name=vehicle value=Bike /
 input type=radio name=vehicle value=Car /
 input type=radio name=vehicle value=Airplane /
 br /
 select name=cars 
 option value=volvoVolvo/option
 option value=saabSaab/option
 option value=opelOpel/option
 option value=audiAudi/option
 /select
 button type=submitSubmit/button
 /lift:JSONForm.show
 div id=json_result/div
 /lift:surround

 And  here is my JSONForm class:

 class JSONForm {

   def head = head{Script(json.jsCmd)}/head
   def show(html: Group): NodeSeq = {
       json.jsCmd
       SHtml.jsonForm(json, html)
   }

    object json extends JsonHandler {
                 def apply(in: Any): JsCmd =
                   SetHtml(json_result, Text(This is a test))

   }

 }

 Here, I just simplified the JsCmd returned from the handler.

 I understand that in the head method, the call to json.jsCmd creates
 the ajax handler (from the apply method), but clicking on the submit
 button on the form doesn't populate the json_result div. In fact,
 it doesn't do anything even though, on the page source, the button's
 onclick method is
 wired up.

 Glenn

 On Sep 15, 11:59 am, Derek Chen-Becker dchenbec...@gmail.com wrote:

  The apply method should be getting called because the SHtml.json method
  should register it as the handler for the form. Would you mind sending me
  the code you have and I'll take a look at it? I'm pretty sure this code was
  working at one point, but perhaps something has changed.

  Derek

  On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:

   Actually, the JsonHandler in the example gets called, but not the apply
   (in:Any) method, as
   that is never called in the book example. Also, the handler seems to
   be called twice with every submit.
   Why is that?

   Glenn

   On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
This may be a question for the Lift Book forum, but has anyone gotten
the JSON forms example 8.13 in the Lift Book to work?  When I tried
it, the JsonHandler in class JSONForm never gets called when the
submit button is clicked.

Glenn
--~--~-~--~~~---~--~~
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: JSON forms problem

2009-09-15 Thread marius d.

Where is the head function in your code ?

Here is an example:

def head = headscript type=text/javascript src=/classpath/
jlift.js / {Script(json.jsCmd)}/head

Br's,
Marius

On Sep 15, 5:55 pm, marius d. marius.dan...@gmail.com wrote:
 Do you see any errors in FireBug ? ... Do see the Ajax request being
 send out in FireBug?

 On Sep 15, 5:49 pm, glenn gl...@exmbly.com wrote:

  Derek,

  Here is the template. Just as in the book.

  lift:surround with=default at=content
  lift:JSONForm.head /
  lift:JSONForm.show
  input type=text name=name /
  br /
  input type=text name=value /
  br /
  input type=radio name=vehicle value=Bike /
  input type=radio name=vehicle value=Car /
  input type=radio name=vehicle value=Airplane /
  br /
  select name=cars 
  option value=volvoVolvo/option
  option value=saabSaab/option
  option value=opelOpel/option
  option value=audiAudi/option
  /select
  button type=submitSubmit/button
  /lift:JSONForm.show
  div id=json_result/div
  /lift:surround

  And  here is my JSONForm class:

  class JSONForm {

    def head = head{Script(json.jsCmd)}/head
    def show(html: Group): NodeSeq = {
        json.jsCmd
        SHtml.jsonForm(json, html)
    }

     object json extends JsonHandler {
                  def apply(in: Any): JsCmd =
                    SetHtml(json_result, Text(This is a test))

    }

  }

  Here, I just simplified the JsCmd returned from the handler.

  I understand that in the head method, the call to json.jsCmd creates
  the ajax handler (from the apply method), but clicking on the submit
  button on the form doesn't populate the json_result div. In fact,
  it doesn't do anything even though, on the page source, the button's
  onclick method is
  wired up.

  Glenn

  On Sep 15, 11:59 am, Derek Chen-Becker dchenbec...@gmail.com wrote:

   The apply method should be getting called because the SHtml.json method
   should register it as the handler for the form. Would you mind sending me
   the code you have and I'll take a look at it? I'm pretty sure this code 
   was
   working at one point, but perhaps something has changed.

   Derek

   On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:

Actually, the JsonHandler in the example gets called, but not the apply
(in:Any) method, as
that is never called in the book example. Also, the handler seems to
be called twice with every submit.
Why is that?

Glenn

On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
 This may be a question for the Lift Book forum, but has anyone gotten
 the JSON forms example 8.13 in the Lift Book to work?  When I tried
 it, the JsonHandler in class JSONForm never gets called when the
 submit button is clicked.

 Glenn
--~--~-~--~~~---~--~~
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] small bug in SHtml.ajaxText

2009-09-15 Thread harryh

Neither of the ajaxText methods take attrs: (String, String)*

The private ajaxText_* does, but the public methods don't.

-harryh

--~--~-~--~~~---~--~~
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: Spring Security

2009-09-15 Thread David Pollak
On Tue, Sep 15, 2009 at 2:12 PM, Charles F. Munat c...@munat.com wrote:


 Whew. You had me worried.

 The current Lift system works with Mapper.


The existing page/URL level security has nothing to do with Mapper.  There's
nothing that can be done with Mapper that can't be done with JPA (with the
exception of Mapper's field-level access control which, to my knowledge, is
not being used anywhere.)


 If you're using JPA you
 pretty much have to roll your own. Even with the Mapper version, plenty
 of work is involved. So I agree, this is an area where it would be nice
 to have something ready to go for folks who just need by-URL protection
 and a login/logout page.

 But I think it's perfectly reasonable to expect those doing more
 enterprise level systems to drop in a full solution. I'm not sure it's
 worth spending a lot of Lift time reinventing the wheel there. Making it
 easier to use something like SS might be a better route.


I radically disagree.  Having a separate concern doing security is a
disaster because there'll always be some place where one system believes one
thing and the other system believes something else.

I would like to see a set of security abstractions in Lift that could have
plugable integration with OpenID, LDAP, etc.  Do I have time to write it?
 No.  Would it take a lot more time to write such a thing than to bolt SS or
some other bloated Java thingy into Lift?  I doubt it.



 I'm still pretty vague on all this, so open to arguments both ways.

 Thanks for your comments, Tim. As always, they help to keep things focused.

 Chas.

 Timothy Perrett wrote:
  No particular reason... mainly just that we'd like lift to be as full
  featured as possible; as you say, your free to use whatever java libs
  you want: that includes SS.
 
  HTH :-)
 
  Cheers, Tim
 
  Yet, it seems that I'm being
  discouraged from using Spring Security... is that the case, and, if so,
  why? Why *wouldn't* I want to use SS?
 
  
 

 



-- 
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: small bug in SHtml.ajaxText

2009-09-15 Thread David Pollak
http://reviewboard.liftweb.net/r/5/

On Tue, Sep 15, 2009 at 4:22 PM, harryh har...@gmail.com wrote:


 Neither of the ajaxText methods take attrs: (String, String)*

 The private ajaxText_* does, but the public methods don't.

 -harryh

 



-- 
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: FacebookRestApi examples?

2009-09-15 Thread Keith K

I don't see any thing obviously wrong in the facebook package's method
def genSignature(allParams: List[(String, Any)], secret: String).

Wish I did!

-Keith

On Sep 15, 3:34 pm, Keith K quasike...@gmail.com wrote:
 Hello,

 I am able to get a certain distance, to the point where FB gives me
 back an authToken.  Here is my code.

         println(FacebookRestApi.apiKey =  + FacebookRestApi.apiKey);

         val respNode: Node = FacebookClient !? (AuthCreateToken);
         val authToken = respNode.text;

         println(authToken =  + authToken);

         val fbSession: Option[FacebookSession] =
 FacebookSession.fromAuthToken(authToken)

         println(fbSession =  + fbSession.toString);

 This doesn't include the code for the apiKey and secret. I see the
 following output:

 FacebookRestApi.apiKey = 25548077c8db93252a947a525d93be02
 authToken = cd86be265bfcacf96a2dc392ffed874c
 fbSession = None

 Maybe as a scala newbie, I'm not handling the fbSession code properly,
 but it's coming back with None, which seems weird to me.

 On Sep 15, 2:02 pm, TylerWeir tyler.w...@gmail.com wrote:

  I believe Jorge did the original implementation.

  I'm not sure if anyone else is using it.

  I'd suggest starting on your own app and post when you hit a stumbling
  block.  Someone on the list will take a look.

  On Sep 15, 4:46 pm, Keith K quasike...@gmail.com wrote:

   Hello,

   Are there any code examples that use the Lift Facebook package?  I
   encountered one in the Lift Book, but it is incomplete.  I have spent
   a lot of time searching, but am only able to find the implementation
   of it, not any unit test or some sample code to set up a session,
   facebook client, etc.  Thanks,

   -Keith


--~--~-~--~~~---~--~~
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: Spring Security

2009-09-15 Thread Charles F. Munat

David Pollak wrote:
 The existing page/URL level security has nothing to do with Mapper. 
  There's nothing that can be done with Mapper that can't be done with 
 JPA (with the exception of Mapper's field-level access control which, to 
 my knowledge, is not being used anywhere.)

I meant that the login feature when you use the basic archetype is set 
up to work with Mapper, not that login is part of Mapper. It could be 
adapted to work with JPA easily, but there is no JPA archetype so far 
that includes that login functionality (that I'm aware of). You have to 
roll your own.

 I radically disagree.  Having a separate concern doing security is a 
 disaster because there'll always be some place where one system believes 
 one thing and the other system believes something else.

A disaster? Always? Really? Even allowing for hyperbole, if these 
systems are so bad, why are so many people using them -- apparently with 
great success? Without some evidence to back this claim up, I'm dubious.

That said, it certainly would be nice to have these capabilities in 
Lift. But I don't have the time either. SS looks pretty drop in.

There may also be situations where using a particular solution (such as 
SS) is a requirement and make-or-break on whether Lift can be used, so I 
don't see the ability to make Lift work with such software as a negative.

I have a lot more to say on this, but have to run. Maybe later.

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: using jquery 1.3.2 and 'tabs'

2009-09-15 Thread David

This worked perfectly thank you.

-Dave

On Sep 13, 2:33 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:
 David,

 1. Lift includes jquery-1.3.2, just do:

 script id=jquery src=/classpath/jquery.js type=text/
 javascript/script and your done.

 2. For the other stuff:

 a. Put the files in src/main/resources/toserve/ui (e.g., src/main/
 resources/toserve/ui/ui.tabs.js)

 b. Add them to ResourceServer.allowedPaths by adding this to Boot:
     ResourceServer.allow {
       case ui :: _ = true
     }

 c. Refer them as script id=jquery src=/classpath/ui/ui.tabs.js
 type=text/javascript/script

 Hope this helps.

 Cheers, Indrajit

 On Sep 13, 9:43 am, David david.b...@gmail.com wrote:

  I'd like to use the latest jquery, 1.3.2.  I'm new to both jquery and
  lift but I like what I see!
      script type=text/javascript src=../js/jquery-1.3.2.js/
  script
      script type=text/javascript src=../js/ui/ui.core.js/script
      script type=text/javascript src=../js/ui/ui.tabs.js/script
      script id=json src=/classpath/json.js type=text/javascript/

      script type=text/javascript
        $(function() {
        $(#tabs).tabs();
        });
      /script
      /head
      body
          lift:surround with=default at=content

  I get this error:

  $(#tabs).tabs is not a functionhttp://localhost:8080/hello
  Line 33

  Is it possible to mix separately downloaded jquery?  If I save the
  'source' of the html after lift has processed, from the browser,
  jquery tabs are working.  But from the dynamic jetty instance, the
  tabs do not work and I get that error.

  Thanks for any help you can provide.
--~--~-~--~~~---~--~~
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: small bug in SHtml.ajaxText

2009-09-15 Thread harryh

 http://reviewboard.liftweb.net/r/5/

Thanks!

-harryh

--~--~-~--~~~---~--~~
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 should i put the props file?

2009-09-15 Thread XiaomingZheng

it works~~~thank u!
but i read the lift source code, the framework searches /props/ and
/ dirs, how can this framework find props files in resource dir?

On Sep 15, 6:20 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
 XiaomingZheng xiaomingzhen...@gmail.com writes:
  i wanted to use a property file and put a file named default.props in
  myapp/props/ dir, but i found the property is not set correctly. Where
  should i put the property file? my os is windows vista. Thanks~~

 If you're using the default layout, it should go in
 myapp/src/main/resources/props

 /Jeppe
--~--~-~--~~~---~--~~
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] Proper way to upgrade Lift and Scala libs?

2009-09-15 Thread Ike

Hi all,

I've seen in a couple of posts here that I can just update the
corresponding dependencies in the POM and get the updated libraries. I
did this for both the Lift libs (1.0 - 1.0.2) and the Scala lib
(2.7.5 - 2.7.6). Although Maven did download the new libraries now
I'm seeing the following warning on mvn jetty:run:

[WARNING] Multiple versions of scala libraries detected!

Should I just delete the previous version of the lib from somewhere?
removing it from the .m2/repository location didn't help.

Is there a reference for a suggested way to upgrade the Lift and Scala
version of *existing* projects? I couldn't find it in the Wiki. I
think this should be clearly documented somewhere (specially for a
v1.0) and I'll be happy to write a couple of paragraphs on it if I can
figure out best practices.

Thanks,

Ike

--~--~-~--~~~---~--~~
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] **IMPORTANT** Do Not change to Scala 2.7.6

2009-09-15 Thread David Pollak
Folks,
Do not change your version to Scala 2.7.6.  2.7.6 is broken (it will not
compile Lift).  Just stick with 2.7.5.

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: Proper way to upgrade Lift and Scala libs?

2009-09-15 Thread David Pollak
On Tue, Sep 15, 2009 at 8:28 PM, Ike ikes...@gmail.com wrote:


 Hi all,

 I've seen in a couple of posts here that I can just update the
 corresponding dependencies in the POM and get the updated libraries. I
 did this for both the Lift libs (1.0 - 1.0.2) and the Scala lib
 (2.7.5 - 2.7.6).


Lift (1.1-X and 1.0.1/1.0.2) is compiled against Scala 2.7.5  This is the
version you should be using.

Do not upgrade to 2.7.6  2.7.6 is a broken release.


 Although Maven did download the new libraries now
 I'm seeing the following warning on mvn jetty:run:

 [WARNING] Multiple versions of scala libraries detected!

 Should I just delete the previous version of the lib from somewhere?
 removing it from the .m2/repository location didn't help.

 Is there a reference for a suggested way to upgrade the Lift and Scala
 version of *existing* projects? I couldn't find it in the Wiki. I
 think this should be clearly documented somewhere (specially for a
 v1.0) and I'll be happy to write a couple of paragraphs on it if I can
 figure out best practices.

 Thanks,

 Ike

 



-- 
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: Proper way to upgrade Lift and Scala libs?

2009-09-15 Thread Wilson MacGyver

On Tue, Sep 15, 2009 at 11:44 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 Lift (1.1-X and 1.0.1/1.0.2) is compiled against Scala 2.7.5  This is the
 version you should be using.
 Do not upgrade to 2.7.6  2.7.6 is a broken release.

can you expand on that? Do you mean 2.7.6 is a broken release for using it
with lift, or 2.7.6 is just plain broken for scala development, and should
stick to 2.7.5?


-- 
Omnem crede diem tibi diluxisse supremum.

--~--~-~--~~~---~--~~
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: JSON forms problem

2009-09-15 Thread marius d.

Right ... the head method should not have the js script but did you
include the jlift.js script in your default template?

I'll build an example this week (when I'll find some time for it) and
see if I'm running into the same problems as you are. If you somehow
manage to fix it please let me know. How urgent is this for you?

Br's,
Marius

On Sep 15, 6:15 pm, glenn gl...@exmbly.com wrote:
 But, the head method does add the javascript to the page, so no src
 attribute is needed, right?

 On Sep 15, 3:59 pm, marius d. marius.dan...@gmail.com wrote:

  Where is the head function in your code ?

  Here is an example:

  def head = headscript type=text/javascript src=/classpath/
  jlift.js / {Script(json.jsCmd)}/head

  Br's,
  Marius

  On Sep 15, 5:55 pm, marius d. marius.dan...@gmail.com wrote:

   Do you see any errors in FireBug ? ... Do see the Ajax request being
   send out in FireBug?

   On Sep 15, 5:49 pm, glenn gl...@exmbly.com wrote:

Derek,

Here is the template. Just as in the book.

lift:surround with=default at=content
lift:JSONForm.head /
lift:JSONForm.show
input type=text name=name /
br /
input type=text name=value /
br /
input type=radio name=vehicle value=Bike /
input type=radio name=vehicle value=Car /
input type=radio name=vehicle value=Airplane /
br /
select name=cars 
option value=volvoVolvo/option
option value=saabSaab/option
option value=opelOpel/option
option value=audiAudi/option
/select
button type=submitSubmit/button
/lift:JSONForm.show
div id=json_result/div
/lift:surround

And  here is my JSONForm class:

class JSONForm {

  def head = head{Script(json.jsCmd)}/head
  def show(html: Group): NodeSeq = {
      json.jsCmd
      SHtml.jsonForm(json, html)
  }

   object json extends JsonHandler {
                def apply(in: Any): JsCmd =
                  SetHtml(json_result, Text(This is a test))

  }

}

Here, I just simplified the JsCmd returned from the handler.

I understand that in the head method, the call to json.jsCmd creates
the ajax handler (from the apply method), but clicking on the submit
button on the form doesn't populate the json_result div. In fact,
it doesn't do anything even though, on the page source, the button's
onclick method is
wired up.

Glenn

On Sep 15, 11:59 am, Derek Chen-Becker dchenbec...@gmail.com wrote:

 The apply method should be getting called because the SHtml.json 
 method
 should register it as the handler for the form. Would you mind 
 sending me
 the code you have and I'll take a look at it? I'm pretty sure this 
 code was
 working at one point, but perhaps something has changed.

 Derek

 On Mon, Sep 14, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote:

  Actually, the JsonHandler in the example gets called, but not the 
  apply
  (in:Any) method, as
  that is never called in the book example. Also, the handler seems to
  be called twice with every submit.
  Why is that?

  Glenn

  On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
   This may be a question for the Lift Book forum, but has anyone 
   gotten
   the JSON forms example 8.13 in the Lift Book to work?  When I 
   tried
   it, the JsonHandler in class JSONForm never gets called when the
   submit button is clicked.

   Glenn
--~--~-~--~~~---~--~~
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: Proper way to upgrade Lift and Scala libs?

2009-09-15 Thread Ike

On Sep 15, 11:44 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Tue, Sep 15, 2009 at 8:28 PM, Ike ikes...@gmail.com wrote:

  Hi all,

  I've seen in a couple of posts here that I can just update the
  corresponding dependencies in the POM and get the updated libraries. I
  did this for both the Lift libs (1.0 - 1.0.2) and the Scala lib
  (2.7.5 - 2.7.6).

 Lift (1.1-X and 1.0.1/1.0.2) is compiled against Scala 2.7.5  This is the
 version you should be using.

 Do not upgrade to 2.7.6  2.7.6 is a broken release.

Got it. Thanks David.

What about the upgrade process itself? Is editing the POM the
recommended way? What would be the proper way to verify the proper
versions/combinations to use in the future?

Any plans in the works for upgrading existing projects and keeping the
lift/scala libs in sync? It would be great if we could do something
like mvn upgrade 1.0.2 or mvn upgrade current to take care of this, at
least for minor upgrades.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---