Hello,
I've been in Emacs land the past couple of days, tried it out, got
lost but i've found my way back to TextMate ;)
I would like to take a wack at this, but it's hard for me to estimate
how much time I have to play around lift the next two weeks though -
so if it isn't something that needs
Naftoli Gugenheim naftoli...@gmail.com writes:
David and all,
QUESTION 1
I'm working on issue #258. Here are two options for an overridable parser
(applies to formatting too):
1. def parse(s: String): Box[Date] = ConversionRules.parseDate()(s)
2. def parse: String=Box[Date] =
On 05/02/10 5:28 PM, Jeppe Nejsum Madsen wrote:
Naftoli Gugenheimnaftoli...@gmail.com writes:
David and all,
QUESTION 1
I'm working on issue #258. Here are two options for an overridable parser
(applies to formatting too):
1. def parse(s: String): Box[Date] = ConversionRules.parseDate()(s)
Looks great!
One little nit is, could we add the hoverable option to
FlotGridOptions? That's a new feature which was added to Flot which
shouldn't break backwards compatibility.
Any thoughts about integrating plugins as the zooming and FlotOverview
class don't work without the selecting plugin.
Hi,
I have only tried to do a couple of things with the Facebook module
(I'm using 2.0-M1) and I have gotten some of the stuff to actually
work :)
Photo upload would be something like this:
import java.io.File
import org.apache.commons.io.FileUtils
import net.liftweb.ext_api.facebook._
import
Guys,
I just wanted to have a grumpy moan about FactoryMaker. Now, this must
easily be the most complicated / confusing piece of scala code in
Lift.
Its totally non-trivial implementation and its levels of miss-
direction (and total lack of examples) make it an utter nightmare to
figure out what
Yeah it is not clear to me why not just using function like:
LiftRules.stripComments: () = Boolean
Maybe I missed previous talks, or just not remember it it doesn't look
that API simplified or became more intuitive by adding
FactoryMakers ...
Br's,
Marius
On Feb 5, 5:35 pm, Timothy Perrett
If I remember correctly, it was a result of some fairly well-made
dependency injection arguments around testing and fully mocking the
lift pipeline / process.
I agree though, its a fairly crappy API.
Cheers, Tim
On Feb 5, 3:38 pm, Marius marius.dan...@gmail.com wrote:
Yeah it is not clear to
Thanks for the suggestions. I knew it was not the most efficient,
however, we don't have many products.
On Feb 4, 3:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Thu, Feb 4, 2010 at 7:32 AM, Ross Mellgren dri...@gmail.com wrote:
I think this new version will be slower than your
Hmpf. Same problem here :(
def statefulDispatchTable: LiftRules.DispatchPF = {
...
case r...@req(List(api, foo), , PutRequest) = () =
update(req)
...
}
def update(req: Req): LiftResponse = {
for (name - req.paramNames) {
Log.info(name)
Log.info(req.param(name).openOr(empty))
}
Hmpf. I have got the Tomcat PUT problem also.
def statefulDispatchTable: LiftRules.DispatchPF = {
...
case r...@req(List(api, foo), , PutRequest) = () =
update(req)
...
}
def update(req: Req): LiftResponse = {
for (name - req.paramNames) {
Log.info(name)
On 5 February 2010 05:00, philip philip14...@gmail.com wrote:
I downloaded the git source and made a OSGi jar package by running the
maven, now what do I do with it?
I see its a jar file with the manifest for OSGi, I guess I can load it
into Apache Felix, but doesn't Liftweb need tomcat or
OK, its on RB (http://reviewboard.liftweb.net/r/206/) = Take a look ...
Heiko
On 5 February 2010 01:07, Timothy Perrett timo...@getintheloop.eu wrote:
Probally helpful if you share your prototype code?
Cheers, Tim
Sent from my iPhone
On 5 Feb 2010, at 00:05, Heiko Seeberger
This is actually fairly common that messages Naftoli sends are empty, or don't
get threaded onto the original discussion, or formatting comes out funny.
Naftoli, what email client are you using?
-Ross
On Feb 5, 2010, at 1:49 AM, Mads Hartmann wrote:
Hey Naftoli,
I think something might have
On Feb 5, 2010, at 12:18 PM, David Pollak wrote:
On Fri, Feb 5, 2010 at 9:06 AM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
On 5 February 2010 15:05, Martin Ellis ellis@gmail.com wrote:
Any offers/suggestions? (Sorry, I realise the question more about
OSGI than lift)
Crud.
Can someone do a survey of how other JVM web frameworks handle the PUT
inconsistencies on different containers?
On Fri, Feb 5, 2010 at 9:29 AM, Ross Mellgren dri...@gmail.com wrote:
Looking at the Tomcat code, this is explicit. From
org.apache.catalina.connector.Request:
/**
*
Peek -- www.getpeek.com
Please forward any bad messages to feedb...@getpeek.com
-
Ross Mellgrendri...@gmail.com wrote:
This is actually fairly common that messages Naftoli sends are empty, or don't
get threaded onto the original discussion, or formatting
Naftoli would you please re-post your solution :) I could really use
the help
On Feb 5, 6:56 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Peek --www.getpeek.com
Please forward any bad messages to feedb...@getpeek.com
-
Ross Mellgrendri...@gmail.com
On Thu, Feb 4, 2010 at 11:44 PM, Dick Hirsch hirsch.d...@gmail.com wrote:
On the esme-dev mailing list, we've got a request for a class/uml
diagram for our lift-based server code. Does anyone know of a tool
(maven-plugin?) that could provide such functionality?
I know of none. The most
Basically, either use two protected LongMappedMappers and a public
getter/setter that takes a boolean into account in both directions; or use a
MappedLong, with
def obj = whicheverLookUpTable.find(this.is)
and
override def set(s: Source) = s match ...
Sorry for the brevity, if unclear please
On Fri, Feb 5, 2010 at 7:35 AM, Timothy Perrett timo...@getintheloop.euwrote:
Guys,
I just wanted to have a grumpy moan about FactoryMaker. Now, this must
easily be the most complicated / confusing piece of scala code in
Lift.
Its totally non-trivial implementation and its levels of miss-
On Thu, Feb 4, 2010 at 4:07 PM, Peter Robinett pe...@bubblefoundry.comwrote:
Hello all,
Please tell me if you are using the lift-flot module. I am working on
upgrading it to Flot 0.6 and as Aaron noted[1], Flot has switched to a
slightly new format of specifying options. However, they have
In my experience, I found that the functionality of the FactoryMakers was very
flexible (and I could see the utility of that), but that the documentation was
just plain missing. Maybe more/better documentation on FactoryMaker itself, and
some simple common examples on the places where
CRUD. Yes. Exactly what I'm trying to do, and Tomcat developers are making
it difficult.
I can say that in Jetty 6, they are definitely passed. I don't know
whether they are being stripped in Tomcat deliberately (I hope not) or if
it's a bug. I plan to file a bug report anyway.
I'm running Jetty
One advantage is setting the value only in a session, request, or local
(doWith) scope.
-
Ross Mellgrendri...@gmail.com wrote:
In my experience, I found that the functionality of the FactoryMakers was very
flexible (and I could see the utility of that), but
Thank you for taking your time to answer my question
I don't think I fully understand how to implement any of the suggested
solutions, if you have the time I would love a code example :)
Thanks a lot,
Mads Hartmann Jensen
On Feb 5, 7:34 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
If any other proxy includes nginx, then a lot of people!
-
chasc...@munat.com wrote:
CRUD. Yes. Exactly what I'm trying to do, and Tomcat developers are making
it difficult.
I can say that in Jetty 6, they are definitely passed. I don't know
whether they are
Looking at the tomcat code, it seems pretty likely this is a Tomcat-specific
issue.
-Ross
On Feb 5, 2010, at 2:01 PM, Naftoli Gugenheim wrote:
If any other proxy includes nginx, then a lot of people!
-
chasc...@munat.com wrote:
CRUD. Yes. Exactly
This is exactly right ross - I get its purpose (but I dont necessarily like the
API), I just don't get the inconstancy in usage. It would certainly help a
great deal if there were examples littered by its usages.
Cheers, Tim
On 5 Feb 2010, at 18:44, Ross Mellgren wrote:
In my experience, I
Agreed - based on the code, its a systemic issue with Tomcat rather than the
proxy. Consider swapping to another container if that is a viable option...
Cheers, Tim
On 5 Feb 2010, at 19:04, Ross Mellgren wrote:
Looking at the tomcat code, it seems pretty likely this is a Tomcat-specific
Not tested or compiled
object isLab extends MappedBoolean(this)
1.
def source: Box[Source] = if(isLab.is) lab.obj else scientist.obj
def source_=(s: Source) = s match {
case l: Lab = isLab(true); lab(l)
// same for scientist
}
2.
object source extends MappedLong {
def obj = if(isLab)
It requires changing the FlotOptions trait. Actually, we could do
exactly what Flot 0.6 does and support both (just add the series
option without removing the lines, points and shadowSize options),
though then we'd need some way to prioritize one way over the other.
Peter
On Feb 5, 10:43 am,
Would we even need to prioritize it? If Flot supports both, we should
let it do the hard work of deciding which one to use if they are both
present, which I would imagine would be a very rare case. We can just
mark the old methods as deprecated and then remove them in the future
when Flot doesn't
Hi Aaron,
I just added hoverable to my branch. Please let me know if you have
any issues with it.
As for plugins, I think it might take a little thinking to get right.
Looking at the Flot plugin documentation (http://flot.googlecode.com/
svn/trunk/PLUGINS.txt), a plugin registers itself by
I know there was something simple. Thanks, now I just need to make
sure I have the right implicits imported and I'm good to go.
On Feb 5, 12:54 pm, Ross Mellgren dri...@gmail.com wrote:
JsObj(map.toSeq: _*) ?
-Ross
On Feb 5, 2010, at 3:53 PM, Peter Robinett wrote:
I thought it would be
On Fri, Feb 5, 2010 at 6:34 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Crud.
Can someone do a survey of how other JVM web frameworks handle the PUT
inconsistencies on different containers?
Does S.param map directly to the servletrequest getParameter? If so,
I think the Servlet
Thanks!
I'm now trying to customize the attribute-exchange and noticed that it
is embedded in a longish method. I think it would be good if this was
extracted to a method (maybe: def reqAttributeExchange:
Option[FetchRequest] ?) so that ax info could be modified without
digging into the rest of
(Moved from committers list)
Hi,
A fix is on RB (http://reviewboard.liftweb.net/r/198/) for Issue 309
that changes the Lift internal logging to always go through Slf4j (a
logging facade that provides a uniform logging interface to different
logging backends such as Log4j and logback)
Since
OK ;-)
This is what I answered to Martin so far:
I do not know such a tutorial, sorry. OSGi offers hot deployment out of
the box, hence you do not need any JRebel or so. But by default (according
to the spec) each bundle must be a JAR, hence you need a full build cycle.
Eclipse Equinox
Hi,
On 5 February 2010 22:11, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
2) is the cleanest solution since the choice of logging backend is made
explicit. But this requires people to change their poms in order to get
any logging.
Let's go for 2) because in real-world projects people will
Yeah, I'm not sure what the best solution is going to be on plugins.
The naive way I've approached this problem so far was by creating:
trait FlotPlugin {
val pluginFile: String
}
and then creating objects that extended that with the name of the plugin file:
object FlotSelection extends
On Fri, Feb 5, 2010 at 1:03 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
On Fri, Feb 5, 2010 at 6:34 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Crud.
Can someone do a survey of how other JVM web frameworks handle the PUT
inconsistencies on different containers?
Does
Ah! It seems to be working now - Thanks a lot :)
On Feb 5, 8:15 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Not tested or compiled
object isLab extends MappedBoolean(this)
1.
def source: Box[Source] = if(isLab.is) lab.obj else scientist.obj
def source_=(s: Source) = s match {
case
Hello - newbie to scala and (esp) lift.
I'm trying to get lift embedded into a server I wrote which also
embeds jetty, so trying to avoid making war files, etc (the init code
is at the end of this email) and thought someone out there might be
able to point me in the right direction. I am using
Hi, I'd like to rewrite a url like this:
/manufacturer/product
e.g.
LiftRules.statelessRewrite.append( {
case RewriteRequest(
ParsePath( manufacturerName :: productName :: Nil, _, _,_), _,
_) =
RewriteResponse(productView :: Nil)
})
But, I'd like to the
There is a RunWebApp.scala that seems to be included in the generated
projects from the maven archetype, you can probably copy it?
object RunWebApp extends Application {
val server = new Server(8080)
val context = new WebAppContext()
context.setServer(server)
context.setContextPath(/)
Ha, ha. Brilliant. The writers of the Servlet Spec incorporated the
short-sightedness of the browser makers, who saw no point in PUTs and
DELETEs. Both POST and PUT methods include entities per RFC 2616, so why
is PUT the poor step-sister?
Maybe I'll take another look at virtual hosting in
Hello all,
To ease my pain in using Lift with vim as my main text editor (getting
Eclipse set up correctly with the Scala editor has been an exercise in
futility thus far), I've developed a vim plugin for lift that is
similar to, if far more limited in scope than, the rails.vim plugin.
Its basic
Just a bit more on this: I've noticed that if all users have logged out then
jetty shuts down quickly...
Channing Walton wrote:
Hi,
I've added some comet-fu in my lift app but I've found that it now takes a
minute or so for jetty to shut down.
Is there something I should have done to
Hi,
I want to explain my desire for OSGi in Lift, I understand that Lift
being split into modules and being able to load different modules is
desirable.
However what I want to be able to do is to dynamically compile Scala
code, load into OSGi and use it from my liftweb application. I don't
want
Peter Robinett pe...@bubblefoundry.com writes:
Hi Aaron,
I just added hoverable to my branch. Please let me know if you have
any issues with it.
As for plugins, I think it might take a little thinking to get right.
Looking at the Flot plugin documentation
Erkki Lindpere vill...@gmail.com writes:
Thanks!
I'm now trying to customize the attribute-exchange and noticed that it
is embedded in a longish method. I think it would be good if this was
extracted to a method (maybe: def reqAttributeExchange:
Option[FetchRequest] ?) so that ax info could
52 matches
Mail list logo