_ = Log.error(User *not* found! This
shouldn't happen!);
false
}
}
}
}
On 21 Jan., 18:47, Franz Bettag fr...@bett.ag wrote:
I will implement it into my own MetaMapper-sub-trait so all of my
models can share the code.
Thank you all for your
): _*)
}
}
Now find() works too. Used MetaMapper instead of KeyedMetaMapper.
The self.customer problematic still exists ;)
On 22 Jan., 21:54, Franz Bettag fr...@bett.ag wrote:
I've got this so far. The CustomerFields trait just appends the
customer's object to the class.
The Customerize
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:
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
: Call, func : (String) = JsCmd, attrs :
(String, String)*): Elem
The attrs vararg is for this purpose, just pass in additional attributes you
want there. Note that you should not pass the name attribute, as that is
generated by Lift.
-Ross
On Jan 21, 2010, at 4:43 PM, Franz Bettag
Timothy, did you somehow manage to get them working together? I am at
a point where i would want to mix them in my project. :)
On 15 Jan., 00:56, Timothy Perrett timo...@getintheloop.eu wrote:
No no, theLiftversion was only frozen inAkkabecause of the sample
app (it was causing problems whilst
I am having a little bug that i'll investigate. It's prolly something
in my cometactor. But in debugging it looks fine so far.
On 20 Jan., 18:25, David Pollak feeder.of.the.be...@gmail.com wrote:
On Wed, Jan 20, 2010 at 9:09 AM, Franz Bettag fr...@bett.ag wrote:
What i am trying is, to get
Sorry if i am asking a lot of questions lately, but i am trying to get
this project of mine working so i can write about the specific
problems i ran into and how they got done.
def subnets(xhtml: NodeSeq): NodeSeq = {
val content = IPnet.findAll(OrderBy(IPnet.name,
Ah figured it out. Played long enough around to get the right way:
() = {expand(trafficReply.subnet)}
Another question though, would it be possible to use
IPs:expandspantraffic:sometag//span/IPs:expand and pass the
given NodeSeq over the bind into a function?
On 20 Jan., 19:08, Franz Bettag fr
:
() = {expand(trafficReply.subnet)}
Another question though, would it be possible to use
IPs:expandspantraffic:sometag//span/IPs:expand and pass the
given NodeSeq over the bind into a function?
On 20 Jan., 19:08, Franz Bettag fr...@bett.ag wrote:
Sorry if i am asking a lot of questions
} or
foo - theCalledFunction
best regards
On 20 Jan., 21:26, Franz Bettag fr...@bett.ag wrote:
How would that look like?
foo = nodeSeqMethod _ ?
On 20 Jan., 21:21, Naftoli Gugenheim naftoli...@gmail.com wrote:
Meaning to the right of the - arrow
a separately named function with a type signature, e.g.
def doTheStuff(ns: NodeSeq): NodeSeq) = { Log.error(ns.toStrnig); span / }
bind(..., expand - doTheStuff _)
-Ross
On Jan 20, 2010, at 3:41 PM, Franz Bettag wrote:
expand - (fooXhtml) = { Log.error(fooXhtml.toString); span
with a type signature, e.g.
def doTheStuff(ns: NodeSeq): NodeSeq) = { Log.error(ns.toStrnig); span / }
bind(..., expand - doTheStuff _)
-Ross
On Jan 20, 2010, at 3:41 PM, Franz Bettag wrote:
expand - (fooXhtml) = { Log.error(fooXhtml.toString); span/ },
error: not a legal formal parameter
Jan., 22:15, Franz Bettag fr...@bett.ag wrote:
Of course i forgot to paste the snippet..http://pastie.org/787160
On 20 Jan., 21:44, Ross Mellgren dri...@gmail.com wrote:
Scala can't figure out what type of parameter you mean, so you need to
annotate it -- expand - (fooXhtml: NodeSeq
contents/span)
-Ross
On Jan 20, 2010, at 7:16 PM, Franz Bettag wrote:
Works like a charm now! Thanks!
One last question tho, is it possible to get a client-Side-callback
for net.liftweb.http.SHtml.a?
I want to start showing a specific ajax spinner (have more than one on
the page) upon
Metaprogramming is still a bit new for me, so here is the question:
What would be the cleanest way to implement a parameter-injection into
find() and findAll()?
The idea is to wrap catch every find() and findAll() and inject for
example the User.currentUser's customerId.
So it would be quite
Hey guys,
i am trying to extend my logging trait. The Problem is, i can't say
something like A : LongKeyedMapper[A] in my trait since ProtoUser
doesn't use IdPK but uses it's own declarations (which look the same
to me).
If i read that piece of code right, it should be no problem to extend
On 19 Jan., 19:32, David Pollak feeder.of.the.be...@gmail.com wrote:
i am trying to extend my logging trait. The Problem is, i can't say
something like A : LongKeyedMapper[A] in my trait since ProtoUser
doesn't use IdPK but uses it's own declarations (which look the same
to me).
Why do
, 2010, at 2:47 PM, Franz Bettag wrote:
On 19 Jan., 19:32, David Pollak feeder.of.the.be...@gmail.com wrote:
i am trying to extend my logging trait. The Problem is, i can't say
something like A : LongKeyedMapper[A] in my trait since ProtoUser
doesn't use IdPK but uses it's own declarations
typing?
trait Stamped[A : LongKeyedMapper[A] with { val id: MappedLongIndex[A] }] ...
I haven't tried it, but maybe it will work.
-Ross
On Jan 19, 2010, at 2:47 PM, Franz Bettag wrote:
On 19 Jan., 19:32, David Pollak feeder.of.the.be...@gmail.com wrote:
i am trying to extend my logging
That works! Thank you!
On 19 Jan., 21:39, Ross Mellgren dri...@gmail.com wrote:
I see primaryKeyField in the docs, maybe try .record(obj.primaryKeyField.is) ?
-Ross
On Jan 19, 2010, at 3:31 PM, Franz Bettag wrote:
trait Stamped[A : LongKeyedMapper[A]]
extends SkipLogging
may i ask what the is method exactly does? googling for it is a bit
hard since is is quite commonly used ;)
On 19 Jan., 21:39, Ross Mellgren dri...@gmail.com wrote:
I see primaryKeyField in the docs, maybe try .record(obj.primaryKeyField.is) ?
-Ross
On Jan 19, 2010, at 3:31 PM, Franz Bettag
Hey guys,
i was wondering if i can implement a real distributed application with
lift and akka.
Since akka actors can be forwarded (so that the actor can reply to the
original sending actor),
i thought it would be awesome if my akka-remoteActor could directly
reply to a lift actor to interact
Hey guys,
i've just updated the amqp code. I started a pull request on github
but that seems *not* to be the proper way *smirking @dpp's auto-
reply*.
Anyway here is the patch. The problem was that in version 1.5.0 of
rabbitmq's library, the ticket-stuff was removed.
diff --git
Hey guys,
maybe i got that concept wrong, but i want to include some .java-files
(thrift library files) into my liftweb project.
in #scala on freenode i was told that scalac can handle .java files.
so i moved my files accordingly, now mvn scala:compile works fine, but
mvn jetty:run drops these:
Ty. just switched to -M8.
here is my pom.xml:
project
xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
this
Will the 2.8 branch be in 1.1-m8?
Best regards
On Nov 23, 3:11 pm, David Bernard david.bernard...@gmail.com wrote:
I agree skipping test is BAD, but in the case of 2.8 for lift or when
running test is long and you need to run install (eg to check compilation on
a multi-module project).
whether every model need
creator/createDate,lastUpdator/lastUpdateDate?
I want to have a Action Log, which could record user activities.
Any model change history or change object could restore from action log
Did any one do something about this?
On Wed, Dec 9, 2009 at 10:33 AM, Franz Bettag fr
Hi guys,
thanks to this great community i could finish a project today which i
found worth to be made available public.
The topic says it all, check it out at https://github.com/fbettag/lift-stamped/
Tell me what you guys think!
best regards
--
You received this message because you are
, Dec 5, 2009 at 5:50 PM, Franz Bettag fr...@bett.ag wrote:
Heyho,
i'm running 1.1-m7 and having the following issue. i am using the
basic user model and created a model Customer like this:
class Customer extends LongKeyedMapper[Customer] with IdPK {
def getSingleton = Customer
Heyho,
i'm running 1.1-m7 and having the following issue. i am using the
basic user model and created a model Customer like this:
class Customer extends LongKeyedMapper[Customer] with IdPK {
def getSingleton = Customer
object name extends MappedString(this, 255)
def
Hey guys,
i've been successfull with lift so far, now i want to do some more in
depth stuff. anyway, i am missing the postgresql cidr/ip datatypes.
Since they mostly work like strings i did the following:
import _root_.net.liftweb.mapper._
import _root_.net.liftweb.http.{S, FieldError}
import
Heyho,
anyone has an idea how one might accomplish having the locale/language
of the content in the url? since most search engines can't work with
cookies and therefore change the language correctly, i wanted to go
for URLs like /de/mystuff or /en/mystuff. I guess everyone gets the
point.
Any
Hey there,
is there any way to hide fields (createdOn/createdBy...) from CRUDify?
I was digging through the code since google didn't turn up anything
useful for this topic, but i didn't find anything (may be the lack of
my scala skill).
best regards
-franz
}
This will exclude the field from display.
Does this help?
Thanks,
David
On Mon, Apr 20, 2009 at 7:19 PM, Franz Bettag i...@fbettag.de wrote:
Hey there,
is there any way to hide fields (createdOn/createdBy...) from CRUDify?
I was digging through the code since google didn't
My fault, mvn clean and restarting jetty made it work. i guess mvn
scala:cc didn't work that well.
On 21 Apr., 20:27, Franz Bettag i...@fbettag.de wrote:
Idea 8 doesn't even list that in the Override List, in addition it
doesn't work.
Maybe it's because i use it in a trait?
import
, but of course it shouldn't be possible to change it
in the forms.
Besides overriding (which didn't work that well), i tried def
readOnly_? = true which had no effect
On 21 Apr., 20:31, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Apr 21, 2009 at 11:27 AM, Franz Bettag i...@fbettag.de
awesome! thank you very much!
On 21 Apr., 22:29, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Apr 21, 2009 at 11:50 AM, Franz Bettag i...@fbettag.de wrote:
My old answer seems somehow to have gotten delayed, it was a problem
with mvn scala:cc. mvn clean and mvn compile fixed
I've done it myself! ;)
Just for reference, i modified pom.xml and ran mvn deploy. now i am
running my own maven2 repository for that purpose.
On 21 Apr., 23:04, Franz Bettag i...@fbettag.de wrote:
One last stupid rookie question.. i've checked out lift from github,
ran mvn compile (which
Hey guys,
i had the (simple) idea of creating a trait for these fields:
object created_by extends MappedLongForeignKey(this, User)
object created_at extends MappedDateTime(this)
object updated_by extends MappedLongForeignKey(this, User)
object updated_at extends MappedDateTime(this)
41 matches
Mail list logo