I have added the demo code on the Github now.
( Mabye it's a bug with DB.runQuery and DB.use in the two db
vender )
Here is the address:
http://github.com/anim510/two_db_demo
Thanks very much!
Cheers,
Neil
On Jan 21, 11:26 am, Neil.Lv anim...@gmail.com wrote:
My email is :
First of all thanks for the replies. Your comments made a lot of
sense, so I tested again using a cookie jsessionid and voilà no
problems anymore even running more than 100,000 requests in a row now.
Also the failed requests are gone.
Thanks again.
Stefan Koenig
On Jan 21, 5:16 am, Derek
On Thu, Jan 21, 2010 at 6:25 AM, Stefan Koenig koeni...@gmail.com wrote:
First of all thanks for the replies. Your comments made a lot of
sense, so I tested again using a cookie jsessionid and voilà no
problems anymore even running more than 100,000 requests in a row now.
Also the failed
What is wrong with:
DB.use(FirstDB) {
firstConnection =
DB.use(SecondDB) {
secondConnection =
// do transactional query between two DBs here
}
}
Note that DB.use nests such that the transaction will only be committed when
the last DB.use block for a given ConnectionIdentifier is exited.
On Thu, Jan 21, 2010 at 1:24 AM, aw anth...@whitford.com wrote:
I think I discovered that my issue is related to the fact that the
code is part of a CometActor/CometListener, and it sounds like S isn't
fully functional from this perspective... My clue was the
inStatefulScope_? method
The users table in the OneDB, and the hots table in the TwoDB, they
are separated!
I have changed the method that like this:
###
# I specify the TwoDB for hots table.
override def dbDefaultConnectionIdentifier = bootstrap.liftweb.TwoDB
def getHots3(id : Long) = {
It doesn't work is not sufficient to diagnose. What behavior did you get, and
what were you expecting? Were there any errors, log messages, exceptions, etc?
If so, please copy them. Finally, if you have a reproducible test case please
post it to github. I note earlier in the thread that you
Right ... building progress bars should be quite easy but just have
your page contain the comet actor.So roughly the steps would be:
1. Include your comet in the page. In this state it renders nothing
visible
2. hen you open the dialog, send an ajax response
3. From your ajax scal function send a
On Wed, Jan 20, 2010 at 9:28 PM, mark chance mark.cha...@gmail.com wrote:
I did post the project to drop.io - http://drop.io/memtest.
The project does not build:
Path to dependency:
1) com.peopledesigned:memtest:war:1.0-SNAPSHOT
2) org.jfree:jcommon:jar:1.0.16
Looking at your
On Thu, Jan 21, 2010 at 9:29 AM, Neil.Lv anim...@gmail.com wrote:
The users table in the OneDB, and the hots table in the TwoDB, they
are separated!
I have changed the method that like this:
###
# I specify the TwoDB for hots table.
override def dbDefaultConnectionIdentifier =
I will implement it into my own MetaMapper-sub-trait so all of my
models can share the code.
Thank you all for your input!
On Jan 21, 9:44 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Naftoli Gugenheim naftoli...@gmail.com writes:
Why not define a new method?
def findByCurUser(params:
I've written a work-around and am currently testing the code more in a
few minutes.
On Thu, Jan 21, 2010 at 11:20 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Okay... it looks like the VarArg stuff is messing with the compiler:
case class Index[A : Mapper[A]](columns:
(Un)fortunately I have an idea what the problem is. It's probably my
fix for #2867. I have now rolled back that fix in r20629. Can you
check again whether it works with that revision (should be in the
nightly tomorrow)? If it does we might be able to make an exception to
our RC = final rule,
On Thu, Jan 21, 2010 at 8:31 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
I've written a work-around and am currently testing the code more in a
few minutes.
If you can make it work, so much the better. To give some info: The
original ticket had a vararg parameter of the form
Okay... the work-around is checked into the Lift repo.
I say, Ship RC8 as the beta and we'll work through this (and likely other)
issues during the beta period.
On Thu, Jan 21, 2010 at 11:36 AM, martin odersky martin.oder...@epfl.chwrote:
On Thu, Jan 21, 2010 at 8:31 PM, David Pollak
On Thu, Jan 21, 2010 at 8:37 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Okay... the work-around is checked into the Lift repo.
I say, Ship RC8 as the beta and we'll work through this (and likely other)
issues during the beta period.
Sounds good. Thanks! -- Martin
On Thu, Jan 21,
I'm okay with making the flag optional (but on by default with a breaking
changes notice) for the H2 database.
On Wed, Jan 20, 2010 at 11:09 AM, Naftoli Gugenheim naftoli...@gmail.comwrote:
David and everone,
Some time ago we discussed on this list what it would take to have
Schemifier
Folks,
It's looking like Scala 2.8 RC8 will become 2.8 Beta1 on Tuesday.
I'd like to get the Lift 2.8 branch up to date (and keep it up to date) with
the 2.0-SNAPSHOT branch as well as getting continuous builds on Hudson and
deployment in the scala-tools.org snapshots directory.
I think our
Those names seem counterintuitive to me. ajaxSubmit submits an ajax form but
submitAjaxForm submits a non-ajax form? submitAjaxForm implies that it should
be the reverse, no?
-
Mariusmarius.dan...@gmail.com wrote:
Instead of
submit - SHtml.submit(Parse, ()
What is Lift's recommended version of Maven? I am looking to create an sbaz
package for easy download and install for maven for newcomers (myself
included), and figure that having one that is compatible with lift would be
of prime interest. Is the latest and greatest version compatible with 2.0?
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote:
Instead of
submit - SHtml.submit(Parse, () = ())
use:
submit - SHtml.ajaxSubmit(Parse, () = ())
you can also send normal forms via ajax like:
SHtml.submitAjaxForm(formId, () = {
/// Do your stuff here. This
I use maven 2.2.1 without any problem. i prefer to use sbt these days which
still makes use of mvn repositories.
James Matlik wrote:
What is Lift's recommended version of Maven? I am looking to create an
sbaz
package for easy download and install for maven for newcomers (myself
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com
wrote:
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote:
Instead of
submit - SHtml.submit(Parse, () = ())
use:
submit - SHtml.ajaxSubmit(Parse, () = ())
you can also send normal forms via ajax
One last question, is there any way to give an ajaxText some kind of
style/class/id attribute? I looked at the source but it was really
hard to get the hang of it.
best regards.
On 21 Jan., 02:05, Franz Bettag fr...@bett.ag wrote:
Ah, i was already wondering if that was a typo or what it does
The signature of ajaxText is:
def ajaxText(value : String, func : (String) = JsCmd, attrs : (String,
String)*): Elem
def ajaxText(value : String, jsFunc : Call, func : (String) = JsCmd, attrs :
(String, String)*): Elem
The attrs vararg is for this purpose, just pass in additional attributes
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote:
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com
wrote:
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote:
Instead of
submit - SHtml.submit(Parse, () = ())
use:
submit -
I hope it's okay that I'm forwarding this to the list.
A suggestion, to allow all the alternatives in a type-safe and type-documenting
way, would involve implicits. So you would have say
sealed trait AjaxResponse
case class JsCmdResponse(cmd: JsCmd)
...
object AjaxReponse {
implicit def
You want an sbaz package that will contain what exactly?
-
James Matlikjames.mat...@gmail.com wrote:
What is Lift's recommended version of Maven? I am looking to create an sbaz
package for easy download and install for maven for newcomers (myself
included),
Hm, i saw a method with attrs, but it was private. guess i overlooked
it. thanks.
On 21 Jan., 22:46, Ross Mellgren dri...@gmail.com wrote:
The signature of ajaxText is:
def ajaxText(value : String, func : (String) = JsCmd, attrs : (String,
String)*): Elem
def ajaxText(value : String, jsFunc
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote:
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com
wrote:
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote:
Instead of
submit - SHtml.submit(Parse, () = ())
use:
submit -
On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe
kris.nuttyco...@gmail.com wrote:
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote:
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com
wrote:
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com
On Thu, Jan 21, 2010 at 4:04 PM, Kris Nuttycombe
kris.nuttyco...@gmail.comwrote:
On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe
kris.nuttyco...@gmail.com wrote:
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote:
On Jan 21, 11:15 pm, Kris Nuttycombe
Okay, I think I may have found a bug.
My returned content contains unescaped braces. In one failure case
(this is parsing a DSL) I was testing a parse of a missing end brace -
and part of the error message is the original text passed in (with
mismatched braces).
Figured it out by passing in
http://liftweb.net/download.html
needs to tell me what (tf :-) to do next if i /do/ have mvn installed already.
--
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
hi,
i think there should be a much shorter mvn command to get started. i
do not know maven, but would it not be possible to wrap up all of the
long-winded jiggery-pokery (below) into a shorter thing that expanded
/ downloaded something that ran that command? it is just not good user
experience
On Thu, Jan 21, 2010 at 4:29 PM, Raoul Duke rao...@gmail.com wrote:
http://liftweb.net/download.html
needs to tell me what (tf :-) to do next if i /do/ have mvn installed
already.
http://liftweb.net/docs/getting_started.html
--
You received this message because you are subscribed to
On Thu, Jan 21, 2010 at 4:31 PM, Raoul Duke rao...@gmail.com wrote:
hi,
i think there should be a much shorter mvn command to get started. i
do not know maven, but would it not be possible to wrap up all of the
long-winded jiggery-pokery (below) into a shorter thing that expanded
/
hi,
On Thu, Jan 21, 2010 at 4:32 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Jan 21, 2010 at 4:29 PM, Raoul Duke rao...@gmail.com wrote:
http://liftweb.net/download.html
needs to tell me what (tf :-) to do next if i /do/ have mvn installed
already.
I wish, but no. I've written my own shell script.
ugh.
could the html verison perhaps be improved to not have extra blank
lines which prevent me from successfully copy and pasting it into my
shell? :-)
http://liftweb.net/docs/getting_started/mod_master.html#x1-40001.2
sincerely.
--
You
The site is not perfect, we know that... we are trying to work on it but
progress is slow for a variety of reasons.
On 22 Jan 2010, at 00:34, Raoul Duke wrote:
hi,
On Thu, Jan 21, 2010 at 4:32 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Jan 21, 2010 at 4:29 PM, Raoul
whatever came of buildr for lift? i haven't stumbled across the answer
googling yet, but i'm still checking...
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
On Thu, Jan 21, 2010 at 4:58 PM, Raoul Duke rao...@gmail.com wrote:
whatever came of buildr for lift? i haven't stumbled across the answer
googling yet, but i'm still checking...
We're not going to support Buildr for Lift. Adding Ruby into the mix is a
non-starter from my perspective. There
hi,
whatever came of buildr for lift? i haven't stumbled across the answer
googling yet, but i'm still checking...
We're not going to support Buildr for Lift. Adding Ruby into the mix is a
non-starter from my perspective. There is increasing sbt support for
Lift-based projects.
thanks
On Thu, Jan 21, 2010 at 5:03 PM, Raoul Duke rao...@gmail.com wrote:
hi,
whatever came of buildr for lift? i haven't stumbled across the answer
googling yet, but i'm still checking...
We're not going to support Buildr for Lift. Adding Ruby into the mix is
a
non-starter from my
At this point, we're official only supporting Lift with Maven. We've got
limited resources and this is where we're putting them. Maven is mature,
works well in most cases, and integrates with IDEs very effectively. I
expect in 6-12 months, we'll deprecate Maven in favor of sbt, but not
Sbt is on the plan too, as well as svnkit which is a command line svn client
in Java.
On Jan 21, 2010 4:30 PM, Channing Walton channingwal...@mac.com wrote:
I use maven 2.2.1 without any problem. i prefer to use sbt these days which
still makes use of mvn repositories.
James Matlik wrote:
I will be creating a sbaz package containing a maven release. I realize that
lift generally doesn't use the scala distribution (which comes with sbaz ),
but it does seem a logical stepping stone for beginners and tinkerers. I
just want to make things readily accessible. Since 2.2.1 works, I'll run
On Thu, Jan 21, 2010 at 5:17 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Jan 21, 2010 at 5:03 PM, Raoul Duke rao...@gmail.com wrote:
hi,
whatever came of buildr for lift? i haven't stumbled across the answer
googling yet, but i'm still checking...
We're not going
David:
Thanks for having a look. Curious about that missing dependency - i
guess it's in the pom.xml but not really used.
Anyway, I'll digest your recommendations and have a go at it. The
scenario I have running right now is one page open (and therefore its
session) for a very long time. While
Thanks guys very very much!
I'm using the Windows XP, I reset the height buffer for the CMD
now, and can see the full error message now.
The code can work fine now ( it's so strange that I run this code on
the another computer , and it's all OK... )
Maybe I need to delete all the
'mvn clean' deletes them for you.
-
Neil.Lvanim...@gmail.com wrote:
Thanks guys very very much!
I'm using the Windows XP, I reset the height buffer for the CMD
now, and can see the full error message now.
The code can work fine now ( it's so strange
On Jan 22, 10:06 am, Naftoli Gugenheim naftoli...@gmail.com wrote:
'mvn clean' deletes them for you.
-
Got it, Thank you very much!
Cheers,
Neil
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this
On Mon, Jan 18, 2010 at 10:31 AM, Felipe Rodrigues
felipero.maill...@gmail.com wrote:
That's a little better.. thanks
Originally, the function returned Any... and this led to problems (people
returning HTML, Strings, etc.) It turns out that 95% of the time, you want
to do something to tell
I have time to do the mindless work of doing the port tonight (my brain
will explode if it has to think, but mindless is okay).
Sorry for the delay, but my night already started when you were having lunch
;-)
- Heiko -- how far along is the stuff in issue 292? Is this code on
the
54 matches
Mail list logo