[Lift] Re: Future of the Lift wiki

2009-06-03 Thread marius d.
really like the format of the django documentation:http://docs.djangoproject.com/en/dev/.  Any other recommendations out there? Thanks, Bryan On Jun 2, 6:57 am, Kevin Wright kev.lee.wri...@googlemail.com wrote: Mark me down :) On Tue, Jun 2, 2009 at 9:36 AM, marius d. marius.dan

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
The reason for that is that if the node text is empty (and yes we explicitly trim it) we render the default text. To be honest I'm not a fan of this approach either. I think it should be ok to just not render a default text. Does anyone have any objections? If not I could change this real quick,

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
explicitly sets it to empty then we should honor that, although I wonder if we should emit a debug-level warning. Derek On Fri, Jun 5, 2009 at 7:26 AM, Bryan. germ...@gmail.com wrote: +1 on removing the default text. --Bryan On Jun 5, 6:46 am, marius d. marius.dan...@gmail.com wrote

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
it out, that would be confusing. Kind of a deprecation warning, so to speak. Derek On Fri, Jun 5, 2009 at 8:25 AM, marius d. marius.dan...@gmail.com wrote: Personally I don't think that a debug warning is necessary ... since if the node is empty it is very intuitive for the user

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread marius d.
Committed. Let me know if that works for you. On Jun 5, 6:31 pm, marius d. marius.dan...@gmail.com wrote: Oh right ..that  makes sense. Thanks Derek ! On Jun 5, 6:28 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, I meant for a period of time, since we're changing default behavior

[Lift] Re: Snippets and Requests

2009-06-07 Thread marius d.
StatfulSnippet does not actually have session scope. It guarantees that for the same request you get the same snippet instance. If for some reason you still don't want a StatefulSnippet you can put your results in a RequestVar, set the value when you process the form and use it when render the

[Lift] Re: Lift Jquery autocomplete *** API CHANGE CANDIDATE ***

2009-06-08 Thread marius d.
Other folks, please speak up ! :) ... I will soon migrate this into a Lift widget. Br's, Marius On Jun 6, 4:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think I'm using in one place in one project so my api breakage factor is low.  I'm okay with moving it unless someone else is

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote: I'm trying to create a menu using CSS and links that is a class=nav/ which accoring to the

[Lift] Re: Google App Engine for Scala!

2009-06-08 Thread marius d.
Out of curiosity have you tried JDO with GAE? Does anyone have a simple example? Br's, Marius On Apr 11, 10:53 am, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Fri, Apr 10, 2009 at 10:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Thank you! Thank you! Thank you!

[Lift] Re: Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-08 Thread marius d.
On the apress site: http://apress.com/book/downloadfile/4390 Apress decided (we agreed) that the appendixes will not be included in the first printing run in order to get the book ready for Java One. Br's, Marius On Jun 8, 5:49 pm, Peter Bliznak bliz...@rogers.com wrote: As an loyalist to the

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
=/help/Help Me!/a -- Ewan On Jun 8, 9:07 am, marius d. marius.dan...@gmail.com wrote: Do you see any behavior change if you put a text value such as: lift:Menu.item name=helpMenu a:class=nav Some tex / lift:Menu.item Br's, Marius On Jun 8, 12:55 am, Ewan ehar...@gmail.com wrote

[Lift] Re: Attributes in Menu.item not rendered

2009-06-08 Thread marius d.
? Thx -- Ewan On Jun 8, 4:14 pm, marius d. marius.dan...@gmail.com wrote: Oh do you use the same name 'helpMenu' for the current loc? a: prefixed attributes are added only if loc.name != name. On Jun 8, 1:30 pm, Ewan ehar...@gmail.com wrote: None I'm afraid.  I have: lift:Menu.item

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-08 Thread marius d.
Ohhh that's just great ... I wish I could have come. Who knows maybe one day I'll make it. Br's, Marius On Jun 8, 7:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Ilya not only writes great IDE plugins, he takes good

[Lift] Re: security

2009-06-10 Thread marius d.
Hi, For most apps cannonicalization is not really necessary as the character stream for form-url-encoded is UTF-8 by default as Lift uses UTF-8 by default. Oh and the conversion from URL encoding to plain UTF-8 content is really done by container and when we get the params from the request

[Lift] Re: security

2009-06-10 Thread marius d.
Oh and about XSS Lift is safe by default. Marius On Jun 10, 9:39 am, marius d. marius.dan...@gmail.com wrote: Hi, For most apps cannonicalization is not really necessary as the character stream for form-url-encoded is UTF-8 by default as Lift uses UTF-8 by default. Oh and the conversion

[Lift] Re: org.mortbay.util.ajax.Continuation on GAE/J

2009-06-10 Thread marius d.
On Jun 10, 7:27 pm, Alex Boisvert boisv...@intalio.com wrote: On Wed, Jun 10, 2009 at 9:15 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Thu, Jun 11, 2009 at 12:30 AM, David Pollakfeeder.of.the.be...@gmail.com wrote: Unfortunately, no.  In order to do this, we'd

[Lift] Re: security

2009-06-11 Thread marius d.
On Jun 11, 2:45 am, Oliver Lambert olambo...@gmail.com wrote: On Wed, Jun 10, 2009 at 11:58 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jun 9, 2009 at 11:39 PM, marius d. marius.dan...@gmail.comwrote: Hi, For most apps cannonicalization is not really necessary

[Lift] Re: Wolfram Alpha integration for Lift

2009-06-11 Thread marius d.
Wolfram Alpha is WAY COOL ! I wish I could help but my spare time is problematic. Maybe I could help sporadically? Would you be ok with that? Br's, Marius On Jun 11, 7:02 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey chaps, Im going to start work on integration with the wolfram

[Lift] Re: Wolfram Alpha integration for Lift

2009-06-11 Thread marius d.
Oh and people that are not Lift committers could potentially join? I'm sure there are lots of talents in Lift community. Br's, Marius On Jun 11, 7:02 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey chaps, Im going to start work on integration with the wolfram alpha engine that

[Lift] Re: JSON Rest API

2009-06-11 Thread marius d.
Just use a JsonResponse instead of XmlRresponse. See definition: object JsonResponse extends HeaderStuff { def apply(json: JsExp): LiftResponse = JsonResponse(json, headers, cookies, 200) } and call it JsonResponse(JsObj(..)) Br's, Marius On Jun 11, 8:25 pm, Makeable m...@makeable.co.uk

[Lift] Re: Lift Shopping Cart?

2009-06-12 Thread marius d.
There is a PayPal module I think. Br's, Marius On Jun 12, 5:08 pm, David Persons dhwpers...@gmail.com wrote: I am experimenting with Lift / Scala and am thinking about using it for some projects in the future. Really like it. For a website I need shopping cart functionality. In last years

[Lift] Re: Lift Jquery autocomplete *** API CHANGE CANDIDATE ***

2009-06-16 Thread marius d.
/liftweb/example/snippet/Ajax.scala:65: error: value autocomplete is not a member of object net.liftweb.http.jquery.JqSHtml [WARNING]          auto - JqSHtml.autocomplete(, buildQuery _, _ = ())) --Bryan On Jun 15, 2:16 pm, marius d. marius.dan...@gmail.com wrote: Folks, I just made

[Lift] Re: Mapper or Record?

2009-06-16 Thread marius d.
On Jun 16, 3:17 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On 16 Jun 2009, marius d. wrote: Lift Record currently is not implemented for DB interaction but it's targeted for 1.1 release. That probably explains why I couldn't find much when looking through the source :-) I'd

[Lift] Re: Firebug error message for AJAX

2009-06-17 Thread marius d.
it doesn't insert it automatically ... Thanks! Chas. marius d. wrote: Also please see:http://wiki.liftweb.net/index.php/HowTo_use_Lift_with_YUI Marius On Jun 16, 11:58 pm, marius d. marius.dan...@gmail.com wrote: You need one more script src=/classpath/liftYUI.js type=text/javascript

[Lift] Re: David and Lift @ QCon

2009-06-17 Thread marius d.
Really enjoined ! ... Thank David and congrats ! Br's, Marius On Jun 17, 5:41 pm, Viktor Klang viktor.kl...@gmail.com wrote: For those of us who weren't there:http://www.infoq.com/interviews/Lift-Scala-David-Pollack Awesome interview Dave! Cheers, -- Viktor Klang Scala Loudmouth

[Lift] Re: Lift + Javeline

2009-06-17 Thread marius d.
Just 2.1 version ... we'll try that out. It's still a mystery because offline example works but wen putting it in lift fails only on FF. So far there is no indication that Lift is doing anything wrong. Br's, Marius On Jun 17, 4:14 pm, Matt Williams m...@makeable.co.uk wrote: Are you using the

[Lift] Re: QA, before merging code

2009-06-18 Thread marius d.
Oliver thanks for raising this flag. I'll try to look later on today one more time at the code as I'm not sure I fully understand the principles of your addition. I remember doing some comments on the topic but haven't looked on your code for a while. Are you willing to have a quick chat on it ?

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread marius d.
Dave is there a reason why writes are allowed outside a transaction boundaries ? Br's, Marius On Jun 18, 10:19 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, At the end of the Scala Lift Off, after I finished my third beer, Martin Odersky came over to me and asked, so, what's

[Lift] Re: BBCode2XHTML

2009-06-18 Thread marius d.
Isn't Lift XSS safe by default ? ... in the sense that it applies the proper escaping. Br's, Marius On Jun 18, 2:06 pm, Viktor Klang viktor.kl...@gmail.com wrote: Hi guys! I'm in dire need of an XSS-safe and generally harmless way of allowing end-users to add some markup to texts. In the

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread marius d.
, Marius On Jun 18, 6:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jun 18, 2009 at 4:23 AM, marius d. marius.dan...@gmail.com wrote: Dave is there a reason why writes are allowed outside a transaction boundaries ? Writes are not allowed outside of transactional boundaries

[Lift] Re: Error reporting and early failure in lift ?

2009-06-19 Thread marius d.
Francois, That is a very valid point and there is significant attention in lift development to improve error reporting. In fact David made some really significant steps in this area in 1.1-SNAPSHOT so that if an unexpected error occurs in development mode there is a helpful message rendered on

[Lift] Re: So where is that OAuth?

2009-06-21 Thread marius d.
OAuth is not implemented yet in Lift still the project folder is there. I think Dave wanted to put it there but never got the chance to add it. Br's, Marius On Jun 21, 9:29 am, DFectuoso santiago1...@gmail.com wrote: Im trying to integrate OAuth (with twitter) in one of my projects... and i

[Lift] Re: So where is that OAuth?

2009-06-22 Thread marius d.
would use in the second option to actually make the http request to ther other site? I think its a servlet but some trivial example on this would really help me =) You can just use HttpUrlConnection, or Apache Http client. On Jun 21, 7:18 am, marius d. marius.dan...@gmail.com wrote: OAuth

[Lift] Re: Thead safe part and transaction management in Lift

2009-06-24 Thread marius d.
On Jun 24, 12:10 pm, fan...@gmail.com fan...@gmail.com wrote: Hello guys, I'm following my path through lift, and there is some part that are still not really clear for me. First question: what parts of lift are thread safe ? In particular, does the request/response handling cycle is

[Lift] Re: Thead safe part and transaction management in Lift

2009-06-24 Thread marius d.
On Jun 24, 2:18 pm, fan...@gmail.com fan...@gmail.com wrote: marius d. a écrit : Yes it is thread safe. It is one of the most fundamental design scopes of lift. Do you have any specifics in mind that you need answers? No, in fact I took as an assumption the thread-safety of request

[Lift] Re: Stax

2009-06-24 Thread marius d.
Would be neat to have a Lift application template when creating a new stax app. And the fact they are using Amazon EC2 is really great. Br's, Marius On Jun 24, 4:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, The folks in the ESME project have been hosting demo versions of

[Lift] Re: lift presentation

2009-06-25 Thread marius d.
I'm giving today a presentation for Transylvania JUG ... I'll email you my material. Br's, Marius On Jun 25, 8:04 am, Wilson MacGyver wmacgy...@gmail.com wrote: Hi, I'm doing a presentation on lift to my local java user group next month. I'm wondering if any of you have slides on lift

[Lift] Re: form element specific error messages

2009-06-26 Thread marius d.
lift:Customer.newCustomer form=POST divnewCustomer:firstName/newCustomer:firstName/divlift:msg id=firstNameError/ divnewCustomer:lastName/newCustomer:lastName/divlift:msg id=lastNameError/ divnewCustomer:submit //div /lift:Customer.newCustomer In your snippet when you need to set

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread marius d.
That would be nice ... but still what was the problem with unused bind params? ... could you please elaborate a bit? Br's, Marius On Jun 26, 6:32 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I just spent the better part of half a day trying to track down an issue with binding that ended

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread marius d.
the misspelling) I was thinking that you would get two warnings:    1. One that nothing had matched the content name    2. One that there was an unused contet surround Derek On Fri, Jun 26, 2009 at 9:52 AM, marius d. marius.dan...@gmail.com wrote: That would be nice ... but still what

[Lift] Re: suggestion: I'm a brand spanking new user....some first impressions on 'getting started'

2009-06-27 Thread marius d.
You can also look son the examples application that come with Lift in sites folder. Just get lift from github. Br's, Marius On Jun 27, 6:22 am, g-man gregor...@gmail.com wrote: My path to learning was threefold: 1. Do the 'ToDo' app tutorial, while studying the 'PocketChange' app from the

[Lift] Re: liftweb.net down now, and maven refuses to compile

2009-06-27 Thread marius d.
try maven -o Marius On Jun 27, 11:46 am, Ellis ellis.whiteh...@gmail.com wrote: Maven is suddenly refusing to compile because scala-tools.org is down.  Can the liftweb-snapshot-1.1 POM be changed in order to let maven work in offline mode? Here's an excerpt of the error message when

[Lift] Re: liftweb.net down now, and maven refuses to compile

2009-06-27 Thread marius d.
non-American guys (I.e people who are awake now!)   to take a look at the server? Cheers, Tim Sent from my iPhone On 27 Jun 2009, at 10:06, marius d. marius.dan...@gmail.com wrote: try maven -o Marius On Jun 27, 11:46 am, Ellis ellis.whiteh...@gmail.com wrote: Maven

[Lift] Re: Turning on Logging for third-party libraries in Lift

2009-06-27 Thread marius d.
I think that simply putting log4j.xml in WEB-INF/classes folder does the trick. Br's, Marius On Jun 27, 3:06 am, Alan M alan.morten...@gmail.com wrote: I'm trying to enable log4j logging in a third party library (well third party to me.. it was developed in house) so that it logs it's output

[Lift] Re: liftweb.net down now, and maven refuses to compile

2009-06-27 Thread marius d.
Sorry On Jun 27, 1:03 pm, Ellis ellis.whiteh...@gmail.com wrote: try maven -o The point of my message was that maven -o doesn't work! :) On Jun 27, 11:06 am, marius d. marius.dan...@gmail.com wrote: try maven -o Marius On Jun 27, 11:46 am, Ellis ellis.whiteh...@gmail.com

[Lift] Re: scala-tools.org down

2009-06-27 Thread marius d.
Thanks Derek. On Jun 27, 6:54 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Hi all,     DPP gave me access to the primary Xen server that everything else runs on, but I'm unable to reach it. This may either be a network failure or a total hardware failure, but it's unclear at this

[Lift] Re: Lift + Javeline

2009-06-28 Thread marius d.
, Matt Williams m...@makeable.co.uk wrote: Maybe an issue with the compressor? (although i dont see why that would just affect firefox) On Wed, 2009-06-17 at 14:00 -0700, marius d. wrote: Just 2.1 version ... we'll try that out. It's still a mystery because offline example works but wen

[Lift] Re: preso on monadic design patterns for the web

2009-06-28 Thread marius d.
Great, great talk !!! .. congrats Greg. Br's, Marius On Jun 29, 2:05 am, Meredith Gregory lgreg.mered...@gmail.com wrote: All, The talk i recently gave on this topic is now available onlinehttp://www.vimeo.com/5318303 . Best wishes, --greg -- L.G. Meredith Managing Partner

[Lift] Re: Writing Facebook applications in Lift (cookies, Javascript GC, example code)

2009-06-29 Thread marius d.
On Jun 29, 1:13 pm, Timothy Perrett timo...@getintheloop.eu wrote: Steven, Welcome to lift. Lift doesn't use the JSESSIONID in the URL... that is, lift does not require it (at least this is my understanding, if im wrong please correct me someone) - so you should have no problems with the

[Lift] Re: lift presentation

2009-06-29 Thread marius d.
I had it last Thursday ... it was a ~ 40 Java people ...very few (colleagues of mine) that heard and try Scala Lift ... I think it went ok cause I got plenty of questions + some Java jokes about Scala's syntax and principles but I expected that. I guess most of the functional concept are hard

[Lift] Re: can a Snippet call a Snippet?

2009-06-30 Thread marius d.
Can you paste some code? Essentially we support nested snippets so your snippet can simply return a markup containing another snippet and it will be invoked. If you really want to manually invoke a snippet from another snippet and if you are not using StatefulSnippets you can just instantiate

[Lift] Re: can a Snippet call a Snippet?

2009-06-30 Thread marius d.
Or you can use S.locateMappedSnippet ... but first try to see if nested snippet won't do the trick for you ... On Jun 30, 10:17 am, marius d. marius.dan...@gmail.com wrote: Can you paste some code? Essentially we support nested snippets so your snippet can simply return a markup containing

[Lift] Re: Examples of ajaxForm(...)

2009-06-30 Thread marius d.
Imagine that your snippet has a bunch of form elements ... such as: lift:Ajax.form f:inputFirstName/ f:inputLastName/ /lift:Ajax.form and your snippet function: def form(xml: NodeSeq): NodeSeq = { ajxForm(bind( f, xml, inputFirstName -SHtml.text(, (s) = {//do something here})

[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

[Lift] Re: Setting Session Timeout?

2009-07-01 Thread marius d.
on - related? -- Ewan On Jul 1, 12:32 pm, marius d. marius.dan...@gmail.com wrote: LiftSession is bound to HttpSession through HttpSessionBindingListener and HttpSessionActivationListener This means that when the HTTP session terminates LiftSession will also terminate. To verify your

[Lift] Re: Setting Session Timeout?

2009-07-01 Thread marius d.
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. marius.dan...@gmail.com wrote: You answered your own question :) ... Yes that is Lift GC mechanism. You can of course turn it off

[Lift] Re: Changes to ajax handling?

2009-07-01 Thread marius d.
On Jul 2, 12:40 am, Kris Nuttycombe kris.nuttyco...@gmail.com 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

[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. marius.dan...@gmail.com wrote: On Jul 2, 12:40 am, Kris Nuttycombe kris.nuttyco...@gmail.com 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.
d.marius.dan...@gmail.com wrote: Corrected and pushed. Please do an update and give it a try. Br's, Marius On Jul 2, 8:56 am, marius d. marius.dan...@gmail.com wrote: On Jul 2, 12:40 am, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: To answer my own question, looking over the commit log

[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 gl...@exmbly.com 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

[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

[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 kev.lee.wri...@googlemail.com 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

[Lift] Re: No Navigation Defined in menu snippet

2009-07-06 Thread marius d.
... yes it does On Mon, Jul 6, 2009 at 9:51 AM, marius d. marius.dan...@gmail.com wrote: And if you deploy onlyhttp://lsug.org/main/ does it work correctly? Br's, Marius On Jul 6, 10:17 am, Kevin Wright kev.lee.wri...@googlemail.com wrote: I have two webapps, hosted on the same

[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. marius.dan...@gmail.com 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 any jars

[Lift] Re: No Navigation Defined in menu snippet

2009-07-06 Thread marius d.
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. marius.dan...@gmail.com wrote: Oh btw. did you explicitly set the context path

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
On Jul 6, 5:44 pm, Gonzalo N gonn...@gmail.com 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,

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
regards, Gonzalo N On Jul 6, 3:56 pm, marius d. marius.dan...@gmail.com wrote: On Jul 6, 5:44 pm, Gonzalo N gonn...@gmail.com 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

[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 viktor.kl...@gmail.com wrote: We want lift to work on those platforms. We need a work-around On Wed,

[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 kev.lee.wri...@googlemail.com 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. marius.dan...@gmail.com wrote: Actually I had the same

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

2009-07-08 Thread marius d.
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. marius.dan...@gmail.com wrote: huh ? On Jul 8, 3:32 pm, Kevin Wright kev.lee.wri...@googlemail.com wrote: Puts us in the rather interesting position of being a Java

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

2009-07-08 Thread marius d.
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. marius.dan...@gmail.com wrote: Lift does a lot of thing to properly cope with browsers idiosyncrasies (IE mostly ... doh .. :) ...) ... perhaps not using xhtml

[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=gstq=REST+%26+Record#5f871b2cf9f7099b It is a mechanism for automatically building Record objects from REST query string params. Hence Lift

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

2009-07-09 Thread marius d.
to integrate it with goat- rodeo STM + Cassandra (similar with BigTable model) + ZooKeeper Cheers, Tim On Jul 9, 9:27 am, marius d. marius.dan...@gmail.com wrote: You can also use REST + Record Please see here:http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e

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

2009-07-09 Thread marius d.
that both builds the objects and persists them to a DB? On 9 Jul., 10:27, marius d. marius.dan...@gmail.com wrote: You can also use REST + Record Please see here:http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e... It is a mechanism for automatically building

[Lift] Re: Actor and clusters?

2009-07-10 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 je...@ingolfs.dk wrote: Hi, Has anyone made a typesafe JSON builder? Many Javascript libraries provides

[Lift] Re: Actor and clusters?

2009-07-10 Thread marius d.
://www.terracotta.org/ ... it is a great framework. On Jul 9, 11:53 pm, marius d. marius.dan...@gmail.com 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 we have to have sticky sessions concept and the reason

[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

[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 timo...@getintheloop.eu wrote: Hey, liftAjax.js is not

[Lift] Re: Typesafe JSON builder?

2009-07-10 Thread marius d.
On Jul 10, 6:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jul 10, 2009 at 1:44 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: marius d. marius.dan...@gmail.com writes: Please take a look on JsObj. That's what I'm using now and it's a pain: def

[Lift] Re: Standardizing widget APIs

2009-07-12 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

[Lift] Re: On GAE and Lift

2009-07-12 Thread marius d.
On Jul 12, 9:16 am, TakeTheStage forthepo...@gmail.com 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,

[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 timo...@getintheloop.eu 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

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

2009-07-13 Thread marius d.
Just use a href=your text here/a Br's, Marius On Jul 13, 1:26 am, chrislewis burningodzi...@gmail.com 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 -

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

2009-07-15 Thread marius d.
On Jul 15, 8:10 am, DFectuoso santiago1...@gmail.com 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: lift:Foo.Bar variable=value/

[Lift] Re: Ambiguous bind

2009-07-15 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 naftoli...@gmail.com wrote: If a call to BindHelpers.bind has multiple bindings for the same element label, which gets used? The last one?

[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

[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. marius.dan...@gmail.com 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 holding the lock

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

2009-07-18 Thread marius d.
-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. marius.dan...@gmail.com wrote: Just committed a fix ... Br's, Marius On Jul 18, 4:10 pm, marius d. marius.dan...@gmail.com wrote: A little more

[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

[Lift] Re: Feedback on presentation

2009-07-21 Thread marius d.
I like it, like it, like it ! :) Br's, Marius On Jul 21, 1:05 am, Derek Chen-Becker dchenbec...@gmail.com 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

[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 dchenbec...@gmail.com 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

[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

[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

[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 alan.morten...@gmail.com 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

[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 dorinel.munte...@gmail.com wrote: marius d. wrote: Try

[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 je...@ingolfs.dk wrote: Jon jon.klei...@usit.uio.no writes: Hi, Is it possible to dump/log all SQL statements going to the database, so that one can see all

[Lift] Re: SQL dumping in log?

2009-07-23 Thread marius d.
...@usit.uio.no wrote: On Jul 23, 8:56 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: marius d. marius.dan...@gmail.com 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 being logged, but turns out

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

2009-07-23 Thread marius d.
Naftoli, take a look on JsonForm JsonHandler. It provides is A WAY of allowing adding arbitrary fields to a form and process it on server side in any way desired. Why? ... because with this mechanism you don't need Lift's functions binding and inherently field naming generation. My notes are NOT

<    1   2   3   4   5   6   >