ced docpom...@googlemail.com writes:
When I use Mapper outside a request, say in an actor, how do I wrap it
in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper)
to have transactions within a request.
Can anyone provide a simple code snippet?
You can use use :-)
Ah great! Thanks!
- Chris
On Mar 2, 2:37 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
ced docpom...@googlemail.com writes:
When I use Mapper outside a request, say in an actor, how do I wrap it
in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper)
to have transactions
Hi,
I haven't used Lift's comet support at all, but now it seems like a
use case has popped up. I can do this with POA (Plain Ol Ajax), but,
at least for me, it looks like CometActor might be a better fit. The
use case is this:
We need to show a page containing a chart and some tables with data.
I have a similar use case and from my experience using a CometActor is
just great for this.
1) I assume each page get their own instance of the actor so they can
hold their own data. Is this correct?
Yes.
2) When is a CometActor shutdown? Sometime after the user navigates
away from page?
Another question: Is it possible to nest DB.use? I'd like to have the
same behavior as with the @Transaction annotation from Spring.
On 2 Mrz., 14:55, ced docpom...@googlemail.com wrote:
Ah great! Thanks!
- Chris
On Mar 2, 2:37 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
ced
On Tue, Mar 2, 2010 at 12:48 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
David Pollak feeder.of.the.be...@gmail.com writes:
[...]
1) Change the menu structure? Restart server
Yes. This is a problem.
2) Change the menu text? Restart server (yes I use properties for text
and
On Tue, Mar 2, 2010 at 7:03 AM, ced docpom...@googlemail.com wrote:
Another question: Is it possible to nest DB.use? I'd like to have the
same behavior as with the @Transaction annotation from Spring.
DB.use nests. Only when the last DB.use is exited does the transaction
commit. I don't
Hi Dave,
Udorse isn't quite ready to turn on foreign key constraints in postgres. Is
there an easy way to disable that?
- Jon
On Mar 1, 2010, at 12:31 PM, David Pollak wrote:
Folks,
The Lift master branch is now in code slush in anticipation of a late
Wednesday March 3rd PST release of
Great!
The default behavior with Spring's @Transactional annotation is the
propagation of an existing transaction or, if none is active, the
creation. So behavior is equal.
On 2 Mrz., 17:09, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Mar 2, 2010 at 7:03 AM, ced
On 2 March 2010 15:09, ced docpom...@googlemail.com wrote:
3) How do I get access to the CometActor instance on the page? I need
to send a message to it from a function bound to e.g. an ajaxSelect
You need another Actor that dispatches messages to your CometActors.
Say you have
David Pollak feeder.of.the.be...@gmail.com writes:
[...]
What do you keep in your properties files that can change at runtime?
Translated strings.
You keep your translated strings in the files accessed by
net.liftweb.util.Props? I haven't done any Lift localization, but I think
that's
On Tue, Mar 2, 2010 at 6:09 AM, ced docpom...@googlemail.com wrote:
I have a similar use case and from my experience using a CometActor is
just great for this.
1) I assume each page get their own instance of the actor so they can
hold their own data. Is this correct?
Yes.
No, it's not
On Tue, Mar 2, 2010 at 5:55 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
Hi,
I haven't used Lift's comet support at all, but now it seems like a
use case has popped up. I can do this with POA (Plain Ol Ajax), but,
at least for me, it looks like CometActor might be a better fit. The
use
On Tue, Mar 2, 2010 at 8:03 AM, Nolan Darilek no...@thewordnerd.infowrote:
Just wondering if anyone had any thoughts on this?
I still can't bind fields in an embedded template. They're returned as is,
not transformed. Not sure what I'm doing wrong.
If you put up a runable Maven project on
On Tue, Mar 2, 2010 at 12:27 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
David Pollak feeder.of.the.be...@gmail.com writes:
If the mechanism was something more along the lines of:
display name calculator: (Mapper[_], Locale, String) = Box[String] // we
could use Lift's factory
On Mon, Mar 1, 2010 at 10:35 PM, wm min...@gmail.com wrote:
http://php.net/manual/en/reserved.variables.files.php
i.e. the array of items uploaded to the current script via the HTTP
POST method.
I know there is FileParamHolder, but I want to get multiple files in
the array.
On Tue, Mar 2, 2010 at 10:41 AM, Mads Hartmann mads...@gmail.com wrote:
Hello everyone,
I can't seem to get my lift app to set a cookie when clicking an ajax-
link. By looking around the list it looks like it's possible but i've
failed to get it working. Right now my test-code looks like
On Mon, Mar 1, 2010 at 10:57 PM, wm min...@gmail.com wrote:
superUser is defined in ProtoUser.
class User extends ProtoUser[User] {
// I cannot make it work
//override def superUser = override def dbDisplay_? = false
}
Because of limitations in Scala, it's not currently possible to
I have a pair of templates which rely on both a Snippet and a
CometActor. There appears to be a dependency injection process of
sorts where lift_page is defined and liftAjax.js is included. However,
it looks like the list of things is being included in reverse order.
The results seem to be the
OK, I must be missing something.
I copied this almost verbatem from the mini-guide on the Wiki, modified
it and made it a shell script. Here's what I have:
#!/bin/sh
mvn archetype:generate -DarchetypeGroupId=net.liftweb \
-DarchetypeVersion=2.0-SNAPSHOT \
Amazing response-time as always :)
Anyone interested can find the example here:
http://github.com/mads379/reproducable-exmaple-of-cookie-bug--Lift-
and ticket here:
http://www.assembla.com/spaces/liftweb/tickets/386
On 02/03/2010, at 19.45, David Pollak wrote:
On Tue, Mar 2, 2010 at
I agree with David and think a simpler AJAX approach would be better.
From my work with lift-flot I know it's definitely possible (see the
lift-flot AJAX example). You can even do your plotting entirely in
Javascript and only use Lift to return data requested via AJAX, which
I've done for updating
On Tue, Mar 2, 2010 at 11:07 AM, Rick R rick.richard...@gmail.com wrote:
I have a pair of templates which rely on both a Snippet and a
CometActor. There appears to be a dependency injection
Dependency injection is an entirely different concept. Lift rewrites the
page as it goes out to insure
Hi,
I'm new to scala (2.7.7) and lift (2.0-M2) and as a learning exercise
have taken on the translation of an existing rails project into a lift
application.
There are two things I have run into that I'm hoping the more
experienced members of the list can give me a hand with:
1)
Nolan Darilek no...@thewordnerd.info writes:
OK, I must be missing something.
I copied this almost verbatem from the mini-guide on the Wiki,
modified it and made it a shell script. Here's what I have:
#!/bin/sh
mvn archetype:generate -DarchetypeGroupId=net.liftweb \
On Tue, Mar 2, 2010 at 11:56 AM, Achint Sandhu achint.san...@gmail.comwrote:
Hi,
I'm new to scala (2.7.7) and lift (2.0-M2) and as a learning
exercise
have taken on the translation of an existing rails project into a lift
application.
There are two things I have run into
On 02/03/2010, at 20.56, Achint Sandhu wrote:
Hi,
I'm new to scala (2.7.7) and lift (2.0-M2) and as a learning exercise
have taken on the translation of an existing rails project into a lift
application.
There are two things I have run into that I'm hoping the more
Right, I know about the breaking change, but I'm not immediately sure
how that's relevant here since the command I pasted seems to use generate.
Here's what I've just found. This script works fine:
#!/bin/sh
mvn archetype:generate \
You can assign the ticket to me because I have code for such fields that I can
contribute.
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Tue, Mar 2, 2010 at 11:56 AM, Achint Sandhu achint.san...@gmail.comwrote:
Hi,
I'm new to scala (2.7.7)
I am thoroughly confused on this one, so any help is greatly
appreciated. I am using eclipse and my directory structure looks like
this:
src/main/scala
- com.xxx.web.model
Client.scala
src/test/scala
- com.xxx.web.model
ClientSpecs.scala
I can run the specs when I run the project as a JUnit
Hi,
Isn't it possible to put snippets in subpackages of xxx.snippet?
Something like lift:snippet
type=com.acme.snippet.subpackage.SnippetClass?
If not, what's the best way to deal with a large number of snippets?
Heiko
Company: weiglewilczek.com
Blog: heikoseeberger.name
Follow me:
Just a quick note to thank everyone for the prompt responses.
Thank You.
Cheers,
Achint
On Mar 2, 3:36 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
You can assign the ticket to me because I have code for such fields that I
can contribute.
-
David
Ticket created -
https://liftweb.assembla.com/spaces/liftweb/tickets/390-request-for-trait-that-supports-createdat-and-updatedat
Thank You.
Cheers,
Achint
On Mar 2, 3:36 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
You can assign the ticket to me because I have code for such fields that I
On Tue, Mar 2, 2010 at 11:07 AM, Rick R rick.richard...@gmail.com wrote:
I have a pair of templates which rely on both a Snippet and a
CometActor. There appears to be a dependency injection
Dependency injection is an entirely different concept. Lift rewrites the
page as it goes out to
Thanks to all for the feedbackjust one remaining question below:
On Tue, Mar 2, 2010 at 7:11 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
[...]
Unless you're going to update the graph synchronously, the comet solution is
not the best. A graph with ajax/json elements that update
On Tue, Mar 2, 2010 at 1:21 PM, Rick R rick.richard...@gmail.com wrote:
On Tue, Mar 2, 2010 at 11:07 AM, Rick R rick.richard...@gmail.com
wrote:
I have a pair of templates which rely on both a Snippet and a
CometActor. There appears to be a dependency injection
Dependency injection
On Tue, Mar 2, 2010 at 2:33 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
Thanks to all for the feedbackjust one remaining question below:
On Tue, Mar 2, 2010 at 7:11 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
[...]
Unless you're going to update the graph synchronously,
On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
Hi,
Isn't it possible to put snippets in subpackages of xxx.snippet?
Something like lift:snippet
type=com.acme.snippet.subpackage.SnippetClass?
If not, what's the best way to deal with a large number of
They are not being rendered in reverse. There is no problem. The code
works correctly.
Why?
First, the code in the CometActor is a call a function in response to an
event. The page will be loaded before you can press the button or otherwise
cause the event to be dispatched.
Second, as I
Just to wrap up, the StatefulSession suggestion, coupled with the
usage of RequestVars in a few place to preserve data across links and
calls to S.redirectTo s did the trick for us.
Session variables are really no different in Lift than in any other
web framework. They are appropriate for data
If you want to send data to a CometActor when it initializes from
Scala code (e.g. a snippet), try this:
for (session - S.session) {
session.setupComet(myCometActor, Empty, myMessage)
}
Peter
On Mar 2, 3:36 pm, Rick R rick.richard...@gmail.com wrote:
They are not being rendered in reverse.
Yes, because, as in the database, essentially it's a MappedLong (for example),
with support built on top of it (via trait mixins) to lookup and cache the
referenced entity.
Is there a problem with the .obj syntax?
-
Achint Sandhuachint.san...@gmail.com wrote:
On Tue, Mar 2, 2010 at 5:09 PM, Achint Sandhu achint.san...@gmail.comwrote:
Hi,
Is there any reason why aBook.author would not simply return a Box
instead of requiring aBook.author.obj to get the Box ?
For some background, see
Would it be a bad idea to use java.util.Date for now, and if and when support
is added for JodaTime, change it to a DateHolder (which would be added then)?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
A ConversionRules singleton is the wrong concept.
I'm sure you've got this covered, but I've also had this requirement and used
something like this: http://gist.github.com/320200
On Mar 2, 2010, at 4:01 PM, Achint Sandhu wrote:
Ticket created -
Then what's the best way to remove this field from the toForm()
generation?
I override fieldOrder:
object User extends User with KeyedMetaMapper[Long, User] {
// define the order fields will appear in forms and output
override def fieldOrder = id :: name :: firstName :: lastName ::
email ::
As a last resort override toForm on the mapper to not include it.
-
wmmin...@gmail.com wrote:
Then what's the best way to remove this field from the toForm()
generation?
I override fieldOrder:
object User extends User with KeyedMetaMapper[Long, User] {
//
Naftoli Gugenheim naftoli...@gmail.com writes:
Would it be a bad idea to use java.util.Date for now, and if and when support
is added for JodaTime, change it to a DateHolder (which would be added then)?
Haven't looked in detail, but wouldn't this require two changes to
client code?
1) One to
On 3 March 2010 00:03, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
Hi,
Isn't it possible to put snippets in subpackages of xxx.snippet?
Something like lift:snippet
49 matches
Mail list logo