For jetty, you might also try the following inside your web.xml webapp
section:
context-param
param-nameorg.mortbay.jetty.servlet.SessionURL/param-name
param-valuenone/param-value
/context-param
see: http://docs.codehaus.org/display/JETTY/SessionIds
Lee
I'm trying to avoid having to clear the browser cache when I change a
javascript file.
One approach is to append a timestamp to the script src tag in the html
file.
script id=json src=/classpath/json.js type=text/javascript/
becomes:
script id=json src=/classpath/json.js?*12341234*
I'd rather have something like:
/classpath/date_2009_04_29_18_20/json.js
There are a couple of advantages:
- It's human readable
Readable is worth a few bytes, I agree. I like the date_ prefix too, it
leaves room for using a hash approach at some future date.
-
- It's
I think the browsers cache urls with params... a quick glance at the rails
docs suggest they expect these requests to be cached, though I haven't
tested it mysolf.
I'd imagine this also needs to work for non-/classpath served files. Does
that push us back to the params style?
No, because
I've posted a first snapshot of the jSync server (and the corresponding
javascipt client) here on
githubhttp://github.com/mighdoll/jsync/tree/master.
jSync synchronizes trees of objects between javascript and scala. jSync is
not complete enough for use yet, but I'm pleased with the approach so
I'm trying to avoid having to clear the browser cache when I change a
javascript file.
One approach is to append a timestamp to the script src tag in the html
file.
script id=json src=/classpath/json.js type=text/javascript/
becomes:
script id=json src=/classpath/json.js?*12341234*
Since lift is a servlet filter, can it simply pass through requests for
unmapped html pages and let the web container serve them or send a 404? I
don't quite understand the security issue, though.
Lee
re: documentation, I tripped on this getting started as well.
On Thu, Apr 23, 2009 at 8:45
Ah, thanks for the explanation.
Perhaps a site map entry for /static in the default archtetype?
Lee
On Thu, Apr 23, 2009 at 9:51 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Apr 23, 2009 at 9:48 AM, Lee Mighdoll leemighd...@gmail.comwrote:
Since lift is a servlet filter
scala
breakpoints in some places for example.
The netbeans javascript code editor is the best I've used so far. Aptana
provides a nice (free) javascript debugging environment for eclipse.
Lee
On Tue, Apr 21, 2009 at 10:16 AM, Kai M. k...@meder.info wrote:
On Apr 21, 7:10 am, Lee Mighdoll
I've seen that problem, though I don't recall exactly when. Perhaps your
your classpath variables aren't set up correctly?
With your project highlighted in the project explorer, try the following
menu sequence: Project Properties Java Build Path Libraries.
On my version, I see a bunch of
I'm currently giving AOP a try
herehttp://github.com/mighdoll/aspecting/tree/master(not in lift).
I was looking for a cleaner way to create objects with
observable properties. I like that an aspect allows for observable objects
that are idiomatic to use and write, and don't require any extra
Most web sites I've worked on, there's a default way to display a form and
that default is encapsulated in the model itself. This encapsulation does
not bar you from building your own form renders, but it does give you nice
default behavior.
I found it odd at first too, to find web
Sounds great.
One other feature I'd like (and I think would be widely useful):
* Partitioned service cluster support for a/b testing: redirect some users
to a different server, e.g. to test the new version
And possibly:
* Backing store support for Voldemort (or does that come through goat
version of this to lift!
Some documentation and a cut at the javascript side of the implementation
are here http://github.com/mighdoll/jsync/tree/master.
Suggestions of any kind would be welcome,
Lee
--~--~-~--~~~---~--~~
You received this message because you
Welcome Jonas!
I'd been thinking that some judicious use of aspectJ might be a nice fit for
lift. Rumor has it you know something about aspects...
Lee
On Mon, Mar 30, 2009 at 11:15 AM, marius d. marius.dan...@gmail.com wrote:
Welcome Jonas !
On Mar 30, 7:52 pm, David Pollak
strategy if there's a use case.
Lee
On Mon, Mar 30, 2009 at 11:53 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Mon, Mar 30, 2009 at 11:26 AM, Lee Mighdoll leemighd...@gmail.comwrote:
Welcome Jonas!
I'd been thinking that some judicious use of aspectJ might be a nice fit
for lift
Running mvn -o clean install, I get:
27:04 on my old desktop (1Ghz Sempron 3100, 2gb, software raid 1)
6:59 on my new laptop (Core2 Duo CPU 9550 2.66Ghz, 4gb, software raid 1)
4:41 on my new desktop (3Ghz Core2 Quad 9650, 8gb, hardware raid 10)
(I ran mvn clean install first to make sure I had
and i'll add you to the
liftweb.net team list :-)
Cheers, Tim
On Mar 18, 9:12 am, marius d. marius.dan...@gmail.com wrote:
Lee, you're most welcomed !
On Mar 18, 5:11 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
Folks,
I'm pleased to welcome Lee Mighdoll to the Lift
, very
stable for me.
Derek
On Mon, Mar 9, 2009 at 3:29 PM, Alex Boisvert boisv...@intalio.comwrote:
I've recently switched back into Eclipse (from jEdit) based on the latest
plugin version. Works very well now.
alex
On Mon, Mar 9, 2009 at 1:37 PM, Lee Mighdoll leemighd
at 10:59 PM, Lee Mighdoll leemighd...@gmail.comwrote:
When I had a bug which threw an exception instantiating my snippet, Lift
logged a confusing error message: ClassNotFound. The class was found, it
just didn't run correctly...
Enclosed is a patch to show a more informative error message
like a pretty dangerous opertation. Wouldn’t you do:
class MySnippet {
val file: Box[Source] = tryo {
Source.fromFile(mistypedFileName)
}
}
In this way you could then use pattern matching and avoid NPE’s
Cheers, Tim
- Show quoted text -
On 06/03/2009 16:04, Lee Mighdoll
like a pretty dangerous opertation. Wouldn’t you do:
class MySnippet {
val file: Box[Source] = tryo {
Source.fromFile(mistypedFileName)
}
}
In this way you could then use pattern matching and avoid NPE’s
Cheers, Tim
- Show quoted text -
On 06/03/2009 16:04, Lee Mighdoll
)
On Wed, Mar 4, 2009 at 2:21 AM, Lee Mighdoll leemighd...@gmail.comwrote:
Ah, sorry to be so cryptic. The idea is to create a link containing a
'javascript:' url that the user can then drag to the browser's bookmark
bar. I had something like this:
a
href=javascript:(function(){var%20e
, Lee Mighdoll leemighd...@gmail.comwrote:
That would be nice, and would work on the page containing the link, but
not for a bookmarklet. With bookmarklets, the user drags the link to the
browser bookmark menu or bookmark bar. Then the bookmarklet runs in the
context of whatever page they're
so the browser will execute it without
navigating to a new page.
Lee
On Wed, Mar 4, 2009 at 11:24 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Mar 4, 2009 at 11:09 AM, Lee Mighdoll leemighd...@gmail.comwrote:
thx - I'll keep an eye out for that. I think IE had a max url
I've been thinking about browser-server data sync for use in my next
project. Sync is potentially more interesting than RPC style ajax,
especially for rich clients, and I think sync could be a grand thing to add
to lift.
The basic idea is like this. A javascript client subscribes to a set of
On Thu, Feb 26, 2009 at 11:28 AM, Lee Mighdoll leemighd...@gmail.comwrote:
I'd like to make a bookmarklet snippet. So I want to take a short
javascript file, encode it as url, and then include it in a snippet.
Any suggestions? Not sure whether to solve this with mvn or lift -- I'm
new
I've a local copy of the lift sources that I'd like to build and debug my
app against. So I currently reference the 1.1-SNAPSHOT artifact in my
application's pom.xml.
But maven seems to pull stuff down from the net more often than I'd like.
I'd like my snapshot not to change until I git pull the
). Otherwise -o is broken.
On Tue, Mar 3, 2009 at 8:42 PM, Jorge Ortiz jorge.or...@gmail.com wrote:
You can run Maven in offline mode with the -o flag. That should stop it
from fetching anything.
--j
On Tue, Mar 3, 2009 at 5:34 PM, Lee Mighdoll leemighd...@gmail.comwrote:
I've a local copy
I just ran across this handy windows tool for trying multiple versions of
IE: IETester http://www.my-debugbar.com/wiki/IETester/HomePage
Lee
On Fri, Feb 27, 2009 at 8:53 AM, David Bernard
david.bernard...@gmail.comwrote:
On Fri, Feb 27, 2009 at 17:37, Timothy Perrett
I'd like to make a bookmarklet snippet. So I want to take a short
javascript file, encode it as url, and then include it in a snippet.
Any suggestions? Not sure whether to solve this with mvn or lift -- I'm new
to both.
--~--~-~--~~~---~--~~
You received this
re: deployment scripts, cloudtools looks interesting. I think it
would be impressive if you could install lift, generate a hello world
app, and deploy it to a new amazon cluster in three steps. Perhaps
lift could bundle a production cloudtools configuration or two in the
mvn archetypes?
Lee
projectwww.cloudtools.org.
Similarly, Cloud Foundry (www.cloudfoundry.com) provides application
monitoring and management.
Chris
On Mon, Feb 16, 2009 at 11:46 AM, mighdoll leemighd...@gmail.com wrote:
Thinking about Lift after 1.0, I was thinking one possible direction
would
33 matches
Mail list logo