Johnie,
If you have a problem with lift, or are finding something lift-related
difficult to understand, by all means raise it on this list and there
is a good chance if its a problem with lift we'll do something about
it, pronto. However, if you have a problem with the way I construct
sentences
Scala's XML support is based in immutable objects meaning that you can
not change them but rather generate new structures.
Lift is very flexible and allows you to apply your own xhtml
transformation right before the response is sent down to client.
LiftRules.responseTransformers.append {
Hi folks,
I'm at EPFL for the next two weeks for an intensive hacking stint with
Martin and Iulian on the Scala IDE and on scalac's IDE interface. For
now I would strongly recommend staying well away from trunk if you
want to be able to get any useful work done: things are currently
broken and
On Mon, May 18, 2009 at 1:23 PM, Ismael Juma mli...@juma.me.uk wrote:
On Mon, 2009-05-18 at 13:12 +0200, Miles Sabin wrote:
We have some very ambitious (but realistic) plans for this fortnight,
and I think that by the beginning of June we'll have made an awful lot
of progress on both
A question I've had is how hard would it be to support a ExtJS based
application (i.e. the server side only needs to be a remote JSON
framework). I assume this would be just-as-difficult as providing a
REST-based API to your data. We use ExtJS extensively at work, and there
are some pors/cons
What is the recommended way for logging in Lift applications?
(a) Use LiftLogger
(b) Use custom application logging via Log4j, SLF4J, etc. because LiftLogger
is meant for Lift internal only
Thanx
Heiko
--
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala:
Hi all. I just picked up Lift and Scala a couple of weeks ago. I have
been using mostly Wicket for the last couple of years. I have ordered
David's Scala book and a Lift book from Amazon, but they're not here
yet, so I am hoping that someone can help me with some conceptual
issues.
In Wicket,
@David
Do you want everything to live in the same WAR file? ...
No war at all, its a standalone app. Right now I have an embedded
Jetty server with a registered jetty..RequestHandler. This app
monitors machine tools on manufacturing floors, buffers the data, and
provide a client http api for
Yeah, that's the ticket. You've got a new technology or framework you
want to promulgate,
insult the one's who don't get it out of the box. A bit mean-spirited,
don't you think.
Frankly, lift raises more questions then it answers. That's not a
complaint..
I don't get it. I don't get that I have
On May 17, 10:58 pm, Christian christian.szeg...@gmail.com wrote:
This might not be the baddest thread on this list, but perhaps
be funkiest... ;)
Although I do not fully understand your post, I understand that it
is a great ambiguous joke. That is fine for you.
But I dead serious and I hope
(Hmm, I replied yesterday but never saw the post, so apologies if both
eventually show up)
Do you want everything to live in the same WAR file?
This is a standalone app -- no war file. Currently it is using an
embedded jetty server.
The application (agent) monitors machine tools on the
On Mon, May 18, 2009 at 8:38 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:
I think that it's unreasonable to expect everyone to avoid idiomatic
English on the list. If someone posts something that is ambiguous or uses
language that is unclear, please post a polite request for
On Sun, May 17, 2009 at 8:56 PM, Narayanaswamy, Mohan
mohan.narayanasw...@credit-suisse.com wrote:
I am learning lift(and so scala) for the past 7 days.
Myself and one of my friend were discussing about lift for our new project.
When I was introducing the TODO project code and how to setup
On Mon, May 18, 2009 at 6:02 AM, Josh Suereth joshua.suer...@gmail.comwrote:
A question I've had is how hard would it be to support a ExtJS based
application (i.e. the server side only needs to be a remote JSON
framework). I assume this would be just-as-difficult as providing a
REST-based
Is there a way for me to *know* the potential stateful snippets I could call
using the lift_page javascript variable? Most of my views are completely
in JavaScript, and my server calls can take in any kind of data (JSON or raw
parameters) and return JSON. IF you can point me at the right way to
On Mon, May 18, 2009 at 7:50 AM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
What is the recommended way for logging in Lift applications?
(a) Use LiftLogger
(b) Use custom application logging via Log4j, SLF4J, etc. because
LiftLogger is meant for Lift internal only
The Lift
On Sat, May 16, 2009 at 1:53 AM, ivan ivan.se...@gmail.com wrote:
First I have to say sorry everyone for asking too many questions,
asking a question is my last choice after i coludn't find an answer in
a book or somewhere else.
The question is: I am trying to use a StatefulSnippet. The
Lifted,
Is there any reason why SHtml doesn't have ajaxSelectObj()?
Is it hard to implement something like that outside of the SHtml
object? (I looked at the source, but my Scala knowledge is not up to
this quite yet. :-()
--Andrew
--~--~-~--~~~---~--~~
You
Good point... I'll add it.
On Mon, May 18, 2009 at 10:50 AM, Andrew Scherpbier
and...@scherpbier.orgwrote:
Lifted,
Is there any reason why SHtml doesn't have ajaxSelectObj()?
Is it hard to implement something like that outside of the SHtml
object? (I looked at the source, but my Scala
I am using Mapper with a class like that:
class Participant extends LongKeyedMapper[Participant] with IdPK {
override def getSingleton = Participant
object firstName extends MappedString(this, 100) {
override val displayName = First name
override val validations = valMinLen(1,
Looking forward to seeing the fruits of your labor! Other than the
well-known Maven issues, the 2.7.4 release is working really well for me.
Derek
On Mon, May 18, 2009 at 5:12 AM, Miles Sabin mi...@milessabin.com wrote:
Hi folks,
I'm at EPFL for the next two weeks for an intensive hacking
I keep getting an ActorPingException error in the server console. It's
not fatal, as the app doesn't crash. Any ideas on the cause? I'm not
extending Actor in any of my classes.
INFO - Service request (GET) /images/ajax-loader.gif took 1
Milliseconds
net.liftweb.util.ActorPingException: ActorBug
There are two main approaches to this, both of which are covered in the Lift
book that you've ordered (thanks!). The first is to use a StatefulSnippet.
This lets you use the same snippet class instance, so any member variables
are still there when the next page hit comes. You can see an example of
Glenn, most of the people on this list have come to Lift knowing pretty much
nothing about it. Most of the people on this list have also read the APIs,
source, and asked a ton of questions to learn about Lift and how it works.
Very few other people on this list that I can recall have made
The URL is defined by the match list in the Req object. In your case, you're
defining your match as :
case r @ Req(api :: company :: Nil, , PutRequest)= () =
addCompany(r)
Your List is (api :: company :: Nil), So your URL would need to look
like
http://.../api/company
Derek
On Sun, May 17,
On May 17, 10:33 pm, Timothy Perrett timo...@getintheloop.eu 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
On Mon, May 18, 2009 at 9:28 AM, Josh Suereth joshua.suer...@gmail.comwrote:
Is there a way for me to *know* the potential stateful snippets I could
call using the lift_page javascript variable?
Actually, you're not calling stateful snippets, you're calling a Json
handler.
Please take a look
Glenn,
It looks like Jetty is restarting your application. This can cause issues
with java.util.concurrent schedulers. Try setting the from
scanIntervalSeconds5/scanIntervalSeconds to
scanIntervalSeconds0/scanIntervalSeconds in your pom.xml file.
Thanks,
David
On Mon, May 18, 2009 at 12:53
I'll let you know. Having a good ExtJS + LIft story would be very handy
when I talk to the Grails fans in the office.
-Josh
On Mon, May 18, 2009 at 5:08 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Mon, May 18, 2009 at 9:28 AM, Josh Suereth joshua.suer...@gmail.comwrote:
Is
Folks,
As you all may or may not know, I've been battling memory retention issues
with the Scala Actor libraries for 6 or so months now. I believe that I've
finally nailed the complete issues.
They are as follows:
- There is an object called ActorGC that keeps track of all the actors in
Thanks for the patch!
On Sun, May 17, 2009 at 2:35 PM, Xavi Ramirez xavi@gmail.com wrote:
Hello,
There seems to be an error in the tictac on the following line:
registerCleanupFunc(() = is.foreach(who = LobbyServer !
RemoveLurker(who)))
I've changed the code to this:
override
That should work fine, too, as long as you're not using
LiftRules.statelessDispatchTable to bind the dispatch (since S won't be
initialized there).
Derek
On Mon, May 18, 2009 at 2:51 PM, glenn gl...@exmbly.com wrote:
Deriek,
Appreciate your response. What I did was change the case to just
BTW, what happens if the mime type is incorrect? Does the Req.xml method
fail in a graceful way, or do you get exceptions?
On Mon, May 18, 2009 at 2:51 PM, glenn gl...@exmbly.com wrote:
Deriek,
Appreciate your response. What I did was change the case to just
case Req(api :: company ::
On Sat, May 16, 2009 at 2:39 PM, g-man gregor...@gmail.com wrote:
As I create the Models to define the real-world things of interest to
my webapp, I'm wondering what to put into either the class or the
object. Here is some pseudocode as I understand the Model table
definition pattern:
//
It just falls through to the default request handling which reads the
whole stream in and should be accessible via req.body (where req is
the instance val) - see it here: http://is.gd/B6VT
Cheers, Tim
On May 18, 11:00 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
BTW, what happens if the
Fabulous
On Mon, May 18, 2009 at 4:27 PM, Timothy Perrett timo...@getintheloop.euwrote:
It just falls through to the default request handling which reads the
whole stream in and should be accessible via req.body (where req is
the instance val) - see it here: http://is.gd/B6VT
Cheers, Tim
Glenn,
Sorry... my mistake... the following code works:
object loginReferer extends SessionVar(/)
override def homePage = {
var ret = loginReferer.*is*
loginReferer.remove()
ret
}
override def login = {
for (r - S.referer if loginReferer.is == /) loginReferer.set(r)
Oliver,
Good stuff... please make sure that your branch is available on the GitHub
repository for all to see and use.
Thanks,
David
On Sat, May 16, 2009 at 1:36 AM, Oliver Lambert olambo...@gmail.com wrote:
On Sat, May 16, 2009 at 4:32 AM, David Pollak
feeder.of.the.be...@gmail.com
I'll fix it right now
On Mon, May 18, 2009 at 4:25 PM, Charles F. Munat c...@munat.com wrote:
One of my sites on Lift 1.0 is broken in IE8 because the XML parser is
minimizing the liftAjax.js script tag and IE8 won't recognize it.
I know there's a solution. I'm using XHTML 1.1. I don't
It's fixed in Lift 1.1-SNAPSHOT (I fixed it a while back.)
Do you need a back-port to 1.0?
On Mon, May 18, 2009 at 4:33 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
I'll fix it right now
On Mon, May 18, 2009 at 4:25 PM, Charles F. Munat c...@munat.com wrote:
One of my sites on
I don't know what your Ph.D. is in, but I hope it's not poetry.
Chas.
johnnie wrote:
On May 17, 5:28 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Johnie,
What on earth are you going on about? You qoute me there from a
convesation on-list with Heiko about OSGi... out of context it
Setting the scan interval to 0 eliminates the pinging, but then I have
to stop and
restart jetty every time I modify my code. That's not a good option.
With a 5 sec interval, that's all I had to wait for code changes to
take effect.
On May 18, 2:13 pm, David Pollak feeder.of.the.be...@gmail.com
Now, when I stop the server and restart, I get a whole slew of
compiler warnings and the build fails. I have to run mvn:clean and
then restart to clear it all up. Could my mvn pom be picking
up another lift or scala jar file somewhere and that is causing
confusion??? I'm puzzled.
Here's just a
I'm just doing a minimal REST server implementation, and only allowing
xml through. I suppose I could expand on this and add processing for
req.body.
That's a byte stream, though, I believe. But that brings up a whole
lot of other
issues, with handling different mime types. Yechhh
On May 18,
That might help. I have several sites frozen at 1.0 at the moment, and
my Internet connection is currently hosed (I'm at a café), so I don't
know when I'll be able to convert them and test them out. Do you mind?
Chas.
David Pollak wrote:
It's fixed in Lift 1.1-SNAPSHOT (I fixed it a while
On Mon, May 18, 2009 at 5:08 PM, Charles F. Munat c...@munat.com wrote:
That might help. I have several sites frozen at 1.0 at the moment, and
my Internet connection is currently hosed (I'm at a café), so I don't
know when I'll be able to convert them and test them out. Do you mind?
I'll do
+1 oddest thread on the lift group so far.
On May 18, 7:42 pm, Charles F. Munat c...@munat.com wrote:
I don't know what your Ph.D. is in, but I hope it's not poetry.
Chas.
johnnie wrote:
On May 17, 5:28 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Johnie,
What on earth are
How does one format a BigDecimal? I don't want to .toString()...
I'm using a MappedDecimal and I would to format its value. I've tried
using java.lang.String.format() but it doesn't know what a
scala.BigDecimal is... Help!
BTW, I'm using 1.1-SNAPSHOT
--Andrew
Thanks! That helps a lot.
It took me a few minutes to realize that when the user clicks the link
to editAcct, he will be directed to the account edit page, but the
link's function will still be executed in the context of the snippet
that generated it. It's a little different in Wicket: the
I'm back with another question.
I see that StatefulSnippet extends DispatchSnippet. I understand what
DispatchSnippet is about. But what is the reason that a
StatefulSnippet must also be a DispatchSnippet? Aren't these concepts
(stateful vs. stateless, dispatch vs. reflection) unrelated?
It's better practice to use DispatchSnippets. Snippets by convention are
the easy toe in the water, but once you're dealing with state, etc., you
should be graduating to declaring the methods that your snippets support,
thus enforcing the DispatchSnippet being the base class of StatefulSnippet.
Ah, that's interesting (I haven't used Wicket). The reason that the link
function executes in the scope of its definition is that it's a closure, so
it captures its scope. In general, closures are the foundation for a lot
of Lift functionality. The same mechanism is what makes ajax and comet so
The BigDecimal value of a MappedDecimal field is Scala's BigDecimal, which
itself wraps the Java BigDecimal. At the very least you can use
java.text.DecimalFormat to format the underlying java.math.BigDecimal. Let
me know if you have any further questions.
Derek
On Mon, May 18, 2009 at 6:19 PM,
Ugh. I like your current fall-through :)
Derek
On Mon, May 18, 2009 at 5:44 PM, glenn gl...@exmbly.com wrote:
I'm just doing a minimal REST server implementation, and only allowing
xml through. I suppose I could expand on this and add processing for
req.body.
That's a byte stream, though,
Hi
I discovered Scala and Lift about a month ago and have since been
porting my webpage over to it from Ruby's Merb framework. Moving from
Haml to HTML wasn't much of a problem as my HTML is usually quite
simple, but keeping CSS organized is a pain. I liked the nested approach
of Sass (which
Thanks...
Being a hobbyist rather than a professional, my questions will be more
conceptual in nature, and may help others learn what I hope to find of
the essence of Lift, which includes a little of its java-like
heritage, as in the 'static' analogy.
I see Lift as a vehicle with 'legs' for the
Very nifty stuff.
On Mon, May 18, 2009 at 8:09 PM, Derek Williams de...@nebvin.ca wrote:
Hi
I discovered Scala and Lift about a month ago and have since been
porting my webpage over to it from Ruby's Merb framework. Moving from
Haml to HTML wasn't much of a problem as my HTML is usually
Thanks Derek!
I hadn't noticed the "bigDecimal" member of scala.BigDecimal. (I'm
still so used to looking for explicit getter methods!)
I now have my code do this:
Text(String.format("$%,.2f", item.amount.bigDecimal))
instead of my old
Text(item.amount.toString)
--Andrew
Derek
58 matches
Mail list logo