[Lift] Re: Setting Session Timeout?

2009-07-01 Thread marius d.
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

[Lift] Re: Setting Session Timeout?

2009-07-01 Thread marius d.
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

[Lift] Re: Setting Session Timeout?

2009-07-01 Thread marius d.
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

[Lift] Re: Changes to ajax handling?

2009-07-01 Thread marius d.
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 >

[Lift] Re: Changes to ajax handling?

2009-07-02 Thread marius d.
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

[Lift] Re: Changes to ajax handling?

2009-07-03 Thread marius d.
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

[Lift] Re: using file-based data storage in Lift app

2009-07-04 Thread marius d.
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

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread marius d.
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

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
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

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
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: > >> >

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
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

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
... > > 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

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
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

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
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

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
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, &

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-08 Thread marius d.
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

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-08 Thread marius d.
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

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-08 Thread marius d.
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

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-08 Thread marius d.
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

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-08 Thread marius d.
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

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
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

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
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

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
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

[Lift] Re: Actor and clusters?

2009-07-09 Thread marius d.
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

[Lift] Re: Typesafe JSON builder?

2009-07-10 Thread marius d.
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

[Lift] Re: Actor and clusters?

2009-07-10 Thread marius d.
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

[Lift] Re: Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread marius d.
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

[Lift] Re: Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread marius d.
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

[Lift] Re: Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread marius d.
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

[Lift] Re: Mapper or Record

2009-07-10 Thread marius d.
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

[Lift] Re: Typesafe JSON builder?

2009-07-10 Thread marius d.
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

[Lift] Re: Empty boxes and global error handler?

2009-07-10 Thread marius d.
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

[Lift] Re: Standardizing widget APIs

2009-07-11 Thread marius d.
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

[Lift] Re: On GAE and Lift

2009-07-12 Thread marius d.
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

[Lift] Re: Standardizing widget APIs

2009-07-12 Thread marius d.
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:

[Lift] Re: Standardizing widget APIs

2009-07-12 Thread marius d.
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

[Lift] Re: Sense check please!

2009-07-12 Thread marius d.
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

[Lift] Re: Sense check please!

2009-07-12 Thread marius d.
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

[Lift] Re: ANN: Akka Actor Kernel: RESTful Distributed Persistent Transactional Actors

2009-07-12 Thread marius d.
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

[Lift] Re: external link to URL known at runtime

2009-07-12 Thread marius d.
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), >  

[Lift] Re: external link to URL known at runtime

2009-07-13 Thread marius d.
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

[Lift] Re: Record persistence backend implementation

2009-07-14 Thread marius d.
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

[Lift] Re: Snippet knowing all the possible parameters?

2009-07-14 Thread marius d.
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

[Lift] Re: Ambiguous bind

2009-07-14 Thread marius d.
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? --~--~-~--~~~

[Lift] Re: Parsing JSON POST

2009-07-15 Thread marius d.
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

[Lift] Re: Snippet knowing all the possible parameters?

2009-07-15 Thread marius d.
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

[Lift] Re: LiftRule.maxConcurrentRequests not used anywhere ...

2009-07-16 Thread marius d.
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

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
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

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
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

[Lift] Re: File upload streaming and progress monitoring ...

2009-07-18 Thread marius d.
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 >

[Lift] Re: Article: Lift snippet selection - DispatchSnippet vs snippet reflection

2009-07-20 Thread marius d.
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

[Lift] Re: Feedback on presentation

2009-07-20 Thread marius d.
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

[Lift] Re: Template tags and properties

2009-07-21 Thread marius d.
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

[Lift] Re: change class level variable value

2009-07-21 Thread marius d.
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

[Lift] Re: S.getHeaders, could i get some examples?

2009-07-21 Thread marius d.
+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] Re: Template tags and properties

2009-07-22 Thread marius d.
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

[Lift] Re: Acceding object fields in template

2009-07-22 Thread marius d.
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

[Lift] Re: A problem involving Lift and javascript dodged for now..

2009-07-22 Thread marius d.
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

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-22 Thread marius d.
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

[Lift] Re: how to create a dynamic form in lift?

2009-07-23 Thread marius d.
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

[Lift] Re: How to use "SHtml.ajaxCall"?

2009-07-23 Thread marius d.
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

[Lift] Re: SQL dumping in log?

2009-07-23 Thread marius d.
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

[Lift] Re: SQL dumping in log?

2009-07-23 Thread marius d.
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

[Lift] Re: how to create a dynamic form in lift?

2009-07-23 Thread marius d.
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

[Lift] Re: SQL dumping in log?

2009-07-23 Thread marius d.
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

[Lift] Re: Realtime integration of YUI and jQuery Widgets

2009-07-24 Thread marius d.
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

[Lift] Re: Lift & (AsyncWeb || ...)

2009-07-25 Thread marius d.
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

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-26 Thread marius d.
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

[Lift] Re: url rewrite subdomain?

2009-07-26 Thread marius d.
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

[Lift] Re: Lift & (AsyncWeb || ...)

2009-07-26 Thread marius d.
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

[Lift] Re: url rewrite subdomain?

2009-07-26 Thread marius d.
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 > > >

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-26 Thread marius d.
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,

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-26 Thread marius d.
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

[Lift] Re: Comet DispatchPF - RestfulCometActor?

2009-07-26 Thread marius d.
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

[Lift] Re: url rewrite subdomain?

2009-07-26 Thread marius d.
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

[Lift] Re: url rewrite subdomain?

2009-07-26 Thread marius d.
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

[Lift] Re: Lift & (AsyncWeb || ...)

2009-07-27 Thread marius d.
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

[Lift] Re: New features

2009-07-27 Thread marius d.
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

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread marius d.
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,

[Lift] Re: Schemifier for Record?

2009-07-28 Thread marius d.
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

[Lift] Re: Schemifier for Record?

2009-07-29 Thread marius d.
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

[Lift] Re: Simple Javascript question(from a lift snippet of course...)

2009-07-29 Thread marius d.
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

liftweb@googlegroups.com

2009-07-30 Thread marius d.
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

liftweb@googlegroups.com

2009-07-30 Thread marius d.
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:

[Lift] Re: radio input trouble

2009-07-30 Thread marius d.
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

[Lift] Re: Wymeditor or FCKEditor

2009-07-30 Thread marius d.
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

[Lift] Re: Simple Javascript question(from a lift snippet of course...)

2009-07-30 Thread marius d.
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

[Lift] Re: how "10 seconds" works?

2009-07-31 Thread marius d.
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).

liftweb@googlegroups.com

2009-07-31 Thread marius d.
ny " found in the > > name and value. > > e.g. > > json += "\"" + e.name.replace(/\"/g,"\\\"") + "\":\"" + e.value.replace > > (/\"/g,"\\\"") + "\","; > > > James > > > On Jul 30, 6:1

liftweb@googlegroups.com

2009-07-31 Thread marius d.
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,"\\\"") + "\","; > &

[Lift] Re: Interrupting sleeping actors on ctrl-c

2009-08-01 Thread marius d.
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

[Lift] Re: Interrupting sleeping actors on ctrl-c

2009-08-02 Thread marius d.
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.

[Lift] Re: how "10 seconds" works?

2009-08-03 Thread marius d.
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.  

[Lift] Re: Cannot get autocomplete to return values

2009-08-03 Thread marius d.
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

[Lift] Re: how "10 seconds" works?

2009-08-03 Thread marius d.
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 --~--~-~--~~

[Lift] Re: Cannot get autocomplete to return values

2009-08-03 Thread marius d.
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

[Lift] Re: Cannot get autocomplete to return values

2009-08-04 Thread marius d.
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

[Lift] Re: Exception for S.? while booting

2009-08-04 Thread marius d.
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

[Lift] Re: Post form and return file?

2009-08-04 Thread marius d.
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

[Lift] Re: Using ExtJS with Lift?

2009-08-04 Thread marius d.
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

<    1   2   3   4   5   6   >