when i knew the 1.1 M5 has been published, i updated the pom.xml of my
liftapp project and recomplie it. And i got an error about CRUDify:
self-type com.thesamegoal.simpleforum.model.Forum does not conform to
net.liftweb.mapper.CRUDify
[Long,com.thesamegoal.simpleforum.model.Forum]'s selftype
when i knew the 1.1 M5 has been published, i updated the pom.xml of my
liftapp project and recomplie it. And i got an error about CRUDify:
self-type com.thesamegoal.simpleforum.model.Forum does not conform to
net.liftweb.mapper.CRUDify
[Long,com.thesamegoal.simpleforum.model.Forum]'s selftype
You're supposed to mix CRUDify in to your singleton object, not the class.
-
XiaomingZhengxiaomingzhen...@gmail.com wrote:
when i knew the 1.1 M5 has been published, i updated the pom.xml of my
liftapp project and recomplie it. And i got an error about
really~~~
On Sep 10, 2:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
You're supposed to mix CRUDify in to your singleton object, not the class.
-
XiaomingZhengxiaomingzhen...@gmail.com wrote:
when i knew the 1.1 M5 has been published, i updated
Jean-Luc jlcane...@gmail.com writes:
David,
this setting is database specific, I suppose you want to make it
configurable for both open quote and end quote.
JDBC has getIdentifierQuoteString, not sure how well supported this is
in the various drivers.
Hi Folks,
Please could someone point me to any example code that uses the
StatefulComet? It would be very helpful.
Thanks,
Som
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send
Hi,
On Thu, Sep 10, 2009 at 5:46 PM, Somindra
Bhattacharyasomind...@gmail.com wrote:
Hi Folks,
Please could someone point me to any example code that uses the
StatefulComet? It would be very helpful.
The tictac[1] included in lift-samples has demonstrated how to use
StatefulComet.
[1]
Yes.
Doens't work.
Good news is that while next update of this other system names for
columns will be changed for something more standard.
Thank You all for help :)
On Sep 9, 6:51 pm, Ross Mellgren dri...@gmail.com wrote:
For MS SQL, it's square brackets -- [table].[Company email]
-Ross
On
Murphy law is working :)
After spending 3 hours to find a solution - and post message here - I
found it.
I have to use ::: instead :: (create and return new list instead add
objects to old one by using ::)
Question is why this works with one additional autogenerator and
doesn't work with more
Thank you!
On Sep 10, 2:16 pm, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com
wrote:
Hi,
On Thu, Sep 10, 2009 at 5:46 PM, Somindra
Bhattacharyasomind...@gmail.com wrote:
Hi Folks,
Please could someone point me to any example code that uses the
StatefulComet? It would be very helpful.
On Thu, Sep 10, 2009 at 12:17 PM, Marcin Jurczuk mjurc...@gmail.com wrote:
Menu(Loc(home, List(index), Home)) :: User.sitemap ::
MyModelWithCRUD.menus
Hi Marcin,
You should use ::: to concatenate the to lists like this:
Menu(Loc(home, List(index), Home)) :: User.sitemap :::
I've switched a very simple test project from 1.0 to 1.0.1 and
switched the scala version to 2.7.5
Now I've started seeing the following in my jetty log:
ERROR - [MEMDEBUG] failure
java.lang.NoSuchFieldException: refSet
at java.lang.Class.getDeclaredField(Class.java:1882)
at
I'm working on my first Lift project. I'm implementing a search form
that will have
several fields -- firstname, lastname, age, sex, state, etc. The
search should allow
the user to enter as little or as much information as they know in
order to narrow
the search down. So, if they know the
Thanks for the quick reply.
It seems I have three lift dependencies: lift-util, lift-webkit, lift-mapper
Do I upgrade all them to 1.1-M5?
Thanks,
Xavi
On Wed, Sep 9, 2009 at 11:41 AM, Timothy Perrett
timo...@getintheloop.eu wrote:
Change:
version1.1-M4/version
to
version1.1-M5/version
Exactly right - upgrade them all.
Cheers, Tim
On 10 Sep 2009, at 15:01, Xavi Ramirez wrote:
Thanks for the quick reply.
It seems I have three lift dependencies: lift-util, lift-webkit,
lift-mapper
Do I upgrade all them to 1.1-M5?
Thanks,
Xavi
On Wed, Sep 9, 2009 at 11:41 AM,
I think DB#runQuery method suits for your needs.
It is handy method to execute prepare statement.
example code:
DB.runQuery(select * from person where name=? and age=? and state=?,
List(smith, 50, FL))
But, You still have to make a where clause generator.
DB#runQuery use
You can typically leave out lift-util in most cases (just remove the
dependency element in the pom) because most of other higher order
modules (like lift-webkit) depend on lift-util and therefore would be
transitively included during the build.
Cheers, Indrajit
On Sep 10, 7:28 pm, Timothy
Yeah... I'm working on it.
Hudson tests the archetypes against the old JARs rather than the new JARs so
it was barfing on the changes I made to lift-webkit and lift-utils
yesterday. I'm trying to get a stable Hudson build so I can get the new
JARs into the repo and then change the archetype to
David,
Im reading this, understanding it, and thinking that it would be great
if it could be written up into a wiki article explaining all the stuff
you added in your recent commits (there appear to be a bunch of files
and i've not yet looked at the impl)
Cheers, Tim
On 10 Sep 2009, at
Well that syntax most definitely does, at least from SQL management
studio:
DECLARE @foo TABLE (
[my column] int NOT NULL
)
INSERT @foo ([my column]) VALUES (1)
SELECT * FROM @foo
I guess you tried setting dbColumnName? Maybe something else was
interfering.
Good to hear though that
Hmmm... the pointless actor fix thingy should not have been included in
1.0.1.
Lemme look into it.
On Thu, Sep 10, 2009 at 5:06 AM, Stuart Roebuck stuart.roeb...@gmail.comwrote:
I've switched a very simple test project from 1.0 to 1.0.1 and
switched the scala version to 2.7.5
Now I've
On Thu, Sep 10, 2009 at 8:06 AM, Timothy Perrett timo...@getintheloop.euwrote:
David,
Im reading this, understanding it, and thinking that it would be great if
it could be written up into a wiki article explaining all the stuff you
added in your recent commits (there appear to be a bunch of
On Wed, Sep 9, 2009 at 11:30 PM, XiaomingZheng xiaomingzhen...@gmail.comwrote:
really~~~
Yes. That's why I changed the self-type... because people kept mixing
CRUDify into the mapper class, not the metamapper class.
On Sep 10, 2:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Are there generated scaladocs on the web for M5 anywhere?
-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
Just change the version you depend on in your pom.xml and Maven will
pull the new jars and put them in the classpath.
-Ross
On Sep 10, 2009, at 11:59 AM, DavidV wrote:
I am running Scala 2.7.5 final and would like to upgrade to Lift
1.0.1. I have never upgraded my Lift before (still
You could translate the query predicates you are creating from the
input to a list of By objects. Eg. Take age=50 and transform it into By
(User.age, 50). Then take your list and findAll(predicates: _*).
On 2009-09-10, at 9:59, Rogelio rogbo...@gmail.com wrote:
I'm working on my first Lift
Good to hear though that you're moving to sane column names :-)
-Ross
This app have long story - it was born as MS Access DB (that's why
weird column names), then it was migrated to SQL server...
I could post lots of stories to thedailywtf about meetings with guys
from MS Access :)
That's not this commit, is it?
http://github.com/dpp/liftweb/commit/cfc91f99d49ab8df833ca1ff4bb3406ba9605476
On Thu, Sep 10, 2009 at 10:34 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Hmmm... the pointless actor fix thingy should not have been included in
1.0.1.
Lemme look into it.
Consider:
val venues = Venue.findAll(By(Venue.cityid, City.currentCity),
NotNullRef(Venue.owner),
OrderBy(Venue.id, Descending),
MaxRows(10),
PreCache(Venue.owner))
This
OK, this is different than the code I originally wrote. In 1.0.1 it's this:
http://github.com/dpp/liftweb/blob/aec338c97648ea700de7a14b495b8be6b374153b/lift-mapper/src/main/scala/net/liftweb/mapper/MappedDate.scala
I'm not sure who made that change, but I think that we want something in the
I'm looking to make a synchronous JSON/AJAX call in my application,
and it looks like SHtml.jsonCall / SHtml.ajaxCall both devolve to
liftAjax.lift_ajaxHandler which is asynchronous. Is there any way to
generate a synchronous call, or should I just roll my own JS side
using jQuery or
On Thu, Sep 10, 2009 at 9:20 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:
That's not this commit, is it?
http://github.com/dpp/liftweb/commit/cfc91f99d49ab8df833ca1ff4bb3406ba9605476
Yeah... that was against 2.7.4... 2.7.5 changed things. I just committed a
fix that will disable the
On Thu, Sep 10, 2009 at 9:30 AM, Ross Mellgren dri...@gmail.com wrote:
I'm looking to make a synchronous JSON/AJAX call in my application,
and it looks like SHtml.jsonCall / SHtml.ajaxCall both devolve to
liftAjax.lift_ajaxHandler which is asynchronous. Is there any way to
generate a
Should I go ahead and re-spin 1.0.1, or should it be 1.0.2?
On Thu, Sep 10, 2009 at 11:36 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Sep 10, 2009 at 9:20 AM, Derek Chen-Becker
dchenbec...@gmail.comwrote:
That's not this commit, is it?
On Thu, Sep 10, 2009 at 9:53 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:
Should I go ahead and re-spin 1.0.1, or should it be 1.0.2?
1.0.2.
On Thu, Sep 10, 2009 at 11:36 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Sep 10, 2009 at 9:20 AM, Derek Chen-Becker
I'll see what I can do later this afternoon.
Derek
On Thu, Sep 10, 2009 at 11:57 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Thu, Sep 10, 2009 at 9:53 AM, Derek Chen-Becker
dchenbec...@gmail.comwrote:
Should I go ahead and re-spin 1.0.1, or should it be 1.0.2?
1.0.2.
Is there a way to configure template to generate html fragments
without including and generating head/ and body/? I had to resort
to adding a transformer to LiftRules.responseTransformers to
transform the response after Lift renders it.
For example, with a template like this:
html
This is a bug. I'll fix it up.
On Thu, Sep 10, 2009 at 10:47 AM, walterc weih...@gmail.com wrote:
Is there a way to configure template to generate html fragments
without including and generating head/ and body/? I had to resort
to adding a transformer to LiftRules.responseTransformers to
On Thu, Sep 10, 2009 at 6:23 PM, harryh har...@gmail.com wrote:
Consider:
val venues = Venue.findAll(By(Venue.cityid, City.currentCity),
NotNullRef(Venue.owner),
OrderBy(Venue.id, Descending),
On Thu, Sep 10, 2009 at 8:15 PM, Viktor Klang viktor.kl...@gmail.comwrote:
On Thu, Sep 10, 2009 at 6:23 PM, harryh har...@gmail.com wrote:
Consider:
val venues = Venue.findAll(By(Venue.cityid, City.currentCity),
NotNullRef(Venue.owner),
~1125 ms for your query.
~50ms for the IN based on that lift currently generates.
This is doing things in the psql console on the same machine the
database lives on. It's not so much the query time that concerns me,
as the amount of data being sent back in the results. In my example
at the top
On Thu, Sep 10, 2009 at 8:32 PM, harryh har...@gmail.com wrote:
~1125 ms for your query.
~50ms for the IN based on that lift currently generates.
*laughs* Query optimizers in the different RDBMSes never cease to amaze me
;D
Just for kicks, what about this?
SELECT DISTINCT users.id,
On Thu, Sep 10, 2009 at 11:32 AM, harryh har...@gmail.com wrote:
~1125 ms for your query.
~50ms for the IN based on that lift currently generates.
This is doing things in the psql console on the same machine the
database lives on. It's not so much the query time that concerns me,
as the
Timothy Perrett timo...@getintheloop.eu writes:
David,
Im reading this, understanding it, and thinking that it would be great
if it could be written up into a wiki article explaining all the stuff
you added in your recent commits (there appear to be a bunch of files
and i've not yet
A fix is in the works.
Awesome. 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
On Thu, Sep 10, 2009 at 12:02 PM, harryh har...@gmail.com wrote:
A fix is in the works.
Awesome. Thanks!!!
http://github.com/dpp/liftweb/commit/58c5463d44948a48dd2fa62bf9d14960d2eaf6d4
-harryh
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala
OK, maybe I misread Naftoli's email but it sounded like he didn't want
global parsers, e.g. a per-field parser. I agree on the Date/DateTime/Time
split. I can add some of those to LiftRules and TimeHelpers.
Derek
On Thu, Sep 10, 2009 at 1:04 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
Derek Chen-Becker dchenbec...@gmail.com writes:
OK, maybe I misread Naftoli's email but it sounded like he didn't want
global parsers, e.g. a per-field parser.
Re-reading his email I think you're right :-) But that should be solved
with your solution where you can override the format on a
Having an overridable toDate on the MappedXX that only defaults to the
_corresponding_ global, as Jeppe said, would provide that ability too.
Although the advantage of using a DateFormat over a def toDate is simplicity of
replacement. (Maybe it should be a function, not a method, and there
Fixed
http://github.com/dpp/liftweb/commit/78e95f734f622845d679206df56c9a5289c16f7b
On Thu, Sep 10, 2009 at 10:47 AM, walterc weih...@gmail.com wrote:
Is there a way to configure template to generate html fragments
without including and generating head/ and body/? I had to resort
to adding
http://github.com/dpp/liftweb/commit/58c5463d44948a48dd2fa62bf9d14960...
Any idea how long it will be until this is in a non snapshot build? I
guess I just missed the M5 release. I'm a little scared of pushing
production code based on 1.1-SNAPSHOT. Anyone out there doing this
sort of thing?
On Thu, Sep 10, 2009 at 1:07 PM, harryh har...@gmail.com wrote:
http://github.com/dpp/liftweb/commit/58c5463d44948a48dd2fa62bf9d14960...
Any idea how long it will be until this is in a non snapshot build? I
guess I just missed the M5 release. I'm a little scared of pushing
production
Folks,
I'm working with a few other members of the Scala community to create The
Great Scala Test Suite Bounty.
Basically, the bounty will be an on-going activity where people write tests
for the Scala compiler and library. The tests will be integrated into a big
monster test suite that can be
Hi,
I just upgraded from M4 to M5 and one of my tests started failing
with:
scala.MatchError: Full(ok/ok)
at net.liftweb.http.testing.HttpResponse.xml(TestFramework.scala:281)
where the HttpResponse body is:
?xml version=1.0 encoding=UTF-8?
ok/ok
If I revert this change it works:
On Thu, Sep 10, 2009 at 1:38 PM, Channing Walton channingwal...@mac.comwrote:
Hi,
I just upgraded from M4 to M5 and one of my tests started failing
with:
scala.MatchError: Full(ok/ok)
at
net.liftweb.http.testing.HttpResponse.xml(TestFramework.scala:281)
where the HttpResponse body
The Lift team is pleased to announce the lift-1.0.2 release!
Lift is an expressive and elegant framework for writing web applications.
Lift stresses the importance of security, maintainability, scalability
and performance while allowing for high levels of developer productivity.
Lift is a scala
harryh har...@gmail.com writes:
http://github.com/dpp/liftweb/commit/58c5463d44948a48dd2fa62bf9d14960...
Any idea how long it will be until this is in a non snapshot build? I
guess I just missed the M5 release. I'm a little scared of pushing
production code based on 1.1-SNAPSHOT. Anyone
bearfeeder wrote:
It's Lift. I'll loosen the pattern... turns out the thing you're testing
returns a Document rather than an element. I'll check in a fix in about
30
minutes.
Thank you very much :-)
--
View this message in context:
On Thu, Sep 10, 2009 at 2:10 PM, Channing Walton channingwal...@mac.comwrote:
bearfeeder wrote:
It's Lift. I'll loosen the pattern... turns out the thing you're testing
returns a Document rather than an element. I'll check in a fix in about
30
minutes.
On 11/09/2009, at 1:28 AM, David Pollak wrote:
On Thu, Sep 10, 2009 at 8:57 AM, harryh har...@gmail.com wrote:
Are there generated scaladocs on the web for M5 anywhere?
http://scala-tools.org/mvnsites/liftweb-1.1-M5/
I must be blind - is there a link to the scaladocs from that page?
On Thu, Sep 10, 2009 at 3:59 PM, Antony Blakey antony.bla...@gmail.comwrote:
On 11/09/2009, at 1:28 AM, David Pollak wrote:
On Thu, Sep 10, 2009 at 8:57 AM, harryh har...@gmail.com wrote:
Are there generated scaladocs on the web for M5 anywhere?
Memory fails. How do I create a dynamic .js file with scala and then
serve it through lift? I did this before, but now my brain has gone
blank. I want to preload some JS variables for use in other scripts,
generating the variable content via scala. Entiende?
Chas.
LiftRules.dispatch.append {
case Req(custom :: js_file, js, GetRequest) = ... create a
LiftResponse that contains the file here
}
On Thu, Sep 10, 2009 at 4:43 PM, Charles F. Munat c...@munat.com wrote:
Memory fails. How do I create a dynamic .js file with scala and then
serve it through
findAll(By(...), MaxRows(100))
On Tue, Sep 8, 2009 at 11:11 PM, pravin pravinka...@gmail.com wrote:
Hi ,
i am using MSSQL for lift ORM.
i want to get first 100 results from my results set...
So how can i use top query for this..
--
Lift, the simply functional web framework
That works. Thanks!
So if I wanted to build a large JavaScript script in pieces in different
files, and then combine all those files together and add in some
dynamically generated stuff, and finally gzip the whole thing and send
it out using the trick below, how would one do that? I'm looking
On Thu, Sep 10, 2009 at 5:04 PM, Charles F. Munat c...@munat.com wrote:
That works. Thanks!
So if I wanted to build a large JavaScript script in pieces in different
files, and then combine all those files together and add in some
dynamically generated stuff, and finally gzip the whole thing
Thanks. I'll play with that.
Chas.
David Pollak wrote:
On Thu, Sep 10, 2009 at 5:04 PM, Charles F. Munat c...@munat.com
mailto:c...@munat.com wrote:
That works. Thanks!
So if I wanted to build a large JavaScript script in pieces in different
files, and then combine
Don't you have to check the request headers if the client accepts gzipped?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Thu, Sep 10, 2009 at 5:04 PM, Charles F. Munat c...@munat.com wrote:
That works. Thanks!
So if I wanted to build a large
You mean this guy? It's still there it seems.
java.lang.NoSuchFieldException: refSet
at java.lang.Class.getDeclaredField(Class.java:1882)
at net.liftweb.http.PointlessActorToWorkAroundBug$$anonfun$act
$2$$anonfun$apply$2.apply(LiftServlet.scala:722)
at
On 11/09/2009, at 8:45 AM, David Pollak wrote:
On Thu, Sep 10, 2009 at 3:59 PM, Antony Blakey antony.bla...@gmail.com
wrote:
On 11/09/2009, at 1:28 AM, David Pollak wrote:
On Thu, Sep 10, 2009 at 8:57 AM, harryh har...@gmail.com wrote:
Are there generated scaladocs on the web
70 matches
Mail list logo