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
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
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
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
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
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
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:
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
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 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
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,
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
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
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
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
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,
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
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
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
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
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
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
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]
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
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,
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
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
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
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
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
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
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]
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
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.
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
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,
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
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
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
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
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
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;
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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).
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
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
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
60 matches
Mail list logo