I'm just getting started with Lift and Scala, and I'm excited about
using JavaRebel to avoid waiting to restart Jetty every time I make a
change.
It seems to be working well: I can see changes made to snippets for
example right away, I'm running mvn scala:cc: and I see it pick up
the changes.
at webapp init, hence the observed behavior.
Changing this is a tricky thing
On Oct 4, 2009 4:35 AM, Alex Black a...@alexblack.ca wrote:
I'm just getting started with Lift and Scala, and I'm excited about
using JavaRebel to avoid waiting to restart Jetty every time I make a
change
like this.
Br's,
Marius
On Oct 4, 6:11 pm, Alex Black a...@alexblack.ca wrote:
Thanks Tim and Viktor.. Thats disappointing, I was hoping I wouldn't
have to restart the jetty server if when I added a new view.
Maybe there is a creative way around this? E.g. is there a way to get
a new
I'm getting started with Scala and Lift, implementing a simple REST
service. I've extended XMLApiHelper, following examples in Exploring
Lift, but I'm getting a compile error I'm not sure about, any
suggestions?
error:
class RestAPI needs to be abstract, since method createTag in trait
/poc/src/main/scala/com/somecompany/api Unknown Scala
Problem
On Oct 8, 1:36 pm, Alex Black a...@alexblack.ca wrote:
I'm getting started with Scala and Lift, implementing a simple REST
service. I've extended XMLApiHelper, following examples in Exploring
Lift, but I'm getting a compile error
I've encountered this error 3 times, running Jetty and Maven, just
trying out Lift scala with a hello-world like website.
I have to kill the JVM with kill -9 and restart things to fix it,
any ideas?
- Command line: mvn install jetty:run
- I'm using Lift 1.0, Scala 2.7.6 final, 64bit JDK1.6.0_16,
the install goal? You really don't need to.
Regarding the permgen: Can you show your maven options? You can
improve the situation by setting a larger heap size, however this is
an unfortunate thing that just goes along with jetty and maven.
HTH
Cheers, Tim
On Oct 8, 7:10 pm, Alex Black
this is
an unfortunate thing that just goes along with jetty and maven.
HTH
Cheers, Tim
On Oct 8, 7:10 pm, Alex Black a...@alexblack.ca wrote:
I've encountered this error 3 times, running Jetty and Maven, just
trying out Lift scala with a hello-world like website.
I have to kill the JVM
) case _
= Nil}.firstOption getOrElse blank/
On Thu, Oct 8, 2009 at 10:36 AM, Alex Black a...@alexblack.ca wrote:
I'm getting started with Scala and Lift, implementing a simple REST
service. I've extended XMLApiHelper, following examples in Exploring
Lift, but I'm getting a compile error
Hi David, can you elaborate a bit more?
Being new to Scala and Lift, I've downloaded and been using 2.7.6,
with Lift 1.0. Should I instead be using 2.7.5? I'm just wondering if
2.7.6 has issues with perhaps the latest Lift but not 1.0 lift?
- Alex
On Sep 15, 11:43 pm, David Pollak
Ok, thanks for the confirmation Heiko. I'll look into downgrading!
On Oct 14, 2:18 am, Heiko Seeberger heiko.seeber...@googlemail.com
wrote:
Alex,
Please use Scala 2.7.5 for Lift, because there are issues with 2.7.6. Maybe
Lift will go for 2.7.7 somewhen later.
Heiko
2009/10/14 Alex
Hi, I'm curious what your thoughts are on using LIFT to implement a
backend server for REST web services, e.g. respond to GET/PUT/POST/
DELETE requests with xml/json.
Is this a good use of Lift? What are the advantages of doing this with
Lift rather than just Jetty, or another library such as
Thanks for the info guys - going to go ahead with Lift!
On Nov 9, 5:51 pm, Timothy Perrett timo...@getintheloop.eu wrote:
This is why Lift usually wins out in my decision making - its just a
very well rounded tool and yes, its great for these kinds of task. I
would also like to point out
Can anyone suggest some good examples or strategies to use to test a
webservice written with Lift?
I've started down the path of firing up Jetty in a unit test, then
just hitting it with say a GET and checking the response. Whats a
good way of firing up Jetty? It looks like using ServletTester
Hi, I'm attempting to write a basic unit test for a webservice I'm
implementing in Lift, by test looks like this:
val foo = XML.load(http://localhost:8080;)
I'm getting an exception I assume because the XML parser is trying to
download the DTD and is getting denied. Whats the best way to
)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:197)
On Nov 9, 9:43 pm, Alex Black a...@alexblack.ca wrote:
Hi, I'm attempting to write a basic unit test for a webservice I'm
implementing in Lift, by test looks like this:
val foo = XML.load(http
)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:197)
On Nov 9, 9:43 pm, Alex Black a...@alexblack.ca wrote:
Hi, I'm attempting to write a basic unit test for a webservice I'm
a RESTful webservice with Lift
We fire up Jetty populate a temp database and then run a batch of tests.
Seems to work well for us.
Jono
2009/11/10 Alex Black a...@alexblack.ca
Can anyone suggest some good examples or strategies to use to test a
webservice written with Lift?
I've started down
pm, Jonathan Ferguson j...@spiralarm.com wrote:
We fire up Jetty populate a temp database and then run a batch of tests.
Seems to work well for us.
Jono
2009/11/10 Alex Black a...@alexblack.ca
Can anyone suggest some good examples or strategies to use to test a
webservice written
...http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/sca...
After spending 30 minutes with the Lift TestKit, I'm wicked unhappy with
it... but that will change later today. ;-)
On Tue, Nov 10, 2009 at 9:51 AM, Alex Black a...@alexblack.ca wrote:
My first unit test worked fine
Looks nice.
Singleton - ah, yes, that sounds like it will work well, good call.
On Wed, Nov 11, 2009 at 12:05 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Wed, Nov 11, 2009 at 7:09 AM, Alex Black a...@alexblack.ca wrote:
What are you unhappy about? Those tests look pretty
pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Nov 11, 2009 at 7:09 AM, Alex Black a...@alexblack.ca wrote:
What are you unhappy about? Those tests look pretty simple and slick
to me!
Yeah, but with this change:http://reviewboard.liftweb.net/r/95/
You'll get:
Login
For example, if my html template looks like this:
lift:surround with=default at=content
h2foobar/h2
lift:MySnippet.render
img src=dummy/
/lift:MySnippet.render
/lift:surround
In my snippet I'd like to replace dummy (in img src) with
I've been developing a REST api using Lift, and have just added some
basic html templates to it, and started using a snippet or two.
As I'm testing out my pages I'm noticing a number of odd things:
1. Often when I alt tab back to my browser, its not on the page i left
it on (say
, 2009 at 2:32 PM, Alex Black a...@alexblack.ca wrote:
I've been developing a REST api using Lift, and have just added some
basic html templates to it, and started using a snippet or two.
As I'm testing out my pages I'm noticing a number of odd things:
1. Often when I alt tab back to my
feeder.of.the.be...@gmail.com
wrote:
If you're doing mvn jetty:run, please edit your pom.xml and change:
scanIntervalSeconds5/scanIntervalSeconds
to
scanIntervalSeconds0/scanIntervalSeconds
On Thu, Nov 19, 2009 at 2:32 PM, Alex Black a...@alexblack.ca wrote:
I've been developing a REST api
, in,
BindNumber(tco,
res.filteredResult(lc).avgTCO(segment)),
AttrBindParam(rankClass,Text(rankClass(res.rankBySegment(lc, segment))),
class)
)
On Nov 19, 5:46 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Alex Black a...@alexblack.ca writes:
For example
I got it working, thanks again Jeppe.
On Nov 19, 5:46 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Alex Black a...@alexblack.ca writes:
For example, if my html template looks like this:
lift:surround with=default at=content
h2foobar/h2
lift:MySnippet.render
, Nov 19, 2009 at 2:32 PM, Alex Black a...@alexblack.ca wrote:
I've been developing a REST api using Lift, and have just added some
basic html templates to it, and started using a snippet or two.
As I'm testing out my pages I'm noticing a number of odd things:
1. Often when I alt tab back
as if nothing had happened.
On Nov 19, 6:28 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Nov 19, 2009 at 3:18 PM, Alex Black a...@alexblack.ca wrote:
I just did some work, restarted jetty, and upon startup saw that it
processed two requests (that I hadn't initiated):
INFO
Anyone got any tips on working around this error?
JRebel: Class 'com.blah.blah.explorer.snippet.Features$$anonfun$render
$1' implements new interfaces and could not be reloaded!
I've just tried JRebel for the first time, and I made what I thought
was a minor change to my snippet and JRebel
!
- Alex
On Nov 19, 6:54 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Nov 19, 2009 at 3:31 PM, Alex Black a...@alexblack.ca wrote:
thanks for the explanation. Can you tell me a bit more about that?
Not knowing anything about this it seem unfamiliar to me.
Say we had customers
(_.name.toString _.name.toString)
Kris
On Thu, Nov 19, 2009 at 4:56 PM, Alex Black a...@alexblack.ca wrote:
Anyone got any tips on working around this error?
JRebel: Class 'com.blah.blah.explorer.snippet.Features$$anonfun$render
$1' implements new interfaces and could not be reloaded
Thanks Tim.
Do you happen to know any way of also removing this line from my
webpages:
script type=text/javascript src=/ajax_request/liftAjax.js
- Alex
On Nov 20, 5:25 am, Timothy Perrett timo...@getintheloop.eu wrote:
That would be:
LiftRules.redirectAjaxOnSessionLoss = false
Cheers, Tim
:
LiftRules.autoIncludeAjax = session = false
-Ross
On Nov 20, 2009, at 10:43 AM, Alex Black wrote:
Thanks Tim.
Do you happen to know any way of also removing this line from my
webpages:
script type=text/javascript src=/ajax_request/liftAjax.js
- Alex
On Nov 20, 5:25 am, Timothy Perrett
I've got a template page, say foobar.html, that makes a number of
calls to functions in a snippet, e.g. mysnippet.foo1, mysnippet.foo2,
mysnippet.foo3.
I'd like to do some initial work in foo1, e.g. retrieve some data and
do some work on it, then in foo2 and foo3 display parts of that data.
) = // do something when the data has been
loaded
case _ = // do something when the data has not been loaded
}
}
}
HTH,
-Ross
On Nov 20, 2009, at 10:59 AM, Alex Black wrote:
I've got a template page, say foobar.html, that makes a number of
calls
On Nov 20, 11:30 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Fri, Nov 20, 2009 at 8:17 AM, Alex Black a...@alexblack.ca wrote:
We made this change for Lift 1.1. So, if you're using 1.1, the same
instance of a snippet should be used for a given HTTP request.
Very cool. I'm
For example, if my html template looks like this:
lift:surround with=default at=content
h2foobar/h2
lift:MySnippet.render
input type=checkbox/
/lift:MySnippet.render
/lift:surround
I'd like to render it conditionally as:
, 2009, at 5:28 PM, Alex Black wrote:
For example, if my html template looks like this:
lift:surround with=default at=content
h2foobar/h2
lift:MySnippet.render
input type=checkbox/
/lift:MySnippet.render
/lift:surround
I'd
Thanks Jeppe, that works perfectly.
On Dec 2, 3:32 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Alex Black a...@alexblack.ca writes:
Is there a good/reasonable way to conditionally output
checked=checked or output nothing?
If you output null for the attribute value, the attribute
In one of my templates I have this:
lift:HelloWorld.foobar
head
titlehello:one vs hello:two/title
/head
/lift:HelloWorld.foobar
The XHTML output I get looks like this:
head
titleOutput1vsOutput2/title
/head
Where hello:one is
to be hello:one / or
something along those lines), so I'm wondering if you could post the
actual example code? I can't think of any reason offhand those should
be stripped.
-Ross
On Dec 3, 2009, at 2:41 PM, Alex Black wrote:
In one of my templates I have
surrounding code that might point out the problem?
-Ross
On Dec 3, 2009, at 2:48 PM, Alex Black wrote:
Here's the actual code:
head
lift:Compare.products
titlecompare:product1/ vs compare:product2//title
/lift:Compare.products
/head
On Dec 3, 2
Thanks for the info - I'll look into trying out 1.1-M6.
On Dec 3, 4:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Thu, Dec 3, 2009 at 12:19 PM, Alex Black a...@alexblack.ca wrote:
Ah.. I've worked around the problem for now. If my snippet outputs
titlefoo vs bar/title
) = // do something when the data has been
loaded
case _ = // do something when the data has not been loaded
}
}
}
HTH,
-Ross
On Nov 20, 2009, at 10:59 AM, Alex Black wrote:
I've got a template page, say foobar.html, that makes a number
If you output null for theattributevalue, theattributeis not
rendered:
I've just upgraded from 1.0 to 1.1-M6, and this doesn't seem to work
any more - could this be a bug in M6?
Message: scala.MatchError: null
scala.runtime.ScalaRunTime$.boxArray(ScalaRunTime.scala:136)
That looks like a great idea, thanks Harry, I didn't know you could
next stuff like that.
On Dec 7, 3:39 pm, harryh har...@gmail.com wrote:
Another strategy, different from what Ross suggests, that I have found
useful in some circumstances. In the view do this:
lift:YourPage
}/scalaVersion
/configuration
/plugin
/plugins
/reporting
/project
On Dec 7, 3:28 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Sun, Dec 6, 2009 at 5:44 AM, Alex Black a...@alexblack.ca wrote:
We made this change for Lift 1.1. So, if you're using 1.1, the same
feeder.of.the.be...@gmail.com wrote:
On Sun, Dec 6, 2009 at 5:44 AM, Alex Black a...@alexblack.ca wrote:
We made this change for Lift 1.1. So, if you're using 1.1, the same
instance of a snippet should be used for a given HTTP request.
Hi David, I've just switch from Lift 1.0 to Lift 1.1-M6
Its not causing me any issue at the moment, just figured it'd be
faster/more correct to call the constructor just once if only one
instance was needed.
- Alex
On Dec 7, 5:25 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Mon, Dec 7, 2009 at 2:23 PM, Alex Black a...@alexblack.ca wrote
Thanks for the help on this guys, looks promising.
On Dec 7, 12:57 pm, Ross Mellgren dri...@gmail.com wrote:
Sha-bam
http://github.com/dpp/liftweb/issues/#issue/229
-Ross
On Dec 7, 2009, at 12:43 PM, David Pollak wrote:
Is there a ticket for this? I'm in ticket-closing mode today ;-)
Can anyone recommend a way to map a virtual directory in Jetty/Lift?
E.g. I'd like /images to point to a file system location that is not
in my project.
Is there a simple Jetty mechanism, or Lift configuration for this type
of thing?
Thx!
- Alex
--
You received this message because you are
) will serve it. Option 2 is to put a front end rewrite in on
your webserver / reverse proxy.
Personally, the former is more portable so tends to be what I do.
Cheers, Tim
On 14 Dec 2009, at 18:06, Alex Black wrote:
Can anyone recommend a way to map a virtual directory in Jetty/Lift?
E.g. I'd
I see the following javascript on each of my pages in my site:
// ![CDATA[
jQuery(document).ready(function() {lift_successRegisterGC();});
var lift_page = 'F1212351415633FZT';
// ]]
I don't think its necessary for what I'm doing, is there a way to turn
off this feature?
Thanks!
- Alex
--
You
Are you using any Comet or Ajax or any Lift generated form elements? If you
are using any of these (anything where Lift is storing a function on the
server-side and presenting the function as a GUID on the client side), then
it is strongly advised that you enable GC.
We're not using Comet or
Hi David, is there a way to turn off the output of this javascript
code?
On Dec 16, 8:51 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 16, 2009 at 5:47 AM, Alex Black a...@alexblack.ca wrote:
I see the following javascript on each of my pages in my site:
// ![CDATA
Hey Dave, great site, beautiful photography.
If you had time you might add some URL rewriting, so that galleries
had nice urls like:
http://briccettiphoto.com/show/galleries/kenya
- Alex
On Dec 13, 1:44 am, Dave Briccetti da...@davebsoft.com wrote:
For a lightning talk at Bay Area Scala
I found this in another thread:
LiftRules.enableLiftGC = false
On Dec 16, 12:55 pm, Alex Black a...@alexblack.ca wrote:
Hi David, is there a way to turn off the output of this javascript
code?
On Dec 16, 8:51 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 16, 2009
cool, thanks for the info. We're not using those features yet, so
we'll leave this off for now.
On Dec 16, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote:
Are you using any Comet or Ajax or any Lift generated form
should be as
stateless as possible - using state for callbacks doesn't sit well
with me, yet.
- Alex
On Dec 16, 4:35 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 16, 2009 at 1:30 PM, Alex Black a...@alexblack.ca wrote:
cool, thanks for the info. We're not using those
Can someone point me in the right direction to get tooltips (title
attributes) rendered in my sitemap?
I'd like to add text to each link, so they get rendered like this:
lia href=link title=what will happen when you click on this
linksome page/a/li
thx
- Alex
--
You received this message
.
- Alex
You could add MetaData 'title' by Elem 's method '%'
a href=linksome page/a % (title - what will happen when you click
on this
link)
or use { }
a href=link title={myLinkTitle}some page/a
On Mon, Dec 21, 2009 at 10:38 PM, Alex Black a...@alexblack.ca wrote:
Can someone point me
I've got a large response I'd like to send out, and I'd like to chunk
it up.
http://en.wikipedia.org/wiki/Chunked_transfer_encoding
Does Lift provide any built in support for this?
I've explored using StreamingResponse, but it expects a dataLength,
which I don't have. I had hoped to provide it
, 2009 at 2:38 PM, Alex Black a...@alexblack.ca wrote:
I've got a large response I'd like to send out, and I'd like to chunk
it up.
http://en.wikipedia.org/wiki/Chunked_transfer_encoding
Does Lift provide any built in support for this?
No.
I've explored using StreamingResponse
That could definitely work.
I'd still (even for curiosity's sake) be interested in lower level
access to the response, e.g. response.write that goes right out to the
client.
On Dec 22, 7:36 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Tue, Dec 22, 2009 at 4:28 PM, Alex Black
I've got this xhtml in my template:
lift:Compare.loserAlsoKnownAs
Also known as:
ul
alsoKnownAs:list
lilist:label //li
/alsoKnownAs:list
/ul
/lift:Compare.loserAlsoKnownAs
with this snippet code:
def alsoKnownAs( xhtml: NodeSeq, product: Product): NodeSeq = {
def list(
I missed a bit of code, probably not relevant, but just in case
someone notices the issue:
def loserAlsoKnownAs( xhtml: NodeSeq ): NodeSeq = {
alsoKnownAs(xhtml, loser)
}
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group,
(...)
}
}
-Ross
On Dec 23, 2009, at 4:07 PM, Alex Black wrote:
I've got some xhtml blocks in one of my templates that are basically
identical, and I'd like to avoid the duplication, by either writing
the block once in my template and using a snippet to write it out
twice (with different
calling from template, you say lift:MySnippet.foobar
itemId=1234.../lift:MySnippet.foobar, but if you're in some other
snippet you say MySnippet.foobar(theItem)(...)
Hope that helps,
-Ross
On Dec 23, 2009, at 4:32 PM, Alex Black wrote:
Thanks Ross, I think I get that.. I'm not seeing
Yeah that looks like exactly what I'm looking for.
I'm just debating the two options: 1. Use many snippets and pass the
current item down through a request var. 2. Use one snippet (composed
of many internal function calls) and pass the current item down as a
parameter.
I'll give both a shot,
I'd like to handle 404s on my site in such a way that:
- there is no redirect, e.g. if you type in a url like mysite.com/
foobarme, you'll stay at that url, so maybe you can correct it
- the status code returned is 404 (not 200 OK)
See stackoverflow:
http://stackoverflow.com/bob
So I tried
, ...))
Thanks, Chris
On Wed, Dec 23, 2009 at 2:25 PM, Alex Black a...@alexblack.ca wrote:
Hi Xuefeng, I think will produce 1 tooltip for the entiresitemap,
what i'm looking for is a tooltip for each link in thesitemap.
On Dec 21, 11:39 pm, Xuefeng Wu ben...@gmail.com wrote:
Sorry I
In my effort to handle 404s without a redirect (see
http://groups.google.com/group/liftweb/browse_thread/thread/4a9806a63419644f),
I am wondering if there is a way to add an item at the end of a
sitemap which matches every url?
E.g. Lift would look through the sitemap for a match, and always
In my snippet I'd like to change the response status code from the
default 200 to something else, say 201, or 404. (see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
I see there is a method on S to change the doctype, but I don't see
one to change the status code.
Thanks,
- Alex
--
* works for 404 handling, except you still get a 200 OK
response when you would expect a 404. I am hoping there is some
mechanism in lift to let me change the status code to 404 for this
menu.
- Alex
On Dec 29, 11:10 am, Alex Black a...@alexblack.ca wrote:
In my effort to handle 404s without
to
use that since I'm still on 1.0, it looks like it was added later. (I
am considering moving to 1.1-M6).
- Alex
Cheers, Tim
On 29 Dec 2009, at 15:23, Alex Black wrote:
But of course RewriteResponse is not a LiftResponse. Whats the best
way to do this? Basically I've got a template called
Is M8 pretty stable? A little while back DavidP recommended M6 as being the
most stable of the milestones.
On Tue, Dec 29, 2009 at 1:07 PM, Ross Mellgren dri...@gmail.com wrote:
Switch to 1.1-M8, if you can.
-Ross
On Dec 29, 2009, at 1:04 PM, Alex Black wrote:
To be clear
= lift:surround with=default at=content
h1Not Found/h1
/lift:surround
LiftRules.uriNotFound.prepend {
case (req, _) = XhtmlResponse(S.render(node404, req), _,
headers, cookies, 404, false)
}
Cheers, Tim
On 29 Dec 2009, at 15:23, Alex Black wrote:
But of course
, but at a base level,
InMemoryResponse will do what you want... as I said, you need to
look at LiftResponse subclasses and find the one that suits your
needs.
Cheers, Tim
On 29 Dec 2009, at 17:07, Alex Black wrote:
In my snippet I'd like to change the response status code from
the url.
I'd offer to write the new wiki page - is there a way for me to get an
account on that wiki - or is it just for contributors?
- Alex
On Dec 29, 1:20 pm, Alex Black a...@alexblack.ca wrote:
If you want to display the contents of your 404.html, checkout
NodeResponse... just load up your
I've changed my sitemap from:
Menu(Loc(index, Pair(index :: Nil, false), Home)) ::
to
Menu(Loc(index, Pair( :: Nil, false), Home)) ::
So that my Home link goes to mysite.com/ instead of mysite.com/
index. But, I notice, when you're at mysite.com/ the sitemap doesn't
show Home as
, Tim
On 29 Dec 2009, at 17:07, Alex Black wrote:
In my snippet I'd like to change the response status code from the
default 200 to something else, say 201, or 404. (see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
I see there is a method on S to change the doctype, but I
jetty:run
I would strongly recommend against a catch-all entry in SiteMap as it will
expose every page on your site to access.
On Tue, Dec 29, 2009 at 11:17 AM, Alex Black a...@alexblack.ca wrote:
Ok, I got this working, with 1.1-M8 using S.render.
// A node which embeds our 404 template (e.g
:
This is the production run mode thing dpp talked about. Try your app with
-Drun.mode=production
-Ross
On Dec 29, 2009, at 7:39 PM, Alex Black wrote:
Thanks for pointing that out, the catch-all sounds dangerous.
I tried your suggestion, and it works well except I'm encountering one
issue, my sitemap renders
?
On Tue, Dec 29, 2009 at 1:40 PM, Alex Black a...@alexblack.ca wrote:
Hi Marius, I was trying to find a way to give a custom 404 response
without changing the url (e.g. using a redirect) and returning a 404
status code.
Before I found a solution, I found an almost solution which let me use
I've changed my sitemap from:
Menu(Loc(index, Pair(index :: Nil, false), Home)) ::
Yes, the / directory will be rendered by Lift as /index There's no way
around that one.
Can you explain? I don't understand. I'm not sure what rendered
means in this context, and I'm not as far as I
for./p
/lift:surround
And my default.html hidden template has a site map tag in it, and the
sitemap contains a number of entries.
On Dec 30, 12:14 am, Alex Black a...@alexblack.ca wrote:
I emailed Ross directly and said I did run with -Drun.mode=production.
Here's what I'm seeing:
1. If I run
a redirect, with 404 status code), and processed by
the template engine so it uses our default template with sitemap etc.
- Alex
On Dec 30, 12:22 am, Alex Black a...@alexblack.ca wrote:
One more detail:
notFoundNode is defined like this:
val notFoundNode = lift:embed what=404 /
and 404
direct you as far as that
goes.
-Ross
On Dec 30, 2009, at 12:32 AM, Alex Black wrote:
I noticed another problem: the head merge is not working in this
scenario, the resulting page is not valid XHTML because it has two
head tags :) So, this makes me think I'm going about things
Google's opinion:
http://googlewebmastercentral.blogspot.com/2008/08/farewell-to-soft-404s.html
On Dec 30, 10:05 am, Alex Black a...@alexblack.ca wrote:
I'll try out that solution Russ, thanks. Although as the solution
gets a bit more complex, and taking into account Marius's advice
While I totally agree that a plain 404 + markup is much more
straightforward,
breaks internet are too big words :) .. sending back a
302 or 301 tells the UA you asked me for a resource that I know I
don't have but I wont tell
you explicitely, instead I want you to go to this location as an
template to make only one head I guess, or wait until someone more
wise than I can direct you as far as that goes.
-Ross
On Dec 30, 2009, at 12:32 AM, Alex Black wrote:
I noticed another problem: the head merge is not working in this
scenario, the resulting page is not valid XHTML because
regardless needs to be
announced.
Other opinions on this?
Br's,
Marius
On Dec 30, 6:20 pm, Alex Black a...@alexblack.ca wrote:
While I totally agree that a plain 404 + markup is much more
straightforward,
breaks internet are too big words :) .. sending back a
302 or 301 tells the UA
In a 1.1-M8 based
project,http://localhost:8080/andhttp://localhost:8080/indexboth cause the
Home menu item to be
non-clickable. The definition of the Home menu item is Menu(Loc(Home,
List(index), Home))
Understood.
However, in this scenario, when the user clicks on home they get
taken
with that issue.
thx
- Alex
On Dec 30, 12:49 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 30, 2009 at 9:43 AM, Alex Black a...@alexblack.ca wrote:
In a 1.1-M8 based project,
http://localhost:8080/andhttp://localhost:8080/indexbothcause the Home
menu item to be
non-clickable
,
Marius
On Dec 30, 6:20 pm, Alex Black a...@alexblack.ca wrote:
While I totally agree that a plain 404 + markup is much more
straightforward,
breaks internet are too big words :) .. sending back a
302 or 301 tells the UA you asked me for a resource that I know I
don't have
of Either[List[String], LiftResponse] instead of
LiftResponse but I don't think that many people are using uriNotFound
and it's really quite a small change which regardless needs to be
announced.
Other opinions on this?
Br's,
Marius
On Dec 30, 6:20 pm, Alex Black
S.runTemplate() to locate and run the 404.html template.
Finally, we create the XhtmlResponse with the 404 error code.
So, you can put whatever you want in the 404.html template (including
snippets) and all will work as expected.
Thanks,
David
On Wed, Dec 30, 2009 at 10:45 AM, Alex Black
, it
will work fine, but others can avoid the index in the url.
- Alex
On Dec 30, 12:49 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Wed, Dec 30, 2009 at 9:43 AM, Alex Black a...@alexblack.ca wrote:
In a 1.1-M8 based project,
http://localhost:8080/andhttp://localhost:8080/indexbothcause
1 - 100 of 129 matches
Mail list logo