LiftSession is bound to HttpSession through HttpSessionBindingListener
and HttpSessionActivationListener
This means that when the HTTP session terminates LiftSession will also
terminate. To verify your SessionVar that the session was purged you
can implement
override protected def onShutdown(ses
ging going on - related?
>
> -- Ewan
>
> On Jul 1, 12:32 pm, "marius d." wrote:
>
> > LiftSession is bound to HttpSession through HttpSessionBindingListener
> > and HttpSessionActivationListener
>
> > This means that when the HTTP session terminates Li
ike
> the session to be expired after a while to encourage the user to sign
> up which if they do they get the benefit that the basket is persisted.
>
> --Ewan
>
> On Jul 1, 12:59 pm, "marius d." wrote:
>
> > You answered your own question :) ... Yes tha
On Jul 2, 12:40 am, Kris Nuttycombe wrote:
> To answer my own question, looking over the commit log 28595307 looks
> extremely suspicious. I can revert it locally but would prefer a
> mainline fix, and don't want to attempt it myself. Marius?
>
> Kris
>
> On Wed, Jul 1, 2009 at 3:33 PM, Kris
>
Corrected and pushed. Please do an update and give it a try.
Br's,
Marius
On Jul 2, 8:56 am, "marius d." wrote:
> On Jul 2, 12:40 am, Kris Nuttycombe wrote:
>
>
>
> > To answer my own question, looking over the commit log 28595307 looks
> > extremely
Yeah that what happens when you're coding late in the night ... the
null monster bites you.
Marius
On Jul 2, 7:47 pm, Kris Nuttycombe wrote:
> Marius, that fix appears to work fine, thank you!
>
> Bloody nulls. :)
>
> Kris
>
> On Thu, Jul 2, 2009 at 7:17 AM, marius
Try LiftRules.loadResourceAsXml
Br's,
Marius
On Jul 4, 1:11 am, glenn wrote:
> I've searched this group and combed through the lift book for an
> answer, but found none - how to use file-based storage for data within
> Lift.
>
> For example, how would I call something like:
>
> def xml = XML.lo
First of all, thank you for you kind words. Your website is just great
but I'd recommend publishing the link on sc...@listes.epfl.ch as well.
As far as Lift & Scala goes, yes Lift in may respects requires
understanding the Scala language and because Scala comes with new
things/concepts a little b
And if you deploy only http://lsug.org/main/ does it work correctly?
Br's,
Marius
On Jul 6, 10:17 am, Kevin Wright
wrote:
> I have two webapps, hosted on the same
> server:http://lsug.org/main/http://lsug.org/stage/
>
> Problem is, the menu works just fine on the stage site, but not on the ma
es
>
> > On Mon, Jul 6, 2009 at 9:51 AM, marius d. wrote:
>
> >> And if you deploy onlyhttp://lsug.org/main/ does it work correctly?
>
> >> Br's,
> >> Marius
>
> >> On Jul 6, 10:17 am, Kevin Wright
> >> wrote:
> >> >
Oh btw. did you explicitly set the context path for each app ?
On Jul 6, 2:09 pm, "marius d." wrote:
> Looks like there is an "influence" there but it should really not be
> since each web application is loaded by a separate classloader.
>
> 1. Do you have
...
>
> Context paths are not explicitly set, no custom context.xml files, nothing
> special in tomcat whatsoever - the two war files are auto-deployed and are
> identical (apart from their names, obviously)
>
> On Mon, Jul 6, 2009 at 12:18 PM, marius d. wrote:
>
> > Oh b
ments.
>
> Although it isn't so vital for LSUG, If I'm to successfully evangelise Lift
> to my employers then I also need for this pattern to work on commercial
> sites, where it is much more important that I can guarantee the production
> site is identical to the site that
On Jul 6, 5:44 pm, Gonzalo N wrote:
> Hello!
>
> I am having a problem with a javascript function that creates a new
> textarea from a snippet. I am using the Lift 1.0-SNAPSHOT version and
> the Scala version 2.7.4.
> Basically, what I am doing is creating a ajaxButton in a snippet, that
> call
HTML the other attribute of the
> snippet (more precisely the function_definition textarea). It sends
> the POST into the server, but when the page reloads it doesn't appear
> the snippet attribute and I wanted to know why.
>
> Best regards,
> Gonzalo N
>
> On Jul 6, 3:56 pm, &
Actually I had the same problem with with Javeline on FF. Once I
changed the content-type in the HTTP response to text/html it worked
just fine.
Br's,
Marius
On Jul 8, 3:09 pm, Viktor Klang wrote:
> We want lift to work on those platforms. We need a work-around
>
>
>
> On Wed, Jul 8, 2009 at 11
huh ?
On Jul 8, 3:32 pm, Kevin Wright wrote:
> Puts us in the rather interesting position of being a Java-based framework
> that only works on internet explorer...
>
> On Wed, Jul 8, 2009 at 1:27 PM, marius d. wrote:
>
> > Actually I had the same problem with with J
rowser
> That leaves opera, chrome and IE, of which only IE has any serious market
> penetration...
>
> On Wed, Jul 8, 2009 at 1:34 PM, marius d. wrote:
>
> > huh ?
>
> > On Jul 8, 3:32 pm, Kevin Wright wrote:
> > > Puts us in the rather interesting positio
n the rather interesting position of being a Java-based
> > > framework that only works on internet explorer...
>
> > > On Wed, Jul 8, 2009 at 1:27 PM, marius d. > > <mailto:marius.dan...@gmail.com>> wrote:
>
> > > Actually I had the same p
be another driver towards offering richer CSS processing, it would be a good
> unique selling point!
>
> On Wed, Jul 8, 2009 at 2:17 PM, marius d. wrote:
>
> > Lift does a lot of thing to properly cope with browsers idiosyncrasies
> > (IE mostly ... doh .. :) ...) ... perh
You can also use REST + Record Please see here:
http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e9ca10c8/5f871b2cf9f7099b?lnk=gst&q=REST+%26+Record#5f871b2cf9f7099b
It is a mechanism for automatically building Record objects from REST
query string params. Hence Lift alrea
e it with goat-
rodeo STM + Cassandra (similar with BigTable model) + ZooKeeper
>
> Cheers, Tim
>
> On Jul 9, 9:27 am, "marius d." wrote:
>
> > You can also use REST + Record Please see
> > here:http://groups.google.com/group/liftweb/browse_thr
both builds
> the objects and persists them to a DB?
>
> On 9 Jul., 10:27, "marius d." wrote:
>
> > You can also use REST + Record Please see
> > here:http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e...
>
> > It is a mechanism
Actors are local to the JVM. Scala also has RemoteActors but we don't
really use them. For a lift app in a cluster environment we have to
have sticky sessions concept and the reason is that functions bound to
a session and mostly the references they are holding are not
serialized & distributed. So
Please take a look on JsObj. But what is your exact use case? ...
generate JSON constructs from Scala and send then to browser?
Br's,
Marius
On Jul 9, 8:35 pm, Jeppe Nejsum Madsen wrote:
> Hi,
>
> Has anyone made a typesafe JSON builder?
>
> Many Javascript libraries provides support for exten
can read more here: http://www.terracotta.org/ ...
it is a great framework.
>
> On Jul 9, 11:53 pm, "marius d." wrote:
>
> > Actors are local to the JVM. Scala also has RemoteActors but we don't
> > really use them. For a lift app in a cluster environment w
liftAjax is dynamically generated and it does not represent static
content. Please see ScriptRenderer.scala. However is is a pretty small
script so I'm not sure how much we'll actually fain by minifying it.
Can you run a benchmark? Take from the browser the generated script,
minify it and the serv
Tim, sorry but I have to say that liftAjax.js IS generated dynamically
as I stated above :). It is not a script sitting somewhere but it
ultimately comes from ScriptRenderer.scala
Br's,
Marius
On Jul 10, 11:26 am, Timothy Perrett wrote:
> Hey,
>
> liftAjax.js is not regenerated dynamically as f
don't ? :) ... knock yourself out ! ... and please let us
know the outcome.
(but keep talking about this subject tho,
> nothing bad can come from exploring how to do faster lift apps! )
>
> On Jul 10, 1:33 am, "marius d." wrote:
>
> > Tim, sorry but I have to s
Mapper as Record is not yet complete.
Br's,
Marius
On Jul 10, 4:21 pm, czerwonka wrote:
> If I'm starting today, should I use Mapper or Record?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post
On Jul 10, 6:32 pm, David Pollak
wrote:
> On Fri, Jul 10, 2009 at 1:44 AM, Jeppe Nejsum Madsen wrote:
>
>
>
>
>
> > "marius d." writes:
>
> > > Please take a look on JsObj.
>
> > That's what I'm using now and it's a
On Jul 10, 11:11 pm, Jeppe Nejsum Madsen wrote:
> Hi,
>
> I understand (I think :-) the use of Option/Box to avoid the common
> NPE. Also that map/for gives a nice way to conditionally do stuff with
> something that can be Empty.
>
> But sometimes the Box just have to be full and if it isn't, t
Well widgets don't have a whole lot of commonalities besides the init
() method. Regarding destroy() that would probably be helpful for
widgets that are communicating remotely with other services. The rest
of the widget functions are mostly very specific helper functions that
renders markup, JS sc
On Jul 12, 9:16 am, TakeTheStage wrote:
> Hello, new to both Scala and Lift. After weighing several options,
> I've decided to create a new app using Lift, with GAE for hosting. As
> such, I chose Lift due to its support for concurrency, inherited from
> its Scala base.
> Ok, so I'm preaching t
gt; the widget needs a "one time per page" initialization.
>
> In both case, a API to manage shared resource would be useful. Maybe,
> Lift has an elegant solution I'm not aware of and only a little
> documentation will suffice.
>
> Francois
>
> On Jul 12, 2:
On Jul 12, 6:06 pm, "marius d." wrote:
> On Jul 12, 6:04 pm, Francois Bertrand wrote:
>
> > If more and more widgets are added, there is a potential version
> > problem with referenced CSS/js resources they may need to share. For
> > example, the Flot wid
Why not use the progessListener from the LiftSession ?
Br's,
Marius
On Jul 12, 9:57 pm, Timothy Perrett wrote:
> Hey guys,
>
> Implementing this upload progress widget with comet, I just wanted a
> quick sense check about how to organize things.
>
> As the CometActor for a particular session w
e:
>
> S.session.map(_.progessListener = { ... }).openOr(Empty)
yup I assume you would set this when your upload progress actor
starts ... say in localSetup() ...
>
> Cheers, Tim
>
> On Jul 12, 8:23 pm, "marius d." wrote:
>
> > Why not use the progessListener from th
I wonder why STM in a message passing concurrency model where things
supposed to be immutable.
Br's,
Marius
On Jul 13, 1:58 am, Jonas Bonér wrote:
> Hi guys.
>
> I just released the first iteration of the Akka Actor Kernel (or
> whatever it is).
> It is still early days and there is a lot still
Just use your text here
Br's,
Marius
On Jul 13, 1:26 am, chrislewis wrote:
> Hello list,
>
> I need to generate a link from a field in a database. SHtml.link. I'm
> using bind like so:
>
> Track.findAll.flatMap(track =>
> bind("track", xhtml,
> "name" -> Text(track.name),
>
so that's
> impossible. I
>
> On Jul 13, 2:28 am, "marius d." wrote:
>
> > Just use your text here
>
> > Br's,
> > Marius
>
> > On Jul 13, 1:26 am, chrislewis wrote:
>
> > > Hello list,
>
> > > I need to generate a
Currently in MetaRecords there is only a fieldByName function that
returns the field from a Record based on its name but it probably
won't help you much. The internal fieldList is currently private but
probably we should relax this to protected?
Br's,
Marius
On Jul 14, 1:15 pm, Giuseppe Fogliazz
On Jul 15, 8:10 am, DFectuoso wrote:
> I don't know if its possible, but lift have surprised me so many times
> so far that it worth to ask.
>
> I have a html lift binding that i would like to place on several
> places of my web application like:
>
>
>
>
> Is there any way for Foo.Bar to pro
Since internally the BindParam-s are converted to a Map the last one
should be considered.
Marius
On Jul 15, 8:39 am, Naftoli Gugenhem wrote:
> If a call to BindHelpers.bind has multiple bindings for the same element
> label, which gets used? The last one?
--~--~-~--~~~
Try using for comprehensions
for (res <- JSONParser.parse(S.params("results").first);
(key, value) <- res) yield some_expression
Marius
On Jul 15, 11:51 am, fbettag wrote:
> Args Sorry, the Full(Map(..)) gets returned by the JSON Parser.
>
> for (res <- JSONParser.parse(S.params("result
do right was
> > making that admin console know where it's been called without having
> > to log each invocation, so being a compiled language and not knowing
> > how it process the html(but it shouts at me if i do instead of
> > ) I decided to ask if there's a way to pa
I could probably take a look into this if you're too busy.
The way I see it is that if this number is exceeded comet-actors for
this session should be terminated and we should probably return an
HTTP error status back to client.
Br's,
Marius
On Jul 16, 7:21 pm, David Pollak
wrote:
> On Thu, Ju
A little more on this ...
Living the above synchronized blocks where they are but removing the
one from LiftSession.runParams made it work properly. Looks like this
one was holding the lock while the file upload progress was happening.
Dave I'm not really sure why in runParams the the toRun is o
Just committed a fix ...
Br's,
Marius
On Jul 18, 4:10 pm, "marius d." wrote:
> A little more on this ...
>
> Living the above synchronized blocks where they are but removing the
> one from LiftSession.runParams made it work properly. Looks like this
> one was h
code up and fix
> the cross-browser issues as right now it works in firefox and IE but
> not in safari or chrome et al.
>
> Cheers, Tim
>
> On Jul 18, 3:08 pm, "marius d." wrote:
>
> > Just committed a fix ...
>
> > Br's,
> > Marius
>
Good article but do you have some concrete benchmarks between Snippet
and DispatchSnippet? In modern JVM memory allocation is pretty cheap
due to heap preparation JVM makes and reflection invocation doesn't
bring too much overhead ... not anymore.
The article seams to present the two from an opti
I like it, like it, like it ! :)
Br's,
Marius
On Jul 21, 1:05 am, Derek Chen-Becker wrote:
> I've attached the slides that I'll be using for my talk to the Boulder JUG
> in August. It's mainly cribbed from the excellent presentations that other
> people here have made, but I would appreciate an
Something like:
hi
where path is the snippet class and build is the method name. But what
is your use case?
Br's,
Marius
On Jul 21, 12:11 pm, José María wrote:
> Hi,
>
> I suppose that this is something simple, how can I put a value inside
> a property in a template?
>
> Something like:
>
> h
Because this snippet is stateless. For each snippet invocation a new
snippet instance is created. If you want to preserve that same snippet
instance during rendering extend StatefulSnippet. Second alternative
is to keep it like that and use a RequestVar to "store" the count.
Br's,
Marius
On Jul
+1 !
On Jul 21, 6:05 pm, Derek Chen-Becker wrote:
> S.getHeader is for retrieving headers that are set in the *response*, not
> the request. I can update the docs to make that more clear, although it
> seems like this is confusing. Perhaps we should make a getRequestHeader
> method. Thoughts?
>
Lift is not a MVC framework but a View First one. Snippets are the way
to generate dynamic content that will be woven into the resulting
markup. There is no design break in fact it is one of the most
fundamental design goals of Lift. Snippets work with markup building
blocks to generate the proper
Not sure how much it worths but I'm having second thoughts about this
because it feels to me like it drifts away from the Lift's templating
idiom. Accessing arbitrary objects properties/methods seems to bring
lift closer to JSF kinds of things and I don't really see what problem
this actually solv
Have you tried looking at tree widget in lift-widgets project? ...
We're using jquery.treeview ...
Br's,
Mairus
On Jul 22, 12:04 am, Alan M wrote:
> I'm using lift for web services and I need to serve a javascript
> driven front end from the same web server (don't feel like messing
> with proxi
Try:
{?("send")}
or
import net.liftweb.js.jquery._
import JqJE._
> JqGetAttr
("value"), updateWho _)._2}>{?("send")}
Br's,
Marius
On Jul 23, 8:54 am, Lance Zheng wrote:
> Hi,
> I try the example "Hello Darwin"(http://wiki.liftweb.net/index.php/
> Hello_Darwin), but ajax form can't work cor
There are several ways of doing it:
1. Use JSONForm (http://wiki.liftweb.net/index.php/
HowTo_use_JSON_forms) in conjunction with JSONHandler and create new
Input fields purely from JavaScript and adhere to your own naming
conversion.
2. Before submitting the form start an Ajax request to add a
Oops typo:
import net.liftweb.js.jquery._
should be
import net.liftweb.http.js.jquery._
I just wrote the code in the mail (no IDE) to highlight the concept
not necessarily copy-paste-able :)
Br's,
Marius
On Jul 23, 5:29 pm, Dorinel wrote:
> marius d. wrote:
> > Try:
&g
I'm not sure if that logs the statements with the actual values. Does
it ?
Br's,
Marius
On Jul 23, 7:48 pm, Jeppe Nejsum Madsen wrote:
> Jon writes:
> > Hi,
>
> > Is it possible to dump/log all SQL statements going to the database,
> > so that one can see all the SELECTs, INSERTs etc.?
>
> Loo
rote:
> On Jul 23, 8:56 pm, Jeppe Nejsum Madsen wrote:
>
> > "marius d." writes:
> > > I'm not sure if that logs the statements with the actual values. Does
> > > it ?
>
> > Strange, just tried it because I definitely remember seeing values
&g
es and Mappers all set up to support this kind
> of data structure?
>
> -
>
> marius d. wrote:
>
> There are several ways of doing it:
>
> 1. Use JSONForm (http://wiki.liftweb.net/index.php/
> HowTo_use_JSON_forms) in conjunction with JSONHandler and c
e a problem with a
> LoggingStatement and LoggingPreparedStatement. This seems common enough that
> there may already be a library of wrappers that we could use out there.
>
> Derek
>
> On Thu, Jul 23, 2009 at 1:23 PM, marius d. wrote:
>
> > Looking a the code looks to me that the que
On Jul 24, 11:02 pm, verlsnake wrote:
> I've just read the following on Dave Pollak's Blog: YUI and jQuery are
> Lift's out-of-the-box libraries; my question now is: Are all those YUI
> and jQuery Widgets integrated with Lift's realtime capabilities ?
No not at all. For YUI we just provide the
On Jul 25, 9:25 pm, Timothy Perrett wrote:
> Hey Marius,
>
> I read your email with interest - myself and viktor were only today
> discussing all the various technologies such as this which are now flooding
> the wider JEE eco-system and how lift can interoperate with them (or if
> indeed we ne
Why is that a boiler plate?
Usually in those functions you are building your domain objects,
calling setters etc when your function bound to the submit button is
called, you have your model built up and start processing it. One
other reason for those little functions is type-safety. Your function
What is the usecase of rewriting the hostname? ... Having multiple
subdomains mapped to the same IP address and want to discriminate
them?
Br's,
Marius
On Jul 26, 1:22 am, JanWillem Tulp wrote:
> Hi all,
>
> most examples I have seen about Lift URL rewriting are about the path
> of the URL, th
ently AsyncWeb site has some problems and I can't
download it ... bummer ... next week then :)
Br's,
Marius
On Jul 25, 9:33 pm, "marius d." wrote:
> On Jul 25, 9:25 pm, Timothy Perrett wrote:
>
> > Hey Marius,
>
> > I read your email with interest - myself and
t.basecamphq.com.
>
> How is that done? Or better, how to do something similar in Lift?
>
> Thanks!
>
> On Jul 26, 12:01 pm, Timothy Perrett wrote:
>
> > Id say this is a fairly common idiom with multi-tenant systems...
>
> > Cheers, Tim
>
> >
I think it does ...
On Jul 26, 4:54 pm, Naftoli Gugenheim wrote:
> Doesn't Mapper also have toForm?
>
> -----
>
> marius d. wrote:
>
> Why is that a boiler plate?
>
> Usually in those functions you are building your domain objects,
ust process the entire form as the request is made?
You can still process forms as you want, ,,,see DispatchPf, jsonForm
etc. Lift follows a different paradigm for typical forms and many of
us consider this the right thing to do. Function binding is extremely
beneficial as it makes a lot of things very
Based on our talk today it would probably worth to have a
RestfulCometActor ... the only thing needed is to have the suspend/
resume wiring added for it. Using them may not be so straight forward
but I believe it is totally doable. I haven't looked much into it but
I'll probably will sometime soon
e. See for example
> scala.xml.QNode.
>
> ---------
>
> marius d. wrote:
>
> Well RewriteRequest/Response are currently defined as:
>
> case class RewriteRequest(path: ParsePath, requestType: RequestType,
> httpRequest: HttpServletRequest)
> case class
it is a 3-LOC object for the sole purpose
> of supplying an extractor that couldn't go into Elem because of the problem
> you stated. :)
>
> -----
>
> marius d. wrote:
>
> That probably won't work as RewriteRequest is already a c
ing change. Nonetheless let's see how this shapes
out. My goal here would be:
1. Abstract JEE references in Lift
2. Add support for AsyncWeb
Br's,
Marius
On Jul 26, 10:54 am, "marius d." wrote:
> Looks like AsyncWeb model is pretty straight forward for sending down
> asyn
Would you please add some examples on the wiki so that people can
actually visualize how these things can be used?
As far as XmlMenu goes why do we want to express menus as xml ?
Br's,
Marius
On Jul 27, 10:57 pm, Naftoli Gugenheim wrote:
> I committed some code last night, which can help buil
So the machine has 256 mb of RAM but did you configure the JVM max
heap size? .. How much MySql eats up out of 256 mb ? (let's live the
swap out for a bit) Are you running the JVM with -server option?
BTW 256mb seems to me ridiculous small for a server side application.
Br's,
Marius
On Jul 28,
Nope. Record currently has nothing to do with RDBMS. It is a higher
level of model abstraction that allows various implementations. RDBMS
will likely be implemented but likely other models as well such
Cassandra and ZooKeeper thru Dave's GoatRodeo.
Br's,
Marius
On Jul 29, 9:16 am, Heiko Seeberge
you run into some things and feel
that you need more flexibility from the Record framework, please let
us know and we'll discuss what the most sensible way of doing it.
>
> On 29 Lug, 08:40, "marius d." wrote:
>
> > Nope. Record currently has nothing to do
Well assume you snippet returns a NodeSeq:
import net.liftweb.http._
import js._
import JE._
import JsCmds._
def myFunc(xml: NodeSeq): NodeSeq = {
...
resultingNode ++ {Script(OnLoad(Call("myStartupFunction")))}
}
In the above example we are returning a node as well which will
be merged b
Thank you James for your input. I hope I'll be able to look into it
today.
Br's,
Marius
On Jul 30, 4:42 pm, James Kearney wrote:
> I think the current implementation of the JSON form is broken.
>
> If you put an & in a text field and try to submit it via a JSON form
> it doesn't get handled cor
James,
I just committed the fix based on your approach. Please give it a try.
Br's,
Marius
On Jul 30, 4:53 pm, "marius d." wrote:
> Thank you James for your input. I hope I'll be able to look into it
> today.
>
> Br's,
> Marius
>
> On Jul 30, 4:
How about :
SHtml.radio(colorMap.keys.toList, Empty, (a:String) => myColor =
colorMap(a) ).flatMap(_.xhtml)
I haven't tested but SHtml.radio rturns a ChoiceHolde which contains a
Seq[ChoiceItem[T]]] ... and ChoiceItem has an xhtml member
Br's,
Marius
On Jul 30, 10:49 pm, george wrote:
> I am
Please specify the problems you are seeing.
Br's,
Marius
On Jul 30, 11:24 pm, Avo Reid wrote:
> Has anyone tried to use wymeditor or FCKEditor in a lift page? I
> cannot get these plugins to work even thought they are based on JQuery.
--~--~-~--~~~---~--~~
You r
nd combined?
>
> -----
>
> marius d. wrote:
>
> Well assume you snippet returns a NodeSeq:
>
> import net.liftweb.http._
> import js._
> import JE._
> import JsCmds._
>
> def myFunc(xml: NodeSeq): NodeSeq = {
> ...
> resulting
Implicit conversions.
In TimeHelpers.scala we have:
1. TimeSpanBuilder which contains method minutes, seconds etc.
2. And the implicits such as: implicit def intToTimeSpanBuilder(in:
Int): TimeSpanBuilder = TimeSpanBuilder(in)
therefore compiler automatically applies intToTimeSpanBuilder
(10).
ny " found in the
> > name and value.
> > e.g.
> > json += "\"" + e.name.replace(/\"/g,"\\\"") + "\":\"" + e.value.replace
> > (/\"/g,"\\\"") + "\",";
>
> > James
>
> > On Jul 30, 6:1
patibility reasons if so you should escape any " found in the
> name and value.
> e.g.
> json += "\"" + e.name.replace(/\"/g,"\\\"") + "\":\"" + e.value.replace
> (/\"/g,"\\\"") + "\",";
>
&
I'd strongly recommend not to use sleep in the actors. Please see
Lift's ActorPing that does exactly what you need.
You have:
def schedule(to: Actor, msg: Any, delay: TimeSpan) // send a message
to the given actor after a delay
or
def scheduleAtFixedRate(to: Actor, msg: Any, initialDelay: Time
the context of a thread. If we sleep there that thread is not
returned to the thread pool hence consuming threads for nothing. The
faster/shorter the actor computation is the faster the thread is
returned to the thread pool hence giving it the opportunity to be re-
used => critical for scalability.
The point being ... ?
On Jul 31, 7:44 pm, Alex Cruise wrote:
> marius d. wrote:
> > Implicit conversions.
>
> It's worth noting that Rails accomplishes a similar trick by adding
> methods to the Integer class at runtime.
Are you using Lift 1.0 ?
If you're getting 1.1-SNAPSHOT the autocomplete has been moved to lift-
widgets. In the widgets demo application I think autocomplete is there
working correctly ...
Br's,
Marius
On Aug 3, 12:41 pm, fricke <00fri...@googlemail.com> wrote:
> Hi all,
>
> I'm relatively new
Got it :) .. I wasn't sure about the relation between what I posted
and you said ;)
Br's,
Marius
On Aug 3, 7:54 pm, Alex Cruise wrote:
> marius d. wrote:
> > The point being ... ?
>
> What Tim & dpp said. :)
>
> -0xe1a
--~--~-~--~~
uot;name" -> AutoComplete("",
> getNickNames _, s => println("submit " + s)),
>
> most probably the problem is that no submit happens - so the question
> could also be
> how to trigger such an asynchronous submit of the form (or do I really
> need
is called upon an async Ajax call as you type. So you
have async access to the autocomplete content but as you type stuff
not when pressing Enter. You can also provide a static list by using
AutoComplete.autocompleteObj
>
> cheers
> markus
>
> On Aug 3, 11:3
S lifetime is per request. S is not constructed on Boot. Could you
post a code snippet on what you're trying to achieve?
Br's,
Marius
On Aug 4, 12:43 pm, Heiko Seeberger
wrote:
> Hi,
>
> When I try to use internationalization via S.? in a Mapper class, I get the
> below exception while booting
Well if you use a JSON form the Lift response will be text/javascript
mimetype and I assume you need some other mimetype ... One solution
would be from your JSON handler to return a RedirectTo (which is a
JsCmd) .. so you would redirect to some other URI where you have a
DispatchPF and serve back
To make lift work with ExtJS you need to implement
net.liftweb.http.js.JsArtifacts trait and provide your implementation
in boot such as:
LiftRules.jsArtifacts = YourImplementationOfJsArtifacts
of course on top of this you would likely need to have specific .js
files. take a look on the current
301 - 400 of 592 matches
Mail list logo