ttachResourceId attaches a random query string
> to the URI-s (This is a quantity unique per application lifetime on a
> single JVM). You can of course register your own function and define
> your own behavior of how the resources (script and link) are modeled
> to control caching.
>
I am interested in this too but I don't understand the
thing, where can I find out more?
AnthonyW wrote:
>
> Ugh, I must have had a cache issue despite the fact that I certainly
> did hit refresh before...
> I am now seeing 1.4.2 JQuery.
>
> Regarding , I just added that too. This is
> defin
tis done: http://www.assembla.com/spaces/liftweb/tickets/350
bearfeeder wrote:
>
> On Tue, Feb 16, 2010 at 12:44 AM, Channing Walton
> wrote:
>
>>
>> thats fine for individual fields of a mapper, dates etc., but not for a
>> object with mapped fields. This is w
o generate a read-only view I need to do this:
deal.formFields.map(f =>
{f.displayName}{f.asHtml})
It seems unbalanced that you can generate a form for editing purposes but
not a view - unless I'm mistaken about that.
Naftoli Gugenheim wrote:
>
> asHtml?
>
> 2010/2/14 Chan
Hi,
I am using toForm to create forms for crud operations on my mappers, but I
cannot see an equivalent method for presentation purposes. That is, no form
elements, just text presented in the same tabular format as the form.
Is there one ?
Channing
--
View this message in context:
http://old.n
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 t
:51 PM, Channing Walton
> wrote:
>
>>
>> Thanks for the advice, I'll definitely rethink the pattern.
>>
>> I'm actually seeing the problem when I use RunWebApp. When I press a key
>> RunWebApp should shut down but it just hangs for me.
>>
>>
&g
Thanks for the advice, I'll definitely rethink the pattern.
I'm actually seeing the problem when I use RunWebApp. When I press a key
RunWebApp should shut down but it just hangs for me.
bearfeeder wrote:
>
> On Thu, Feb 4, 2010 at 2:31 PM, Channing Walton
> wrote:
>
bearfeeder wrote:
>
> On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton
> wrote:
>
>>
>> ah, thats a good question. I am using sbt and its jetty-stop. I'll find
>> out
>> what its doing.
>>
>
> I'm pretty sure Lift cancels t
ah, thats a good question. I am using sbt and its jetty-stop. I'll find out
what its doing.
bearfeeder wrote:
>
> On Thu, Feb 4, 2010 at 2:15 AM, Channing Walton
> wrote:
>
>>
>> Hi,
>> I've added some comet-fu in my lift app but I've found that i
No, it eventually quits peacefully.
Timothy Perrett wrote:
>
>
> Are you seeing a stack trace?
>
> Cheers, Tim
>
>
> On 4 Feb 2010, at 10:15, Channing Walton wrote:
>
>>
>> Hi,
>> I've added some comet-fu in my lift app but I've fo
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 enable things to shutdown quicker?
Channing
--
View this message in context:
http://old.nabble.com/Comet-making-jetty-take-a-long-time-to
ok cool, sounds like a plan!
bearfeeder wrote:
>
> On Sun, Jan 31, 2010 at 12:17 PM, Channing Walton
> wrote:
>
>>
>> Looking around MetaMapper and Schemifier, it looks like I could override
>> BaseMetaMapper.afterSchemifier to do what i want although I would n
Yes I could do that - not sure what I need to do with connections etc to make
that happen though :wistle:
Naftoli Gugenheim wrote:
>
> If you only initialize the database all at once, why not just put the code
> in Boot?
>
> -----
> Cha
k that just essentially executed
> a bunch of mapper calls, but it sounds like you want more of a build
> up and tear down approach a la:
>
> http://code.google.com/p/scala-migrations/
>
> Perhaps that is what you are after?
>
> Cheers, Tim
>
> On Jan 31, 11:59 a
ions/
>
> Perhaps that is what you are after?
>
> Cheers, Tim
>
> On Jan 31, 11:59 am, Channing Walton wrote:
>> Hi,
>> I am building an app which needs some static data added whenever we
>> rebuild
>> the database. I would like to do that using the map
Hi,
I am building an app which needs some static data added whenever we rebuild
the database. I would like to do that using the mapper api but it looks like
I need to do it table by table by overriding dbAddTable. I would prefer to
do this in one place for the whole model, preferably using the map
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
> inclu
Maybe Akka would be better for you? http://akkasource.org/
"Akka has an AMQP module which abstracts AMQP Producer and Consumer as
Actors."
Channing
vishnu-11 wrote:
>
> Hi
>I'm trying to use lift to right a back end for a system that
> communicates via AMQP. The idea is to have a bunch of
t
>
> Heiko
>
> On Sunday, December 20, 2009, Channing Walton
> wrote:
>>
>> ah I see the problem - I know nothing about git!
>>
>> I original thought that the URL at the top of the github page for
>> port_280
>> would get me port_280 which it doe
ah I see the problem - I know nothing about git!
I original thought that the URL at the top of the github page for port_280
would get me port_280 which it doesn't.
I tried following the instructions here:
http://wiki.github.com/bricoleurs/bricolage/working-with-branches
But that isn't working fo
If I skip tests:
[INFO] Compiling 3 source files to
/Users/channing/tmp/280_port/lift-base/lift-actor/target/classes
/Users/channing/tmp/280_port/lift-base/lift-actor/src/main/scala/net/liftweb/actor/LAFuture.scala:19:
error: not found: value common
import common._
^
/Users/channing/tmp/28
ok here it is. The only thing I changed in the main pom is the scala version
to the 2.8.0 beta rc3
[INFO] Compiling 2 source files to
/Users/channing/tmp/280_port/lift-base/lift-common/target/test-classes
error: error while loading Sugar, Scala signature Sugar has wrong version
expected: 5.0
f
bearfeeder wrote:
>
> Do you have a production app that depends on Scala 2.8? Is there a part
> of
> Lift that you immediately need ported to 2.8?
>
No, I don't have an immediate need. However, I am very likely to be starting
on a new app in mid January which will launch in the middle of nex
I would like to use Lift with scala 2.8.0 but need some helping building the
branches. I've checked out the 280_port branch, but when I set the scala
version to 2.8.0.Beta1-RC3 in the main pom, Lift doesn't compile. Either the
specs tests fail because they have the wrong class signature or if I sk
I'd start with the Beginning Scala book and work on some code kata like
project euler. Lift is a jump in the deep end - I don't think knowing Java
is much of a help there anyway.
--
View this message in context:
http://old.nabble.com/Documentation-tp26797233p26801361.html
Sent from the liftweb m
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:
http://www.nabble.com/scala.MatchError-i
Hi,
I just upgraded from M4 to M5 and one of my tests started failing
with:
scala.MatchError: Full()
at net.liftweb.http.testing.HttpResponse.xml(TestFramework.scala:281)
where the HttpResponse body is:
If I revert this change it works:
http://github.com/dpp/liftweb/commit/8fd5597799c
Thank you both for your reply but I have to admit that it was an error
in my javascript that was preventing my code from working. Apologies
for wasting your time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift"
I'm a bit stumped as to how to proceed with the following. I have a
page which shows a list of items, each of which can be deleted. When
the user clicks the delete button next to an item, I would like to
open a confirmation dialog and if they confirm, call a backend
function to delete the correspo
On Aug 7, 9:32 pm, David Pollak wrote:
> I reproduced the issue on Opera... then Google banned my IP address for
> excessive requests... :-(
they need to move to lift to handle the load ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribe
I've added a much simpler example too, see simple.html
--~--~-~--~~~---~--~~
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 e
ok I've done that: git://github.com/channingwalton/lift_1_1_sample.git
run the app up and go to http://localhost:8080/mapSearch and try the
search. I find stack overflow in Safari 4.0.2, and Opera 9.64. The
query works in Firefox 3.5.2 and Webkit Version 4.0.2 (5530.19,
r46770) (latest nightly) -
actually that example doesn't work in Opera, but does in safari and
firefox. To see the problem in safari I had to modify the script like
this:
var geocoder = new GClientGeocoder();
geocoder.getLatLng("london",doit);
function doit(point) {
var s = JSON.stringify(point);
alert(s)
}
This does
ok, lots of jscript debugging and I'm pretty sure its this:
JSON.stringify(new GLatLng(0,0))
where GLatLng is a google map object.
the imports needed for this are
http://maps.google.com/maps?
file=api&v=2.x&key=your-key&sensor=false" type="text/
javascript">
there is a key=y
will do
On Aug 4, 10:51 pm, David Pollak
wrote:
> Please put together some simple code that reproduces the problem and I'll
> make it go away.
>
> On Tue, Aug 4, 2009 at 2:48 PM, Channing Walton wrote:
>
>
>
> > In Safari 4.0.2, and Opera 9.64 on OS X, I get Ra
In Safari 4.0.2, and Opera 9.64 on OS X, I get RangeError: Maximum
call stack size exceeded at line 27 in json.js
But in the latest nightly build of webkit, it works.
I will try on windows asap.
--~--~-~--~~~---~--~~
You received this message because you are subsc
doh! I missed that.
On Aug 4, 4:38 pm, David Pollak wrote:
> Are you including the /classpath/json.js JavaScript file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email
excellent thanks.
On Aug 3, 11:58 pm, David Pollak
wrote:
> D'oh we were hitting that one as well.
>
> Fixed.
>
> On Mon, Aug 3, 2009 at 2:07 PM, Channing Walton wrote:
>
>
>
>
>
>
>
> > Hi,
> > I was using the testkit and HttpResponse.
spoke too soon :-(
when I test this on a new browser or flush browser caches, I am
getting a javascript error: Undefined variable: JSON
I am not wrapping my the input field in a json form as described in
the book because when I do the page reloads. Could that be the
problem? In which case how do
Hi,
I was using the testkit and HttpResponse.xml which was all good. But
after updating to the snapshot release yesterday I now get this
exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.casualmiracles.smokesignals.integration.FunctionalRestSpec.main
(Func
Victory is ours!
Thanks for all the help David.
--~--~-~--~~~---~--~~
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 email
e JSON parser.
>
> Please delete ~/.m2/respository and do a clean build and see if it works.
>
> On Sun, Aug 2, 2009 at 12:09 PM, Channing Walton
> wrote:
>
>
>
>
>
>
>
> > ok just caught up and tried again, this time I get:
>
> > 2009-08-0
ory and do a clean build and see if it works.
>
> On Sun, Aug 2, 2009 at 12:09 PM, Channing Walton
> wrote:
>
>
>
>
>
>
>
> > ok just caught up and tried again, this time I get:
>
> > 2009-08-02 20:07:16,981 WARN lift:246 - Request for /ajax_reque
ok just caught up and tried again, this time I get:
2009-08-02 20:07:16,981 WARN lift:246 - Request for /ajax_request/
F1105202520287L3C/ failed For input string: "(-~0)"
java.lang.NumberFormatException: For input string: "(-~0)"
at java.lang.NumberFormatException.forInputString
(NumberF
On Aug 2, 6:14 pm, David Pollak wrote:
> Give it an hour and give it a try.
>
> Thanks for hanging with me through these defects.
Thanks David, its much appreciated - on a Sunday too!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On Aug 1, 8:50 pm, Channing Walton wrote:
> But I get a "Can't find variable: JSON" error.
forget that, I was having some kind of safari issue.
But the problem I am having now is a NumberFormatException:
2009-08-02 15:42:58,098 WARN lift:246 - Request for /ajax_request
ok I am getting somewhere. Thanks for your patience, I'll write this
up somewhere in case someone else needs a google map in a liftweb app.
The functions being generated are good:
function sendPointToServer(point) {
F298945645192D4K({'command': 'setPoint', 'params':point});
}
function F
cool thanks, that did it.
Google recommends running a script on unload, their example has:
I couldn't see any Unload function anyway, I guess it would be a
useful thing to add?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
> Are you putting the result of:
>
> Script(Function("sendPointToServer", "point", PointHandler.call("setPoint",
> JsVal("point"
>
> Anywhere on your page?
I believe so, the page has a snippet:
which looks like this:
def mapFunctions(xhtml : NodeSeq) : NodeSeq = {
val node = Script(
Hi,
I had to replace JsVal("point") with JsVar("point"), but when I run it
up, I get "ReferenceError: Can't find variable: F542198622797IUJ" in
the browser console. The function in the page looks like this:
function sendPointToServer(point) {
F542198622797IUJ({'command': 'setPoint', 'params':
uot;, PointHandler.call("setPoint",
> JsVal("point"
>
> You'll have a JavaScript function, sendPointToServer that you cal with the
> point and the rest is automatic.
>
> Thanks,
>
> David
>
> On Wed, Jul 29, 2009 at 2:27 PM, Channing Walton
>
Hi,
I'm working on an app which has a google map which users can use to
search for locations, and on which I want to place markers.
The asynchronous call is a call to google's geocoder service which
takes a string to search for from an input field, and a callback
function that the position will b
On Jul 3, 6:38 pm, Kris Nuttycombe wrote:
>
> With respect to unit testing, Lift's singletons depend upon underlying
> thread-local variables (via ThreadGlobal) to maintain state. I'm just
> musing here, but do you think it might be possible to inject a layer
> of indirection between Lift's singl
done http://github.com/dpp/liftweb/issues/#issue/23
--~--~-~--~~~---~--~~
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 ema
cool, thanks for that.
--~--~-~--~~~---~--~~
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 email to
liftweb+unsubscr...@go
Hi,
I have a problem with URLs whose last path segment contains a
fullstop, eg: /x/3.1/y/1.11
To illustrate the issue, I created a new lift project and added the
following to the Boot:
LiftRules.dispatch.prepend {
case Req(List("x", x,"y", y), _, _) => () => Full(XmlResponse( x=
{ x }
Yes I meant the ScalaJPA.
Channing
--~--~-~--~~~---~--~~
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 email to
liftweb+u
Its not so much running into problems, its just that JPA has some nice
support and I was wondering if anyone was doing something similar for
JDO.
Channing
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group
Has anything more been done with JDO support in Lift? I need to use
JDO so it would help if there was some work being done on this.
Channing
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to t
cool thanks.
On May 19, 7:09 pm, Martin Ellis wrote:
> > On May 17, 10:33 pm, Timothy Perrett wrote:
> >> Can you verify the log4j.xml file is being read?
>
> On Mon, May 18, 2009 at 9:38 PM, Channing Walton
> wrote:
> > Not sure how I can tell.
>
> Spe
On May 18, 11:52 pm, "sailormoo...@gmail.com"
wrote:
> I think in your exception handler only Production is defined.
> Are you running on Production Mode?
Aha, I don't think I am. I just use RunWebApp. I'll look into that
thanks.
--~--~-~--~~~---~--~~
You recei
On May 17, 10:33 pm, Timothy Perrett wrote:
> Can you verify the log4j.xml file is being read?
>
Not sure how I can tell.
> The JPA example here changes the logging environment so perhaps use it
> as an example to get started :) Grab it here:http://is.gd/AMAW
Thanks, I tried that but still n
Hi,
I am having trouble logging anything in my app, no logs are appearing
anywhere.
I have the following in Boot:
DB.addLogFunc((query, len) => Log.error("The query: "+query+"
took"+len+" milliseconds"))
LiftRules.exceptionHandler.prepend {
case (Props.RunModes.Production, Req(path,
Thanks David and Derek, I will tinker with those ideas.
--~--~-~--~~~---~--~~
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
Hi,
I am building a web app which has a rest API. I found that I was
repeating myself like this:
val reply:Full[XmlResponse] = req.xml match {
case Full(content) => {
a block of code that does something with the content
}
case _ =>
}
So I first though I would create a function to
ok thanks David
--~--~-~--~~~---~--~~
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 email to
liftweb+unsubscr...@googlegro
On Apr 29, 1:55 pm, David Bernard wrote:
> * if you set in your
>
> src/main/scala
> src/test/scala
I seem to have that already but still have the problem after doing mvn
eclipse:eclipse
--~--~-~--~~~---~--~~
You received this message because you are
Can we fix our existing Lift project poms by adding the lump of xml
you just posted, or will that break things?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to liftw
Hi,
I am building a rest service and running into trouble with cdata which
is not a Lift issue but I was wondering what Lift had to support it.
I am trying to do something like this:
def toXml() = {
}
which comes out like this:
{ content.toString }
An
70 matches
Mail list logo