Hi Peter,
To select multiple packets you need to first select the objects within
the array. Like this:
for {
JObject(packet) - parse(s)
JField(node, JString(node)) - packet
JField(dt, JInt(dt)) - packet
JField(temp, JDouble(temp)) - packet
} yield // construct Packet here
Cheers Joni
On Mon, Oct 5, 2009 at 6:50 AM, jack jack.wid...@gmail.com wrote:
I would like to call a function when the browser is closed. How do I
do this?
You cannot reliably do this.
--
Viktor Klang
Blog: klangism.blogspot.com
Twttr: viktorklang
Lift Committer - liftweb.com
AKKA Committer -
Indrajit,
Your right, jetty-runner is Jetty 7. The only tie we have to Jetty 6
would be this line:
val cc = Class.forName
(org.mortbay.util.ajax.ContinuationSupport)
It would be trivial to add a match or whatever that determined the
correct type to use... The question is, why haven't we
But you can do it on session termination (which is what you probably
want):
http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/net/liftweb/http/SessionVar.html
Checkout the method:
registerCleanupFunc
Cheers, Tim
On Oct 5, 8:54 am, Viktor Klang viktor.kl...@gmail.com
Thanks, Joni, that works perfectly!
Peter
On Oct 5, 8:49 am, Joni Freeman freeman.j...@gmail.com wrote:
Hi Peter,
To select multiple packets you need to first select the objects within
the array. Like this:
for {
JObject(packet) - parse(s)
JField(node, JString(node)) - packet
Thanks Kevin,
I know, that this is more of a theoretical problem, but now that I
have read so much about Actors and concurrent programming, I am
actually curious about the underlying concurrency strategies taken by
Scala. Infact I realize, that this is actually more a Scala question,
than a Lift
Thanks Peter, that pretty much answers my question!
On 5 Okt., 01:17, Peter Robinett pe...@bubblefoundry.com wrote:
Hi Gregor,
For my Mapper model called Packet, my companion object looks like
this:
object Packet extends Packet with LongKeyedMetaMapper[Packet] {
override def
On 05/10/09 1:37 PM, Timothy Perrett wrote:
I know I could write a jetty 6 wrapper, but that is my fallback
position as something more OOTB would be preferable.
I am in complete agreement with you on this.
/Indrajit
--~--~-~--~~~---~--~~
You received this
Its really more of a Java problem, or JDBC to be specific.
The normal way to configure this would be to establish a pool of
connections, when a thread, or actor, needs to interact with the
database it takes a connection from the pool, uses it, then returns it
to the pool. This is the same
Loving the new lift-json code. We've been producing XML for a REST
API, and now need to produce JSON. lift-json to the rescue,
except...the Xml converter doesn't handle attributes:
scala val xml = user id=7nameBert/name/user
xml: scala.xml.Elem = user id=7nameBert/name/user
scala val json =
Howdy,
I think you misunderstand how Actors work.
An Actor only consumes resources while it is processing an item in its
mailbox. So if an Actor is hanging out, doing nothing, it will only consume
memory (like any other object.) When the Actor receives a message, it
allocates some additional
On Sun, Oct 4, 2009 at 2:41 AM, ishiijp yoshinori.is...@gmail.com wrote:
Thank you for your example, David.
It will work in my purpose.
Cool.
It seems that my poor English and less information let some people
confused.
I appreciate that you have put in the work to translate your
When you send the shutdown message, oddly enough, the CometActor shuts down.
You don't have to do this (in fact, don't do it). Lift will shut the
CometActor down automatically.
On Sun, Oct 4, 2009 at 7:32 PM, jack jack.wid...@gmail.com wrote:
I am sending a ShutDown message to my CometActor
On 05/10/09 5:29 PM, Timothy Perrett wrote:
So I just wrote a Jetty 6 wrapper - getting the packaging working was
not ideal and not as flexible as Jetty 7 jetty-runner.
Yes, just took a look at jetty-runner. Feature wise, it's blows away the
older mechanism man!
Any thoughts in and
Actually, this is working nicely now. Thanks.
On Mon, Oct 5, 2009 at 11:46 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
When you send the shutdown message, oddly enough, the CometActor shuts
down.
You don't have to do this (in fact, don't do it). Lift will shut the
CometActor down
I made this mistake when I first came to Lift development - if your
needing to do this, then its quite likely that you need to re-address
your actor / comet actor design.
Cheers, Tim
On 5 Oct 2009, at 16:46, David Pollak wrote:
When you send the shutdown message, oddly enough, the
On Oct 5, 6:15 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Sun, Oct 4, 2009 at 2:41 AM, ishiijp yoshinori.is...@gmail.com wrote:
Thank you for your example, David.
It will work in my purpose.
Cool.
It seems that my poor English and less information let some people
Glad to help.
Peter
On Oct 5, 11:29 am, donfranciscodequevedo
donfranciscodequev...@gmail.com wrote:
Thanks Peter, that pretty much answers my question!
On 5 Okt., 01:17, Peter Robinett pe...@bubblefoundry.com wrote:
Hi Gregor,
For my Mapper model called Packet, my companion object
Why don't we make Esperanto the official Lift language?
On Mon, Oct 5, 2009 at 11:52 AM, marius d. marius.dan...@gmail.com wrote:
On Oct 5, 6:15 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Sun, Oct 4, 2009 at 2:41 AM, ishiijp yoshinori.is...@gmail.com
wrote:
Thank you
On Sun, Oct 4, 2009 at 2:51 PM, jack jack.wid...@gmail.com wrote:
Well the way I have it render is being called multiple times so I can
put initial code there. I have some code near the top of my Comet
class and thats the code I want to run every time I load the page.
Currently, it is only
HTTP session termination does not equate with browser-close event.
Br's,
Marius
On Oct 5, 3:22 pm, Jack Widman jack.wid...@gmail.com wrote:
Yes, thats what I meant. Thanks
On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett
timo...@getintheloop.euwrote:
But you can do it on session
Hi all,
I've been compiling and running my Lift app on my personal machine
without any problems but when I try to run it on another machine
(where it had previously worked), I am getting fatal YUI Compressor
errors.
Not knowing YUI Compressor or how Lift and Maven use it (but willing
to
Is there a syntax problem in one of your javascript files?
On Oct 5, 1:23 pm, Peter Robinett pe...@bubblefoundry.com wrote:
Hi all,
I've been compiling and running my Lift app on my personal machine
without any problems but when I try to run it on another machine
(where it had previously
Understood. My intention is to send a ShutDown message to the CometActor
when somebody closes the browser. I need this so that when they visit the
page in a browser again, the CometActor is 'reset'.
On Mon, Oct 5, 2009 at 1:18 PM, marius d. marius.dan...@gmail.com wrote:
HTTP session
I thought someone mentioned this a little while ago and it was due to
OpenJDK (and only related to the YUI compressor)?
-Ross
On Oct 5, 2009, at 1:25 PM, jon wrote:
Is there a syntax problem in one of your javascript files?
On Oct 5, 1:23 pm, Peter Robinett pe...@bubblefoundry.com wrote:
Include a snippet on the page that tells the comet actor to reset itself.
2009/10/5 David Pollak feeder.of.the.be...@gmail.com:
On Sun, Oct 4, 2009 at 2:51 PM, jack jack.wid...@gmail.com wrote:
Well the way I have it render is being called multiple times so I can
put initial code there. I
Xml.toJson (in M5) is converting this:
iconhttp://harryh.org/img/icons/foo.png/icon
to this:
JField(icon, JObject(Nil))
Is there some special handling of URLs going on here that might be
causing me problems?
-harryh
--~--~-~--~~~---~--~~
You received this
More info. If the code that generates the XML looks like this:
icon{http://harryh.org+theUri}/icon
everything is fine, but it breaks when like this:
iconhttp://harryh.org{theUrl}/icon
-harryh
On Oct 5, 2:22 pm, harryh har...@gmail.com wrote:
Xml.toJson (in M5) is converting this:
Interesting. I will try that. And I won't send any more ShutDownMessages :)
Though I should add that each CometActor is doing a lot of processing. So I
it would be good if I could shut one down somehow when the user searches on
a new term. Timeout won't work because there is no way to know how
Is there a difference in the NodeSeq that generates?
On Mon, Oct 5, 2009 at 2:31 PM, harryh har...@gmail.com wrote:
More info. If the code that generates the XML looks like this:
icon{http://harryh.org+theUri}/icon
everything is fine, but it breaks when like this:
Hmmm looks like there might be multiple Text() nodes in the icon node
and the parser isn't picking them up as one piece of text.
Might be worthy of a ticket.
On Mon, Oct 5, 2009 at 11:31 AM, harryh har...@gmail.com wrote:
More info. If the code that generates the XML looks like this:
On Mon, Oct 5, 2009 at 11:45 AM, Jack Widman jack.wid...@gmail.com wrote:
Interesting. I will try that. And I won't send any more ShutDownMessages :)
Though I should add that each CometActor is doing a lot of processing. So I
it would be good if I could shut one down somehow when the user
Being a non-programmer, and additionally not having a Java background,
which framework are you comparing Lift to when you say it's not easy?
:)
Can you clarify: Is this going to be a site, or a back end to a mobile
app that sits on the phone?
On Mon, Oct 5, 2009 at 2:32 PM, koveen
On Sat, Oct 3, 2009 at 2:56 AM, rintcius rintc...@gmail.com wrote:
Hmm, I am still confused...
Maybe better to get into a specific use case.
Suppose i have the following:
1) a lift application just serving stuff via the Servlet interface
2) an object in the ServletContext (let's say
In my app, when the user is done searching on one keyword, they click a link
which takes them back to the main search page. Thats the time when I wanted
the CometActor to stop. Otherwise there will be too many threads floating
around and performance will suffer.
On Mon, Oct 5, 2009 at 2:50 PM,
On Mon, Oct 5, 2009 at 11:53 AM, Jack Widman jack.wid...@gmail.com wrote:
In my app, when the user is done searching on one keyword, they click a
link which takes them back to the main search page. Thats the time when I
wanted the CometActor to stop. Otherwise there will be too many threads
Because when the users searches on a new keyword, the actors that were
processing the results for the last keyword are still processing (some of
them). But I can just send each of those a message to stop processing, no?
No problem with that, right?
On Mon, Oct 5, 2009 at 3:02 PM, David Pollak
I know there are a lot of mapper tickets open, but please add this one.
I'll spend a day or two this week getting the Mapper tickets closed.
On Sat, Oct 3, 2009 at 3:00 AM, Peter Robinett pe...@bubblefoundry.comwrote:
I have a model, Node, with a string index. I have another model,
Packet,
On Mon, Oct 5, 2009 at 12:06 PM, Jack Widman jack.wid...@gmail.com wrote:
Because when the users searches on a new keyword, the actors that were
processing the results for the last keyword are still processing (some of
them). But I can just send each of those a message to stop processing, no?
Good. Only thing is that if their job was to start an actor to go out and
search some pages, say, then 'stop your job' means ' 'call your 'exit'
method, no?Not trying to be a wise guy. I actually have a number of VCs
lined up to look at my app. Overall I am very glad to be using Lift. On the
On Mon, Oct 5, 2009 at 12:13 PM, Jack Widman jack.wid...@gmail.com wrote:
Good. Only thing is that if their job was to start an actor to go out and
search some pages, say, then 'stop your job' means ' 'call your 'exit'
method, no?
I have no idea what you application logic looks like, so I
On Sun, Oct 4, 2009 at 1:17 PM, tommycli tommy...@ucla.edu wrote:
In reference to this problem:
http://www.nabble.com/-scala--Overriding-superclass-object-member...-td15344451.html
This use case in specific:
trait Bar {
self: Mapper =
object barField extends StringField
}
class
On Sun, Oct 4, 2009 at 2:12 AM, ishiijp yoshinori.is...@gmail.com wrote:
Hi. I have found StopValidationOnError trait in Mapper.scala,
But I couldn't understand how to use it.
Please show me a example.
def stopableValMaxLen: (String = List[FieldError]) with
StopValidationOnError[String] =
On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman jack.wid...@gmail.com wrote:
Why don't we make Esperanto the official Lift language?
I'd say make Scala the official language ;)
On Mon, Oct 5, 2009 at 11:52 AM, marius d. marius.dan...@gmail.comwrote:
On Oct 5, 6:15 pm, David Pollak
Well it is high enough level! [?]
On Mon, Oct 5, 2009 at 3:49 PM, Viktor Klang viktor.kl...@gmail.com wrote:
On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman jack.wid...@gmail.com wrote:
Why don't we make Esperanto the official Lift language?
I'd say make Scala the official language ;)
On
I was about to offer a smattering of Greek, Swedish and Hungarian (don't ask...)
But scala has to take the prize, I wonder if we couldn't implement
lojban as a DSL? :)
On Mon, Oct 5, 2009 at 8:49 PM, Viktor Klang viktor.kl...@gmail.com wrote:
On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman
Thanks, David. Here is the ticket:
http://github.com/dpp/liftweb/issues/#issue/79
Peter
On Oct 5, 9:06 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
I know there are a lot of mapper tickets open, but please add this one.
I'll spend a day or two this week getting the Mapper tickets
I'm not familiar with JsCmds etc., but you are calling
registerThisSnippet in the code that gets invoked by the ajax button.
What needs to happen somehow, if it's possible, is that after it
redirects, triggering a new request, you have to call
registerThisSnippet in that request.
As you pointed
Thanks Richard!
This is a feature request and I just committed an implementation to my
branch. I modified existing example to contain few attributes to show
how they are mapped:
http://github.com/dpp/liftweb/blob/joni_wip_xml/lift-json/src/test/scala/net/liftweb/json/XmlExamples.scala
If other
Try:
S.fmapFunc(registerThisSnippet)(binding = JsCmds.RedirectTo(/
workflow/index? + binding + =_))
?
I'm not sure this is the right way to do it, but I think that should
work.
-Ross
On Oct 5, 2009, at 3:45 PM, David wrote:
Ok so I tried using registerThisSnippet:
save -
Ross, I am using OpenJDK:
$ java -version
java version 1.6.0_0
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
Is it possible to use YUI Compressor at all with OpenJDK?
Peter
On Oct 5, 7:32 pm, Ross Mellgren
That worked!
Thank you for such a quick response. I only had to make one change,
as posted I got:
found : Unit
required: net.liftweb.http.S.AFuncHolder
S.fmapFunc(registerThisSnippet)(binding =
JsCmds.RedirectTo(/workflow/index? + binding + =_))
Changed to:
S.fmapFunc(() =
Yes, that's exactly what happens here. David, do you know if this
should be considered a bug in Scala XML or should lift-json be able to
merge those Text() nodes?
Cheers Joni
On Oct 5, 9:46 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
Hmmm looks like there might be multiple Text()
I don't remember hearing any solution that involved staying with
OpenJDK in the original thread -- I personally use the Sun JDK and so
never noticed this problem.
With ubuntu you can add the Sun JDK by installing the sun-java-6-jdk
package. Then you have to fiddle with /etc/alternatives to
Can someone please fix the formatting on
http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headers
?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To
hi Naftoli,
thanks for your interest.
On Oct 5, 10:50 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Being a non-programmer, and additionally not having a Java background,
which framework are you comparing Lift to when you say it's not easy?
:)
First I read a book about rails, explaining
Call me old fashioned, but good ol' English seems to be quite
prevalent these days ;-)
On 5 Oct 2009, at 17:02, Jack Widman wrote:
Why don't we make Esperanto the official Lift language?
--~--~-~--~~~---~--~~
You received this message because you are
Id say that it would be easier to use a match statement as part of the
val assignment... The current code is just using reflection, so
factoring into a case statement shouldnt be too tough right?
Thoughts?
Cheers, Tim
On 5 Oct 2009, at 16:48, Indrajit Raychaudhuri wrote:
On 05/10/09
On Mon, Oct 5, 2009 at 9:35 AM, Timothy Perrett timo...@getintheloop.euwrote:
Call me old fashioned, but good ol' English seems to be quite
prevalent these days ;-)
Is this the Queen's English? ;-)
On 5 Oct 2009, at 17:02, Jack Widman wrote:
Why don't we make Esperanto the official
If it's a site how will it know the phone number?
On Mon, Oct 5, 2009 at 5:44 PM, koveen liep...@xs4all.nl wrote:
hi Naftoli,
thanks for your interest.
On Oct 5, 10:50 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Being a non-programmer, and additionally not having a Java background,
And if it's a site why do you want web services?
On Mon, Oct 5, 2009 at 5:53 PM, Naftoli Gugenheim naftoli...@gmail.com wrote:
If it's a site how will it know the phone number?
On Mon, Oct 5, 2009 at 5:44 PM, koveen liep...@xs4all.nl wrote:
hi Naftoli,
thanks for your interest.
On Oct
I'm not sure English is Turing Complete. Also not sure how prominent it will
be in 50 years ... :)
On Mon, Oct 5, 2009 at 5:51 PM, David Pollak
feeder.of.the.be...@gmail.comwrote:
On Mon, Oct 5, 2009 at 9:35 AM, Timothy Perrett
timo...@getintheloop.euwrote:
Call me old fashioned, but
On Mon, Oct 5, 2009 at 10:54 PM, Jack Widman jack.wid...@gmail.com wrote:
I'm not sure English is Turing Complete. Also not sure how prominent it will
be in 50 years ... :)
Nor I, but I'm certain that Turing was (Queen's) English complete... :)
On Mon, Oct 5, 2009 at 5:51 PM, David Pollak
Only the Queen speaks the queens english - your average schmuck on
this isle can only just about manage to string together a sentence!
HAHA.
Cheers, Tim
On 5 Oct 2009, at 22:51, David Pollak wrote:
On Mon, Oct 5, 2009 at 9:35 AM, Timothy Perrett timo...@getintheloop.eu
wrote:
Call
I'm setting up an OpenJDK ubuntu instance to test
On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett pe...@bubblefoundry.comwrote:
Ross, I am using OpenJDK:
$ java -version
java version 1.6.0_0
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK 64-Bit Server VM (build
On Mon, Oct 5, 2009 at 1:19 PM, Joni Freeman freeman.j...@gmail.com wrote:
Yes, that's exactly what happens here. David, do you know if this
should be considered a bug in Scala XML or should lift-json be able to
merge those Text() nodes?
I don't think it's a bug in Scala's XML
Just came across
http://scala-tools.org/mvnsites/liftweb-1.0/lift-oauth/license.html
while browsing for updates. Is this project near a release stage, I'd
love to get my hands on some apache 2.0 version of the code. As
someone still very new to web programming is there some way I can
contribute?
Hey guys,
Been playing with this for a little while now and I cant remember what
the scenario is for setting sessionvars from an actor? (thats a plain
actor, not a comet actor)
I remember there is some issue, but its so late here that it escapes
me? What's the best practice? If there isn't
You have to know the session... from within your Actor:
case MyMessage(stuff) = S.initIfUninitted(session) { access SessionVars
from here
}
Thanks,
David
On Mon, Oct 5, 2009 at 4:10 PM, Timothy Perrett timo...@getintheloop.euwrote:
Hey guys,
Been playing with this for a little
Ah of course - I'd forgotten about the S access.
Cheers, Tim
On 6 Oct 2009, at 00:15, David Pollak wrote:
You have to know the session... from within your Actor:
case MyMessage(stuff) = S.initIfUninitted(session) {
access SessionVars from here
}
Thanks,
David
On Mon, Oct 5,
Such service! Thanks, David.
On Oct 6, 12:10 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
I'm setting up an OpenJDK ubuntu instance to test
On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett pe...@bubblefoundry.comwrote:
Ross, I am using OpenJDK:
$ java -version
java version
d...@david-desktop:~/Desktop/liftweb/examples/example$ java -version
Picked up JAVA_TOOL_OPTIONS: -Xmx1024M
java version 1.6.0_0
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)
d...@david-desktop:~/Desktop/liftweb/examples/example$
I'm
Changing the logging has to come at the very beginning of the boot method.
I'm using slf4j in a 1.0.2 project and it's working fine. The very first
line of my boot method is:
LogBoot.loggerSetup = () = true
which basically disables Lift setting up any logging (you'll have to do your
own
According to his version number he's running ubuntu and that
particular version corresponds to jaunty jackalope (9.04)
Unless he spliced that package into debian or something else.
-Ross
On Oct 5, 2009, at 8:06 PM, David Pollak wrote:
d...@david-desktop:~/Desktop/liftweb/examples/example$
I have been working locally for a long time and I seem to have
forgotten how to deploy and run a war on Jetty!
I am ftping the war to my server and putting it in the target
directory.
I then run mvn jetty:run-war -Djetty.port=80 and I keep getting the
default app.
What am I doing wrong?
Have you verified another server is not running on that port?
Have you tried http://url:80/name of app Just to see if that works
Sent from my iPhone
On Oct 5, 2009, at 10:12 PM, jack jack.wid...@gmail.com wrote:
I have been working locally for a long time and I seem to have
forgotten how
Well it seems that mvn run-war is creating the war and overriding the one I
just uploaded. How do I just run with a given war and not create the war.
On Mon, Oct 5, 2009 at 10:37 PM, Ryan Stradling ryanstradl...@gmail.comwrote:
Have you verified another server is not running on that port?
Is mvn jetty:run supposed to creat the war file? I want to upload a
war file and just run it, not create another one. How do I do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this
I meant to say jetty:run-war
On Mon, Oct 5, 2009 at 10:52 PM, jack jack.wid...@gmail.com wrote:
Is mvn jetty:run supposed to creat the war file? I want to upload a
war file and just run it, not create another one. How do I do that?
--
Jack
never mind.
deploy-war, not run-war
(been working too hard)
On Oct 5, 11:09 pm, Jack Widman jack.wid...@gmail.com wrote:
I meant to say jetty:run-war
On Mon, Oct 5, 2009 at 10:52 PM, jack jack.wid...@gmail.com wrote:
Is mvn jetty:run supposed to creat the war file? I want to upload a
war
Sorry if this is a dumb question but in lift:comet type=Search
name={searchString}/, what is searchString? This is in an html file. I am
obviously missing something.
On Mon, Oct 5, 2009 at 2:40 PM, David Pollak
feeder.of.the.be...@gmail.comwrote:
On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman
i guess you meant put the snippet right in the CometActor. Ok. Now I'm
getting it.
On Oct 5, 11:46 pm, Jack Widman jack.wid...@gmail.com wrote:
Sorry if this is a dumb question but in lift:comet type=Search
name={searchString}/, what is searchString? This is in an html file. I am
obviously
I guess you could generate the comet tag or attribute from a snippet...
-
Jack Widmanjack.wid...@gmail.com wrote:
Sorry if this is a dumb question but in lift:comet type=Search
name={searchString}/, what is searchString? This is in an html file. I am
What do you mean?
-
jackjack.wid...@gmail.com wrote:
i guess you meant put the snippet right in the CometActor. Ok. Now I'm
getting it.
On Oct 5, 11:46 pm, Jack Widman jack.wid...@gmail.com wrote:
Sorry if this is a dumb question but in lift:comet
Let me start again. Maybe I am misunderstanding when Comet should be
used. In my application, people search for web pages. I do a lot of
processing for each resulting page. First I just display the links and
then as the processing is finished, the links on the page are
automatically modified with
I found this issue and voted on it at github. I've done a few
presentations on scala at my job, a java shop, and used lift in one of
the demos. A few people are quite interested in scala, and one is
particularly interested in lift. The project I work on is in spring
mvc, and it would be really
You are correct that Comet is a way to update information after the page is
loaded. I think there's a simpler way using ajax, but I haven't explored those
areas of Lift yet. But meanwhile you need to have the xml specifying the comet
actor be dynamic. So you need to have that xml be generated
So I am using a snippet like this
def go:NodeSeq = {
var term:String = S.param(term).openOr()
lift:surround with=default at=content
lift:comet type=JoopComet name={term}
auth:joop/auth:joop
/lift:comet
/lift:surround
}
And the term is indeed different each time. But I
Lift doesn't really support this directly in Mapper, although you could
write a single class and use a discriminator value field. If there's not a
relational need for both types to have a common superclass it would probably
be simpler to just build two distinct classes and have them sit in
You can factor common fields into a trait, then extend both mapper classes from
it.
As far as having the view depend, see BindPlus.bindSwitch.
-
Derek Chen-Beckerdchenbec...@gmail.com wrote:
Lift doesn't really support this directly in Mapper, although you
90 matches
Mail list logo