Thank you for writing this up, Naftoli.
I edited the abbreviation section ...
Heiko
2009/12/18 Naftoli Gugenheim naftoli...@gmail.com
(Not sure why on Chrome the wiki article page is all centered. Reported it
to Chrome.)
Can everyone look over the article? Especially everyone quoted in it
Hi,
I created an issue (#251) to Make it possible to add LocParams to
MetaMegaProtoUser's menus:
The various user related menus are created by methods xxxMenuLoc (e.g.
loginMenuLoc) which give us no flexibility to add LocParams. Why would there
be a need for that? E.g. for adding a LocGroup in
Naftoli Gugenheim naftoli...@gmail.com writes:
What would such an abstraction do?
What code would you like to write (including templates) and what should it do?
I had some input here:
Heiko Seeberger heiko.seeber...@googlemail.com writes:
Hi,
I created an issue (#251) to Make it possible to add LocParams to
MetaMegaProtoUser's menus:
The various user related menus are created by methods xxxMenuLoc (e.g.
loginMenuLoc) which give us no flexibility to add LocParams. Why
I have a project where a snippet generates the code for a comet actor, but
when I open two(or more) windows of the same browser on the page I can see
that javascript on both pages start to makes continuous comet calls.
I attach a simple project that reproduce the problem.
Please any fix or
This is not a bug. When Lift detects multiple requests for the same
session it breaks out the Comet request. This is a safety mechanism in
order to avoid HTTP connection starvation on the client side. This is
because browsers have a very limited connection pools and the number
of parallel HTTP
And this does not affect performances? or server side computations?
Andrea
Il Friday 18 December 2009 10:50:17 Marius ha scritto:
This is not a bug. When Lift detects multiple requests for the same
session it breaks out the Comet request. This is a safety mechanism in
order to avoid HTTP
i have problem with rewriting
if i do something like this
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List(Documents), _,
_, _), _, _) =
RewriteResponse(List(Documents, VZN ))
}
evrything works fine but if i do
val
Not sure what you mean ... what concerns do you have about
performance? ... If you are referring to this mechanism built in Lift,
there is virtually no performance impact. This is very lightweight.
If you are referring to something else, please provide more details
about your concerns.
Br's,
On Fri, Dec 18, 2009 at 1:58 AM, Andrea Peruffo a.peru...@mcmspa.it wrote:
And this does not affect performances? or server side computations?
The short answer is that it does increase the amount of HTTP traffic, but
with HTTP keep-alive, that's not a lot of new TCP/IP connections.
On the
On Thu, Dec 17, 2009 at 10:16 PM, ngocdaothanh ngocdaoth...@gmail.comwrote:
I am sorry. That compilation error comes from Lift's branch for Scala
2.8.
The 2.8 branch is not a complete port of Lift. It's lift-base, lift-mapper
and the lift-examples/example code. We will complete the port
For stable identifers, see the Scala Language Specification, section 8.1.4:
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaReference.pdf
You can also see this discussion:
http://old.nabble.com/About-Class-Type-match-td22309426.html
Short answer is that you
Hi,
You have few options:
- DB.runQuery(UPDATE blogs set click_counts=click_counts+1 WHERE
id=1)
- DBprepareStatement(UPDATE blogs set click_counts=click_counts+1
WHERE id=?,yourDBConnection) {
stmt =
stmt.setLong(1,1)
stmt.executeUpdate()
}
Where first 1 in setLong is position in prepared
I need to add a beforeSave() callback, so I wrote:
class X extends LongKeyedMapper[X] with IdPK with
LifecycleCallbacks {
def getSingleton = X
def beforeSave {
println(hi!)
}
...
}
object X extends X with LongKeyedMetaMapper[X] {
...
}
Then
I think LifecycleCallbacks is needed for fields, not the mapper itself.
-
night_stalkerusur...@gmail.com wrote:
I need to add a beforeSave() callback, so I wrote:
class X extends LongKeyedMapper[X] with IdPK with
LifecycleCallbacks {
def
David,
mvn clean compile
worked. Thanks!
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com.
For more
I had the same problem with a User object that extends
MetaMegaProtoUser[User], which has the MetaMapper trait as well.
The afterSave you wish to override is defined in the trait
net.liftweb.mapper.MetaMapper as def afterSave: List[(A) = Any] =
Nil.
You can add an operation to afterSave like
Got it, I was a little bit confused :)
class X extends LongKeyedMapper[X] with IdPK {
...
}
object X extends X with LongKeyedMetaMapper[X] {
override def beforeSave = List((x: X) = {
println(hi)
()
})
}
On Dec 18, 11:50 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
I think
Hi Marcin,
Thank you very much! The update statement works now!
There is a question about the insert statement, how can i use the
prepareStatement ?
###
INSERT INTO blogs click_counts=100 WHERE id=1
###
I'm not familiar with it,
Thanks very much!
:)
Cheers,
Neil
On Dec
On Fri, Dec 18, 2009 at 9:28 AM, night_stalker usur...@gmail.com wrote:
Got it, I was a little bit confused :)
class X extends LongKeyedMapper[X] with IdPK {
...
}
object X extends X with LongKeyedMetaMapper[X] {
override def beforeSave = List((x: X) = {
println(hi)
()
})
}
All,
Nexus/Hudson will be temporarily disabled Saturday/Sunday from 8-11pm
EST. These services are being upgraded. I'll post an email 15 minutes
before the actual shutdown and immediately after things are back up and
working. You should be able to make use of artifacts on the
On Fri, Dec 18, 2009 at 12:38 PM, Josh Suereth joshua.suer...@gmail.comwrote:
All,
Nexus/Hudson will be temporarily disabled Saturday/Sunday from 8-11pm
EST. These services are being upgraded. I'll post an email 15 minutes
before the actual shutdown and immediately after things are back
On Sun, Dec 13, 2009 at 9:08 PM, Todd ojint...@gmail.com wrote:
Looking to properly label my radios with label for=inputid/
labelinput id=inputid /. Here's my current snippet:
def create(xhtml: NodeSeq) : NodeSeq = {
def submitHandler() = {
On Thu, Dec 10, 2009 at 12:13 PM, Nolan Darilek no...@thewordnerd.infowrote:
Hello, all. I'm sure this is an incredibly silly mistake on my part, but
I've never really done AJAX until playing with Lift and am at a loss as
to what's going wrong.
I'm dusting off my old geolocation web app. My
Hi all,
I think there is a simple answer to this, but I'm a little confused. I
want to update a bound element when my Ajax form is submitted. Here's
a simple version based upon what I gleaned from the wiki and the
mailing list:
lift:Test.form
pDisplay: test:display //p
pInput1: test:input1
On Fri, Dec 11, 2009 at 8:21 AM, Nolan Darilek no...@thewordnerd.infowrote:
Hello. Sorry for being the squeaky wheel on this one, but I'm really at
a loss with no way to know if this is an issue with me, or with how I'm
doing things in Lift. I've also been at this particular problem for a
bit
On Fri, Dec 18, 2009 at 3:22 PM, Peter Robinett pe...@bubblefoundry.comwrote:
Hi all,
I think there is a simple answer to this, but I'm a little confused. I
want to update a bound element when my Ajax form is submitted. Here's
a simple version based upon what I gleaned from the wiki and the
This code does what I think you want:
package com.liftcode.snippet
import _root_.scala.xml.{NodeSeq, Text}
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import com.liftcode.lib._
import Helpers._
import _root_.net.liftweb.http._
import js._
import JsCmds._
import JE._
Sorry, dropped the ball on this one. Maybe change something in
MySqlDriver, perhaps primaryKeySetup? Unfortunately at that level you
don't know what columns have been defined. Anyway, I don't think this
is a pressing issue, so in the absence of having a solution to offer,
I'll leave it be.
Peter
I did a override def homePage = /all_users and that's where I go after I
log in.
On Thu, Dec 3, 2009 at 5:44 AM, Neil.Lv anim...@gmail.com wrote:
I added this code in the User model, but it doesn't work yet.
This println method is never executed.
Maybe some configuration need to be set ?
On Mon, Nov 16, 2009 at 12:33 PM, alux alu...@googlemail.com wrote:
Back to the first computer:
I get the impression, its problems were result of bad connection. now
it looks different. But 1. still wrong, 2. different then computer 2 :-
(
See below.
Thank you.
a.
Unfortunately there is no change. Firebug shows that the POST reply
was empty.
Peter
On Dec 18, 3:26 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Fri, Dec 18, 2009 at 3:22 PM, Peter Robinett
pe...@bubblefoundry.comwrote:
Hi all,
I think there is a simple answer to this,
Sorry, spoke to soon. I got it, thanks.
On Dec 18, 4:27 pm, Peter Robinett pe...@bubblefoundry.com wrote:
Unfortunately there is no change. Firebug shows that the POST reply
was empty.
Peter
On Dec 18, 3:26 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Fri, Dec 18, 2009 at
I did mvn clean but dosn't help. And I try implement a custom
DBVender, found that the newConnection() even not being call.
def boot {
LiftRules.formatDate = formatDate
DB.defineConnectionManager(DefaultConnectionIdentifier,
DBVendor)
LiftRules.addToPackages(hello)
If you want to tar up your project (please remove the target directory) and
send it to me privately, I'll look into it.
On Fri, Dec 18, 2009 at 4:48 PM, Jarod Liu liuyuan...@gmail.com wrote:
I did mvn clean but dosn't help. And I try implement a custom
DBVender, found that the newConnection()
I ran your app and when the DB connector was created, I got the following
exception:
2009-12-18 20:20:38.641:INFO::No Transaction manager found - if your webapp
requires one, please configure one.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database
'test'
at
I can 100% sure I can connect to the mysql db 'test' with 'root'
username and empty password. Do you have mysql installed? A default
mysql installation should have a DB call 'test'
the error message I got are different:
2009-12-19 12:41:05.486:INFO::No Transaction manager found - if your
webapp
Hello,
I have struggled with this for a few hours and hopefully someone can
see what I am doing wrong.
Basically, I insert into users, I then select the user, I then set
that in my address and try to insert and get an error that the user_id
cannot be null, but it has a value.
I am including the
It works now.
I use the same executeUpdate method, and it can insert into the db.
Thanks Marcin,
Cheers,
Neil
On Dec 19, 1:29 am, Neil.Lv anim...@gmail.com wrote:
Hi Marcin,
Thank you very much! The update statement works now!
There is a question about the insert statement,
It would seem that this error is the main problem that has to be solved:
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.
socketConnect(Native Method)
This should have nothing to do with the web framework, as it seems that the
driver just can't
40 matches
Mail list logo