As Tim said, but in different words.
Use Comet when changed state needs to be *pushed* from the server.
Use Ajax when you need to asynchronously *pull* data from the server.
-
Ross Mellgren wrote:
I'm pretty tired and I definitely did not try to compile thi
yuicompressor 2.3.x doesn't work with openjdk
(https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/287035)
But it seems that yuicompressor 2.4.2 works
(http://www.electrictoolbox.com/minify-javascript-css-yui-compressor/)
It's a long time I didn't update yuicompressor-maven-plugin. I'll
depl
I'm pretty tired and I definitely did not try to compile this, but
maybe something like this using "plain" ajax might be better? If the
server cannot be contacted an alert box will pop up -- you can
customize that behavior using AjaxContext and using that with
SHtml.ajaxCall or jsonCall, I
Derek Chen-Becker writes:
> 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 log
I didn't mean to sound like I am justifying the way I am doing. I definitely
do not have a good feel for lift yet and it feels hackey to me too. Part of
it is I'm rushing to get a demo done at the same time I am learning lift.
Thanks for your help.
On Tue, Oct 6, 2009 at 2:04 AM, Timothy Perrett
Looks like a good contender for a wiki article...
Cheers, Tim
Sent from my iPhone
On 6 Oct 2009, at 01:12, Derek Chen-Becker
wrote:
> 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 li
Hey jack,
As I said before, I think the design you have is wrong if your needing
to code in a hacky way such as this. The way you articulate the
justification for using shutdown almost certianly clarifies an
incorrect design.
Personally I think you could use Ajax for this an have a much sim
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-Becker wrote:
Lift doesn't really support this directly in Mapper, although you could
write a single cl
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 differen
So I am using a snippet like this
def go:NodeSeq = {
var term:String = S.param("term").openOr("")
}
And the term is indeed different each time. But I am still getting the same
results from two different browsers with different terms.
On Tue, Oct 6, 2009 at 12:18 AM
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 b
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 coo
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
What do you mean?
-
jack 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 wrote:
> Sorry if this is a dumb question but in name={searchString}/>, what is searchString? This is in an h
I guess you could generate the comet tag or attribute from a snippet...
-
Jack Widman wrote:
Sorry if this is a dumb question but in , what is searchString? This is in an html file. I am
obviously missing something.
On Mon, Oct 5, 2009 at 2:40 PM, David Polla
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 wrote:
> Sorry if this is a dumb question but in name={searchString}/>, what is searchString? This is in an html file. I am
> obviously missing something.
>
> On Mon, Oct 5, 2009 a
Sorry if this is a dumb question but in , 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
wrote:
>
>
> On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman wrote:
>
>> Understood. My intention is to send a ShutDown message to t
never mind.
deploy-war, not run-war
(been working too hard)
On Oct 5, 11:09 pm, Jack Widman wrote:
> I meant to say jetty:run-war
>
> On Mon, Oct 5, 2009 at 10:52 PM, jack wrote:
>
> > Is mvn jetty:run supposed to creat the war file? I want to upload a
> > war file and just run it, not create a
I meant to say jetty:run-war
On Mon, Oct 5, 2009 at 10:52 PM, jack 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
--~--~-~--~~~---~--~~
You rece
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 gro
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 wrote:
>
> Have you verified another server is not running on that port?
>
> Have you tried http://
Have you verified another server is not running on that port?
Have you tried http:/// Just to see if that works
Sent from my iPhone
On Oct 5, 2009, at 10:12 PM, jack wrote:
>
> 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 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?
--~--~-
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$ j
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 configur
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
Such service! Thanks, David.
On Oct 6, 12:10 am, David Pollak
wrote:
> I'm setting up an OpenJDK ubuntu instance to test
>
> On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett wrote:
>
>
>
>
>
> > Ross, I am using OpenJDK:
> > $ java -version
> > java version "1.6.0_0"
> > OpenJDK Runtime Environmen
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
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 wrote:
>
> Hey guys,
>
> Been playing with this for a little while now and I cant re
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 o
The OAuth module is slated for 1.1
Are you looking for oauth consumer or server?
Cheers, Tim
On 5 Oct 2009, at 23:32, Mark Essel wrote:
>
> 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
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?
On Mon, Oct 5, 2009 at 1:19 PM, Joni Freeman 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 representation. I think that t
I'm setting up an OpenJDK ubuntu instance to test
On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett wrote:
>
> 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
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 > wrote:
>
> Call me old fashioned, bu
On Mon, Oct 5, 2009 at 10:54 PM, Jack Widman 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
> wrote:
>>
>>
>> On
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
wrote:
>
>
> On Mon, Oct 5, 2009 at 9:35 AM, Timothy Perrett
> wrote:
>
>>
>> Call me old fashioned, but good ol' English seems to be quite
>> prevalent
And if it's a site why do you want web services?
On Mon, Oct 5, 2009 at 5:53 PM, Naftoli Gugenheim wrote:
> If it's a site how will it know the phone number?
>
>
> On Mon, Oct 5, 2009 at 5:44 PM, koveen wrote:
>>
>> hi Naftoli,
>>
>> thanks for your interest.
>>
>> On Oct 5, 10:50 pm, Naftoli G
If it's a site how will it know the phone number?
On Mon, Oct 5, 2009 at 5:44 PM, koveen wrote:
>
> hi Naftoli,
>
> thanks for your interest.
>
> On Oct 5, 10:50 pm, Naftoli Gugenheim wrote:
>> Being a non-programmer, and additionally not having a Java background,
>> which framework are you co
On Mon, Oct 5, 2009 at 9:35 AM, Timothy Perrett wrote:
>
> 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 Lift language?
>
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/0
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 subscri
hi Naftoli,
thanks for your interest.
On Oct 5, 10:50 pm, Naftoli Gugenheim 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 things from the s
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 po
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
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 wrote:
> Hmmm looks like there might be multiple Text() nodes in the node
> and the
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((
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 wrote:
> I
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:
>
>
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
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 ou
Thanks, David. Here is the ticket:
http://github.com/dpp/liftweb/issues/#issue/79
Peter
On Oct 5, 9:06 pm, David Pollak 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 closed.
>
> On Sat, Oct 3, 20
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 wrote:
>
>
> On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman wrote:
>>
>> Why don't w
Well it is high enough level! [?]
On Mon, Oct 5, 2009 at 3:49 PM, Viktor Klang wrote:
>
>
> On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman 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
On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman 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. wrote:
>
>>
>>
>>
>> On Oct 5, 6:15 pm, David Pollak wrote:
>> > On Sun, Oct 4, 2009 at 2:
Ok so I tried using registerThisSnippet:
"save" -> SHtml.ajaxButton(
"Save",
{() =>
registerThisSnippet
println("currentSnippet: " + S.currentSnippet)
JsCmds.RedirectTo("/workflow/index") })
Maybe I am doing something
On Sun, Oct 4, 2009 at 2:12 AM, ishiijp 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] =
new (String => L
On Sun, Oct 4, 2009 at 1:17 PM, tommycli 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 Foo
On Mon, Oct 5, 2009 at 12:13 PM, Jack Widman 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 don't know what
"ca
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
Come
On Mon, Oct 5, 2009 at 12:06 PM, Jack Widman 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?
> No problem with
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 wrote:
>
> I have a model, Node, with a string index. I have another model,
> Packet, which has a MappedStri
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
wro
On Mon, Oct 5, 2009 at 11:53 AM, Jack Widman 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
> floating around and
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, Dav
On Sat, Oct 3, 2009 at 2:56 AM, rintcius 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 spring's
> Applica
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 wrote:
>
> Hi
On Mon, Oct 5, 2009 at 11:45 AM, Jack Widman 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 searches on
> a new ter
Hmmm looks like there might be multiple Text() nodes in the 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 wrote:
>
> More info. If the code that generates the XML looks like this:
>
> {"http://harryh.org
Is there a difference in the NodeSeq that generates?
On Mon, Oct 5, 2009 at 2:31 PM, harryh wrote:
>
> More info. If the code that generates the XML looks like this:
>
> {"http://harryh.org"+theUri}
>
> everything is fine, but it breaks when like this:
>
> http://harryh.org{theUrl}
>
> -harryh
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 long
Hi,
Being a no-programmer and having no Java-background
I'd like to have mentioned that Lift really isn't an easy framework.
Having said that, I will try to read my way into this system and try
to solve the problems I encounter.
I have one question.
I would like to establish a login method wher
On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman wrote:
> 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'.
>
>
First, there's no way to determine i
More info. If the code that generates the XML looks like this:
{"http://harryh.org"+theUri}
everything is fine, but it breaks when like this:
http://harryh.org{theUrl}
-harryh
On Oct 5, 2:22 pm, harryh wrote:
> Xml.toJson (in M5) is converting this:
>
> http://harryh.org/img/icons/foo.png
>
Xml.toJson (in M5) is converting this:
http://harryh.org/img/icons/foo.png
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 message bec
Include a snippet on the page that tells the comet actor to reset itself.
2009/10/5 David Pollak :
>
>
> On Sun, Oct 4, 2009 at 2:51 PM, jack 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
>>
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 wrote:
>> Hi all,
>>
>> I'
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. wrote:
>
> HTTP session termination does not equate wit
Is there a syntax problem in one of your javascript files?
On Oct 5, 1:23 pm, Peter Robinett 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 worked), I am getting
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 learn!),
HTTP session termination does not equate with browser-close event.
Br's,
Marius
On Oct 5, 3:22 pm, Jack Widman wrote:
> Yes, thats what I meant. Thanks
>
> On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett
> wrote:
>
>
>
>
>
> > But you can do it on session termination (which is what you probabl
On Sun, Oct 4, 2009 at 2:51 PM, jack 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 run the first time
Why don't we make Esperanto the official Lift language?
On Mon, Oct 5, 2009 at 11:52 AM, marius d. wrote:
>
>
>
> On Oct 5, 6:15 pm, David Pollak wrote:
> > On Sun, Oct 4, 2009 at 2:41 AM, ishiijp
> wrote:
> >
> > > Thank you for your example, David.
> > > It will work in my purpose.
> >
> > C
Glad to help.
Peter
On Oct 5, 11:29 am, donfranciscodequevedo
wrote:
> Thanks Peter, that pretty much answers my question!
>
> On 5 Okt., 01:17, Peter Robinett wrote:
>
> > Hi Gregor,
>
> > For my Mapper model called Packet, my companion object looks like
> > this:
> > object Packet extends Pa
On Oct 5, 6:15 pm, David Pollak wrote:
> On Sun, Oct 4, 2009 at 2:41 AM, ishiijp 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 p
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 CometAct
Actually, this is working nicely now. Thanks.
On Mon, Oct 5, 2009 at 11:46 AM, David Pollak 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 automatically.
>
>
> On Su
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
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 wrote:
>
> I am sending a ShutDown message to my CometActor to end the session.
On Sun, Oct 4, 2009 at 2:41 AM, ishiijp 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 thoughts to
English. I
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 res
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 = Bert
xml: scala.xml.Elem = Bert
scala> val json = toJson(xml)
json: net.liftweb.json.JsonAST.JVa
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 regard
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 m
Yes, thats what I meant. Thanks
On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett wrote:
>
> 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
Thanks Peter, that pretty much answers my question!
On 5 Okt., 01:17, Peter Robinett wrote:
> Hi Gregor,
>
> For my Mapper model called Packet, my companion object looks like
> this:
> object Packet extends Packet with LongKeyedMetaMapper[Packet] {
> override def dbTableName = "packets"
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 o
So I just wrote a Jetty 6 wrapper - getting the packaging working was
not ideal and not as flexible as Jetty 7 jetty-runner.
Any thoughts in and around altering the lift code to adjust the
package based on jetty version?
Cheers, Tim
On Oct 5, 9:07 am, Timothy Perrett wrote:
> Indrajit,
>
> You
Thanks, Joni, that works perfectly!
Peter
On Oct 5, 8:49 am, Joni Freeman 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
> JField("dt",
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 wrote:
> On Mon, Oct 5, 20
1 - 100 of 104 matches
Mail list logo