Re: [Lift] Usage patterns for Scala traits

2010-02-24 Thread Alex Boisvert
On Wed, Feb 24, 2010 at 11:53 AM, Malte Schwerhoff mun123456...@googlemail.com wrote: I am currently working on a research project in the context of my Master's at the ETH Zürich. The project's (long-term) goal is to develop a contract language (pre-, postconditions, invariants, the usual

Re: [Lift] Is there any open source web apps based on lift ?

2010-01-28 Thread Alex Boisvert
And there's a simpler example mentioned here, http://www.mail-archive.com/liftweb@googlegroups.com/msg15536.html alex On Thu, Jan 28, 2010 at 7:55 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Boern cayso...@gmail.com writes: Hi,all: I am newbie for lift web framework and I hope * there

Re: [Lift] Lift logging improvements

2010-01-27 Thread Alex Boisvert
I think that's a great idea. alex On Wed, Jan 27, 2010 at 2:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: It all sounds good to me as long as API breakage is minimal (or non-existent) On Wed, Jan 27, 2010 at 1:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I was

Re: [Lift] buildr?

2010-01-26 Thread Alex Boisvert
at 9:38 AM, Timothy Perrett timo...@getintheloop.euwrote: Alex, Can I suggest you distill your own learning onto the wiki? Cheers, Tim On 22 Jan 2010, at 01:51, Alex Boisvert wrote: On Thu, Jan 21, 2010 at 5:17 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 21

Re: [Lift] buildr?

2010-01-21 Thread Alex Boisvert
On Thu, Jan 21, 2010 at 5:17 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 21, 2010 at 5:03 PM, Raoul Duke rao...@gmail.com wrote: hi, whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... We're not going

Re: [Lift] Re: Replace HTML element after AJAX call

2010-01-18 Thread Alex Boisvert
Yes, using a div or span is recommended so you can replace multiple times. Alex On Jan 18, 2010 9:21 AM, greekscala hellectro...@gmail.com wrote: Hello, I looked at the source and there is JsCmds.Replace which replaces a Node with another. I am always using div as containers for

Re: [Lift] Re: Backbutton for Ajax

2010-01-14 Thread Alex Boisvert
On Wed, Jan 13, 2010 at 6:10 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I haven't really used Ajax much but it seems to me there are two kinds of changes. 1. Modifying the view, e.g., clicking an emal in Gmail, or Expand All. One can make an analogy to a GET request, in that there's no

Re: [Lift] Re: Backbutton for Ajax

2010-01-14 Thread Alex Boisvert
Depends on your application. What would it do if it wasn't implemented with AJAX? This isn't a magical feature. It's a feature that allows you to support the back button 1) if it makes sense to you and 2) if you can figure out a way to make it safe for the user. For example, you click the

Re: [Lift] Re: NGinx and sticky sessions

2010-01-13 Thread Alex Boisvert
I'm not sure if you discussed this but based on my experience, the JSESSIONID cookie is used most often in Jetty/Tomcat/J2EE environments for load balancing (over using client IP). I haven't used nginx for load balancing yet but I've used both HAProxy and Varnish in the past.

Re: [Lift] Re: Backbutton for Ajax

2010-01-13 Thread Alex Boisvert
. with best regards On 11 Jan., 23:05, Alex Boisvert alex.boisv...@gmail.com wrote: I've been playing with sammy.js http://code.quirkey.com/sammy/ recently and I like the way they update the URL fragment identifier (hash) when doing AJAX which makes apps more back-button

Re: [Lift] Lift on Stack Overflow

2010-01-12 Thread Alex Boisvert
As someone who answers questions, I prefer email because of the unified inbox. I can organize many things in a single location and refer to them easily. (I know I can use RSS with SO but I have yet to find a satisfying way to organize question feeds into my existing stream of emails) As

Re: [Lift] User Presence Heartbeat

2010-01-12 Thread Alex Boisvert
The current GC liveliness entrypoint is in LiftServlet.handleAjax() which calls liftSession.updateFuncByOwner(). There's no extension point for what you want at the moment although it would be fairly easy to add something to LiftSession. The closest thing right now is

Re: [Lift] Ajax forms and (multiple) submit buttons

2010-01-12 Thread Alex Boisvert
I like it a lot. Eliminates recent confusion about submit() in ajaxForm, prettier and semantically more correct than hidden fields and supports multiple actions. What's not to like? alex On Tue, Jan 12, 2010 at 2:39 PM, Marius marius.dan...@gmail.com wrote: Dear all, Recently (and not

Re: [Lift] Re: Binding a snippet in a comet actor?

2010-01-12 Thread Alex Boisvert
Yes. The issue is here: http://github.com/dpp/liftweb/issues/closed/#issue/93 It was fixed in 1.1M7 and later. alex On Tue, Jan 12, 2010 at 1:47 PM, Felipe Rodrigues felipero.maill...@gmail.com wrote: I have a similar problem here. I didn't find this issue on github. Is this issue

Re: [Lift] Nginx question

2010-01-12 Thread Alex Boisvert
follow this thread for a few suggestions: http://nginx.org/pipermail/nginx/2009-February/009791.html On Tue, Jan 12, 2010 at 4:33 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I have nginx set up as a frontend. How can I have it display Down for maintenance instead of pointing to jetty?

Re: [Lift] How many memory are assigned by default when starting the Jetty ?

2010-01-11 Thread Alex Boisvert
The standard jetty.sh doesn't explicitly set JVM memory settings. It relies on default JVM ergonomics ( http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html). You can explicitly set your memory requirements in ~/.jettyrc, e.g., #!/bin/sh JAVA_OPTIONS=-noverify

Re: [Lift] Backbutton for Ajax

2010-01-11 Thread Alex Boisvert
I've been playing with sammy.js http://code.quirkey.com/sammy/ recently and I like the way they update the URL fragment identifier (hash) when doing AJAX which makes apps more back-button friendly, in a manner that's similar to GMail. It would be nice to have something similar in Lift. alex On

Re: [Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Boisvert
One reason is to bundle html/js/... along with their corresponding snippet in a jar file. Alex On Jan 10, 2010 3:34 PM, Alex Black a...@alexblack.ca wrote: Hi Marius, I haven't heard of ResourceServer before, sounds interesting. Right now, our CSS and JS files are just in subfolders of webapp,

Re: [Lift] Re: what provides classpath/jquery.js?

2010-01-10 Thread Alex Boisvert
. On Jan 10, 5:16 pm, Alex Boisvert alex.boisv...@gmail.com wrote: One reason is to bundle html/j... On Jan 10, 2010 3:34 PM, Alex Black a...@alexblack.ca wrote: Hi Marius, I haven't heard of... liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr

Re: [Lift] Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2010-01-09 Thread Alex Boisvert
This change has now been pushed to master. LiftRules.finder() has been removed since it offered (unsafe) duplicate functionality. cheers, alex On Mon, Jan 4, 2010 at 4:03 PM, Alex Boisvert alex.boisv...@gmail.comwrote: Instead of: LiftRules.getResourceAsStream(name: String): Box

Re: [Lift] new line to br /

2010-01-05 Thread Alex Boisvert
The problem is that you're creating a String (not a NodeSeq) and the String content is being escaped inside the wrapping elements. Try this, p { note.replyContent split '\n' map { Text(_) ++ br/ } reduceLeft (_ ++ _) } /p alex On Tue, Jan 5, 2010 at 9:24 AM, daiwhea daiw...@gmail.com wrote:

Re: [Lift] Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2010-01-04 Thread Alex Boisvert
Instead of: LiftRules.getResourceAsStream(name: String): Box[InputStream] I'd suggest: LiftRules.doWithResource[T](name: String)(f: InputStream = T): Box[T]. And if you need laziness, you could use one of the usual suspects: lazy val, unapplied function, FatLazy, etc. alex On Thu, Dec 31,

Re: [Lift] Re: Snippet lifetime

2009-12-29 Thread Alex Boisvert
I found RequestVar surprising/confusing at first, too, because I assumed its scope would be a single request -- but clearly isn't. My suggestion here would be to rename RequestVar to PageVar since that's closer to its lifecycle and rename TransientRequestVar to RequestVar based on my initial

Re: [Lift] Form submit and Ajax

2009-12-29 Thread Alex Boisvert
On Tue, Dec 29, 2009 at 7:44 AM, greekscala hellectro...@gmail.com wrote: Hello, In a previous post I had the problem that my form was not send with ajax. With the help of Marius and Timothy I got it working. (http://groups.google.com/group/liftweb/browse_thread/thread/

Re: [Lift] Re: Lift with MS Access database

2009-12-29 Thread Alex Boisvert
On Sun, Dec 27, 2009 at 6:56 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Although in general I think that instead of Lift hardcoding its set of drivers, it should allow anyone to subclass DriverType and supply it to Lift. Already supported. See

Re: [Lift] Re: Form submit and Ajax

2009-12-29 Thread Alex Boisvert
On Tue, Dec 29, 2009 at 11:46 AM, greekscala hellectro...@gmail.com wrote: Is this a lift way workflow? - show a page with a form - data is submitted to snippet - data is evaluated - get other fragments/templates and bind the values for them - invoke SetHtml that should replace div content

Re: [Lift] Re: Form submit and Ajax

2009-12-29 Thread Alex Boisvert
On Tue, Dec 29, 2009 at 12:59 PM, greekscala hellectro...@gmail.com wrote: class Test { object name extends RequestVar[String](init) def render(xml: NodeSeq): NodeSeq = { def printName(): JsCmd = { Log.debug(name = + name.is) JsCmds.Alert(an ajax response! + name.is) }

Re: [Lift] Snippet lifetime

2009-12-28 Thread Alex Boisvert
On Mon, Dec 28, 2009 at 8:04 AM, Adam Warski a...@warski.org wrote: Hello, Yes, the article is out of date now... Lift now makes sure that multiple references to a single snippet in the same request context use the same instance of that snippet. I see, so the rationale behind using

Re: [Lift] Re: Snippet lifetime

2009-12-28 Thread Alex Boisvert
StatefulSnippets lifetime is manually managed and may be chained to other pages by using link() or redirectTo() such that the same instance is reused for those targets. (And StatefulSnippet extends DispatchSnippet) alex On Mon, Dec 28, 2009 at 10:08 AM, Naftoli Gugenheim

[Lift] Directory structure

2009-12-20 Thread Alex Boisvert
While we're discussing lift-core in a separate thread, I wanted to bring up a minor annoyance All module directories in the repository start with lift-, boisv...@smudge:~/git/liftweb$ tree -L 2 | grep lift |-- lift-archetypes | |-- lift-archetype-basic | |-- lift-archetype-blank | |--

Re: [Lift] Directory structure

2009-12-20 Thread Alex Boisvert
on 'lift-' prefix if you want me to. Cheers, Indrajit On 21/12/09 1:29 AM, Alex Boisvert wrote: While we're discussing lift-core in a separate thread, I wanted to bring up a minor annoyance All module directories in the repository start with lift-, boisv...@smudge:~/git/liftweb

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Alex Boisvert
: Hi Alex, I found new ModalDialog(html: NodeSeq, css: Box[JsObj]), the parameter 'css' type is JsObj instead of String. Could you tell me the reason? I'm working on a customer widgets and have the same case. On Thu, Dec 3, 2009 at 10:37 PM, Alex Boisvert alex.boisv...@gmail.comwrote

Re: [Lift] Re: Highlighting even/odd rows in a table

2009-12-17 Thread Alex Boisvert
of my projects. Cheers, Tim On Dec 17, 2:07 am, Ross Mellgren dri...@gmail.com wrote: Oh, speaking of jquery, tablesorter also has a zebra plugin that does this, so if you're tablesorter you can use that also. -Ross On Dec 16, 2009, at 9:01 PM, Alex Boisvert wrote: Or delegate

Re: [Lift] Confused about validation

2009-12-17 Thread Alex Boisvert
Indeed, if you're building a lot of forms, you quickly realize that Lift currently requires fair amount of code for forms that are not backed by mapper elements. There's space there for better abstrations / DSL improvements to reduce boilerplate -- similar to what David has built for the new

Re: [Lift] heapsize

2009-12-17 Thread Alex Boisvert
On Thu, Dec 17, 2009 at 10:56 AM, jack jack.wid...@gmail.com wrote: How do I increase the heapsize in Lift? Nothing Lift-specific here. Just the usual java -Xmx2048m (or whichever amount you need). If your starting Lift via Tomcat/Jetty, then usually you place this in one of the startup

Re: [Lift] Confused about validation

2009-12-17 Thread Alex Boisvert
I think the idea is to be a little more declarative on defining the form and separate the low-level concerns of handling all the events to a more generic form handler, object ShipToForm extends Form { val name = Variable[String](customerName) val address1: Variable[String]() val address2:

Re: [Lift] Highlighting even/odd rows in a table

2009-12-16 Thread Alex Boisvert
Or delegate the work to the browser using jQuery + CSS http://docs.jquery.com/Selectors/odd alex On Wed, Dec 16, 2009 at 4:04 PM, Ross Mellgren dri...@gmail.com wrote: You could use customers.zipWithIndex.flatMap({ case (customer, index) = ... instead of customers.flatMap(customer = to

Re: [Lift] Re: Documentation

2009-12-15 Thread Alex Boisvert
And from there, my suggestion would be to experiment with existing sample Lift applications such as those in http://github.com/dpp/lift-samples to get the feel for Lift from working code. alex On Tue, Dec 15, 2009 at 12:49 PM, Randinn rand...@gmail.com wrote: My suggestion is to get

Re: [Lift] Fake Data Driven Development

2009-12-13 Thread Alex Boisvert
ScalaCheck http://code.google.com/p/scalacheck/ has a nice API for generating data where you can plug your own generators. http://code.google.com/p/scalacheck/wiki/UserGuide It doesn't directly generate data to the database, XML, or any other specific format but you can use it to feed data into

Re: [Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-13 Thread Alex Boisvert
One comment I would make about Parallelizer is that it creates a new thread pool every time it's invoked. This isn't very efficient but more importantly, it's somewhat reckless. Imagine if your home page or your search function are invoked simultaneously by 10 users (or more). The application

Re: [Lift] Jetty/Derby, unable to redeploy hot changes (FIXED)

2009-12-13 Thread Alex Boisvert
Yes, putting any JDBC driver into the container's classpath (i.e., Jetty) is the better way. Otherwise, if you put the driver into the .war, you'll most likely end up with class / permgen leakage if you redeploy your webapp. (Because java.sql.Driver holds a reference to all loaded drivers)

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-13 Thread Alex Boisvert
On Sat, Dec 12, 2009 at 11:06 AM, Marius marius.dan...@gmail.com wrote: That is certainly one way to go but personally I'm not at all a fan of this string literals approach,. For instance if Scala would not have had built in XML support using XML as string literals Lift would probably loose

Re: [Lift] Scala to JavaScript DSL ...

2009-12-13 Thread Alex Boisvert
scala.reflect.Code (aka expression trees / AST manipulation) would actually be great -- what was proposed was far from it, though. As I understand it, this approach has not advanced in about 2 years. I'd be happy to hear if it was a viable option, even if only on 2.8. alex On Sun, Dec 13,

Re: [Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-13 Thread Alex Boisvert
Use LiftRules.unloadHooks.append(myShutdownHook) From LiftRules.scala: /** * Hooks to be run when LiftServlet.destroy is called. */ val unloadHooks = RulesSeq[() = Unit] alex On Sun, Dec 13, 2009 at 6:45 PM, Dave Briccetti da...@davebsoft.com wrote: Very helpful suggestions. Thanks.

Re: [Lift] Scala to JavaScript DSL ...

2009-12-12 Thread Alex Boisvert
Personally, I would rather go with a JavaScript literal and a simple templating mechanism for substitution/binding of Javascript literals + Json objects that would drive dynamic code (if conditionals, for-loops, ...). Taking your example, def myFunc = { function myFunc( param1, param2 ) {

Re: [Lift] Re: Welcome Peter Robinett to the Lift committers

2009-12-10 Thread Alex Boisvert
Welcome Peter! I'm also looking forward to your flot improvements :) On Wed, Dec 9, 2009 at 11:32 PM, Marius marius.dan...@gmail.com wrote: Welcome Peter !! On Dec 10, 12:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Peter Robinett to the

Re: [Lift] re: what changes would need to be made so LIFT can work with HTML5

2009-12-09 Thread Alex Boisvert
feeder.of.the.be...@gmail.comwrote: On Mon, Dec 7, 2009 at 3:49 PM, Alex Boisvert alex.boisv...@gmail.comwrote: On Sun, Dec 6, 2009 at 7:43 PM, James Black planiturth...@gmail.comwrote: I tried S.setDocType and got this error, using LIFT 1.0.1, with this bit of code in Boot.scala: class Boot

Re: [Lift] how to keep last submited form field value

2009-12-08 Thread Alex Boisvert
You should use a SessionVar or a stateful snippet. Here's how you would use a SessionVar, object lastSubmittedDate extends SessionVar[Date](new Date) ... bind(..., date - SHtml.text(lastSubmittedDate.is, lastSubmittedDate(_), class - datepicker), alex On

Re: [Lift] Re: Multi-Database Transactions

2009-12-08 Thread Alex Boisvert
On Tue, Dec 8, 2009 at 11:57 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: deadfolk deadf...@gmail.com writes: Hi Jeppe - thanks for your response. So, am I correct in saying that I just need to do something like this? (not tested code - just an approximation) //Assuming fooDb and

Re: [Lift] Re: Race conditions / database transaction isolation levels

2009-12-07 Thread Alex Boisvert
On Mon, Dec 7, 2009 at 8:02 AM, cody koeninger c...@koeninger.org wrote: On Dec 6, 9:16 pm, Alex Boisvert alex.boisv...@gmail.com wrote: Lift's mapper doesn't change the default isolation level of your connections, nor does it make explicit use of pessimistic concurrency control

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-07 Thread Alex Boisvert
On Sun, Dec 6, 2009 at 8:28 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Sun, Dec 6, 2009 at 7:25 PM, Alex Boisvert alex.boisv...@gmail.comwrote: Using the latest and greatest (master branch), I can't reproduce the MatchError but I can reproduce the issue with the attribute being

Re: [Lift] Newbie on Lift Scala: Build in class source code?

2009-12-06 Thread Alex Boisvert
Part of the source for these objects is automatically created when you generate your lift app using the Maven archetype. For example, you'll find the source to the User class unde src/main/scala/com/liftworkshop/model/User.scala. For classes that are part of the framework, such as MegaProtoUser

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-06 Thread Alex Boisvert
Using the latest and greatest (master branch), I can't reproduce the MatchError but I can reproduce the issue with the attribute being generated if the value is null. I'll fix it tomorrow morning. alex On Sun, Dec 6, 2009 at 5:59 AM, Alex Black a...@alexblack.ca wrote: If you output null

Re: [Lift] Re: Having trouble figuring out how to get a form to submit without submitting the page, using ajaxForm

2009-12-05 Thread Alex Boisvert
I think the idiomatic way to handle ajax form submission is to use SHtml.ajaxForm(body, onSubmit, postSubmit): /** * Takes a form and wraps it so that it will be submitted via AJAX. This also * takes a parameter for script code that will be executed after the form has been submitted. *

Re: [Lift] re: what changes would need to be made so LIFT can work with HTML5

2009-12-05 Thread Alex Boisvert
Have you tried calling S.setDocType(!DOCTYPE html) ? alex On Sat, Dec 5, 2009 at 8:29 PM, James Black planiturth...@gmail.com wrote: I tried to use HTML5 doctype and LIFT threw an error. It complained about line 1: !DOCTYPE html html ... /html -- You received this message because

Re: [Lift] Newbie question: class not foudn

2009-12-05 Thread Alex Boisvert
The signature of a snippet should be: def mySnippet(xhtml: NodeSeq): NodeSeq = { ... } So you should add the xhtml: NodeSeq argument to your snippet function. It's always a good idea to explicitly specify the return type as well -- type inference can sometimes cause surprise. alex On Sat,

Re: [Lift] Unexpected type on a custom trait

2009-12-05 Thread Alex Boisvert
Your issue is that u.customer returns a MappedLongForeignKey instance, not a Customer. You probably want to use u.customer.get or u.customer.can or something like that. alex On Sat, Dec 5, 2009 at 5:50 PM, Franz Bettag fr...@bett.ag wrote: Heyho, i'm running 1.1-m7 and having the following

Re: [Lift] Re: How to configure two database connection in Lift?

2009-12-05 Thread Alex Boisvert
I haven't used multiple connections myself, but I think you have two issues, 1) The default connection identifier is lift so you have to define a connection with that name otherwise you'll have to override all Mapper objects to use a different connection. 2) Your dbCalculateConnectionIdentifier

Re: [Lift] Schemify has SQL Exception, IDENIFY instead of IDENTIFY is in the SQL query

2009-12-04 Thread Alex Boisvert
No need to open a ticket, I've fixed the typo directly in master. commit 090aff91793a8b9cc67f55ff77e7407c46c2545b Author: Alex Boisvert alex.boisv...@gmail.com Date: Fri Dec 4 07:05:06 2009 -0800 Fixed typo in DerbyDriver.integerIndexColumnType: IDENITY - IDENTITY (Change recorded

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Alex Boisvert
On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, When I use ModalDialog I want to setup the css but fail, My code would be: ModalDialog(someHtml, top: '10px') I found the ModalDialog code at Lift: class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd {

Re: [Lift] JSON Reponses

2009-12-03 Thread Alex Boisvert
On Thu, Dec 3, 2009 at 9:06 AM, deadfolk deadf...@gmail.com wrote: I'm still at the evaluation stage of Lift, so please forgive my ignorance, but I cannot figure out how to render any non-XML reponses. I'm looking to create a simple web service which can send reponses back in either XML or

Re: [Lift] Jetty question

2009-12-02 Thread Alex Boisvert
Probably better asked on the Jetty mailing list... but... http://wiki.eclipse.org/Jetty is the new site for Jetty 7+ documentation. It's still sparse but they are moving/updating the documentation incrementally. Which page(s) asked you for registration? alex On Wed, Dec 2, 2009 at 9:55 AM,

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-01 Thread Alex Boisvert
You can use SHtml.checkbox() to easily generate the checkbox, bind(..., checkbox - SHtml.checkbox(isChecked, checked = if (checked) doSomething()) ) The first parameter is whether the checkbox should be checked by default. The second parameter is a function to do something when form is

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-01 Thread Alex Boisvert
: Thanks Alex. That would work, but I'm looking for a more generic solution. Restating the problem: Based on some condition I want to generate an attribute or not generate an attribute, e.g.: myElement myAttribute=value / OR myElement - Alex On Dec 1, 6:23 pm, Alex Boisvert alex.boisv

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
Where is joinOtherOrders()called within your code? alex On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li wrote: Hey Lifters, I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements.

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
An easy way to determine who's calling is simply to print the call stack by adding the following line in your method, (new Exception).printStackTrace alex On Sun, Nov 29, 2009 at 9:24 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Nov 29, 2009 at 7:24 AM, Hannes

[Lift] Re: Lift Scala style.

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 11:59 AM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: First, Alex Boisvert suggested that S.init be renamed to S.doWith to have more consistency with Req and LiftSession. At least internally, I think that the consensus was that this wasn't necessarily appropriate

[Lift] Re: Lift Scala style.

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 1:00 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: The other thing I'm interested in is the named and default parameters syntax. The first place I know of that could benefit from this is in the multiple definitions of bind() - what others are folks aware of? One

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: On Mon, Nov 16, 2009 at 4:28 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'm seeing a lot of: [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in repository

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 4:26 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Speaking of warnings, which do you prefer (see patch below): 1) Explicit types on val extractors (as it is today) 2) One-liner with no types (proposed) We could save 4 warnings... Here's the cost of the

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: Oops... I didn't realize I'd committed the pom with that in! I've no problem putting the extra warnings into a profile. Does Scala have an equivalent of or support the @SuppressWarnings annotation that you have

[Lift] lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-12 Thread Alex Boisvert
Can one of our resident Maven experts quickly look at: http://github.com/dpp/liftweb/issues/#issue/166 I took a brief look at the poms but couldn't figure why Maven was including classes from lift-common and lift-actor into lift-webkit. It is a feature of the maven-bundle-plugin? I can take

[Lift] Re: Jetty PermGen

2009-07-14 Thread Alex Boisvert
It typically means you are leaking classes through the classloader hierarchy. e.g. A class in your webapp classloader is referenced in a parent classloader. Common culprits are JDBC drivers which should be placed in Jetty's bootstrap classloader and not packaged in your webapp's lib directory

[Lift] Re: organizing views of synchronous streams

2009-07-07 Thread Alex Boisvert
For what it's worth, the Business Process Modeling Notation (BPMN) uses a similar notation to convey concurrent events, actions, etc. http://www.scribd.com/doc/2334639/Introduction-to-BPMN (See pages 5, 7, 9 for diagrams with pools and lanes) http://www.eclipse.org/bpmn/images/screenshots/ Some

[Lift] Re: is there a name for this pattern?

2009-06-19 Thread Alex Boisvert
On Thu, Jun 18, 2009 at 11:18 PM, Eric Bowman ebow...@boboco.ie wrote: The basic trick where a superclass has its subclass as a type parameter, e.g. class User extends MegaProtoUser[User] I've run into this before, I remember struggling to get it, then getting it, but I can't recall the

[Lift] Re: OSGi support for Lift

2009-06-10 Thread Alex Boisvert
and please keep on! I have to deal with some build issues, and will take a look at that tomorrow. Heiko 2009/5/12 Alex Boisvert boisv...@intalio.com That was it. I pulled again from git and now I can start the examples-osgi app. However, one more nitpick... I can load index.htm

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

2009-06-10 Thread Alex Boisvert
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 have to have a hard dependency on Jetty. It may be possible to do

[Lift] Re: Welcome Alexander Kiok, you're the 1,000th member of the Lift community

2009-05-22 Thread Alex Boisvert
David, You just keep it comin' do you? :) Congrats on Innovation Games Online! I've ordered both Beginning Scala and the Definitive Guide to Lift yesterday and will likely buy additional copies to pass around at the office. Big hello to the thousand of you out there! Hope you enjoy Lift +

[Lift] Re: Snippet name clashes

2009-05-20 Thread Alex Boisvert
Maybe an optional package attribute? e.g., lift:snippet package=com.example type=Foo.bar form=POST ... /lift:snippet alex On Wed, May 20, 2009 at 9:19 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, May 19, 2009 at 9:28 PM, Heiko Seeberger

[Lift] Re: Snippet name clashes

2009-05-20 Thread Alex Boisvert
2009/5/20 David Pollak feeder.of.the.be...@gmail.com On Wed, May 20, 2009 at 9:38 AM, Alex Boisvert boisv...@intalio.comwrote: Maybe an optional package attribute? e.g., lift:snippet package=com.example type=Foo.bar form=POST ... /lift:snippet Dude... you're so 2008

[Lift] Re: [patch] work around for errors running unit tests in IDEA/NetBeans

2009-05-17 Thread Alex Boisvert
Done. On Sat, May 9, 2009 at 6:50 AM, David Pollak feeder.of.the.be...@gmail.comwrote: Folks, I think this patch is cool. Can one of the committers integrate it? Thanks, David On Tue, Apr 28, 2009 at 8:49 AM, James Strachan james.strac...@gmail.comwrote: I was trying out various

[Lift] Re: Why do geeks like to use the language of ancient Ashdod instead of koine Greek or simple English?

2009-05-17 Thread Alex Boisvert
Hi Johnie, Like many other words, funky has loose and varying meanings. I'm not a native English speaker myself so I asked my wife what funky means and she said interesting, strange and unusual. The American Heritage dictionaryhttp://www.bartleby.com/61/63/F0366300.htmlsays: When asked which

[Lift] Re: OSGi support for Lift

2009-05-13 Thread Alex Boisvert
Hi Heiko, On Tue, May 12, 2009 at 11:21 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: This is an interesting requirement and could be feasible but not trivial. Please keep in mind, that in OSGi *each* application is (potentially) made up from several bundles that can be

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
Hi Heiko, Just a few basic questions I downloaded and ran PAX runner, ./pax-run.sh --profiles=log,scala,felix.webconsole,web then installed the examples-osgi bundle, - install file:///home/boisvert/git/liftweb/sites/examples-osgi/hello/target/examples-osgi-hello-1.1-SNAPSHOT.jar Bundle

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
. Any idea? I'm attaching the full log in case it's helpful. alex On Tue, May 12, 2009 at 10:08 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi Alex, 2009/5/12 Alex Boisvert boisv...@intalio.com I downloaded and ran PAX runner, ./pax-run.sh --profiles=log,scala,felix.webconsole

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
and retried but I'm getting the same error. Any idea? I'm attaching the full log in case it's helpful. alex On Tue, May 12, 2009 at 10:08 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi Alex, 2009/5/12 Alex Boisvert boisv...@intalio.com I downloaded and ran PAX runner

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
build issues, and will take a look at that tomorrow. Heiko 2009/5/12 Alex Boisvert boisv...@intalio.com That was it. I pulled again from git and now I can start the examples-osgi app. However, one more nitpick... I can load index.htm but the snippet isn't rendered correctly because some

[Lift] Re: Alternating row colors

2009-05-11 Thread Alex Boisvert
Here's another approach that I used in a small project recently... I wrote a small stateful utility class, class OddOrEven { private var isEven = true def getAndToggle: String = { val s = toString isEven = (!isEven) s } override def toString = if (isEven) even else odd } and

[Lift] Re: Lift and interoperability

2009-05-11 Thread Alex Boisvert
Hi Glenn, I don't understand where you're coming from either... I've integrated Lift with a different persistence layer (home-grown), another authentication system (Tempo RBAC), integrated it with existing Java libraries and Spring MVC components without trouble. So far, I haven't run into a

[Lift] File - Class naming

2009-03-25 Thread Alex Boisvert
Hi Lifters, How would you feel about renaming .scala files to match the main class/trait in them? Let me give you a few examples, lift/src/main/scala/net/liftweb/http/auth/Authentication.scala currently holds a trait named HttpAuthentication. I'd like to rename it HttpAuthentication.scala

[Lift] Re: File - Class naming

2009-03-25 Thread Alex Boisvert
(locating code). I do, however, like the flexibility that Scala has about being able to put minor classes along in the same file, so I wouldn't want to make the requirement as strict as Java does. Derek On Wed, Mar 25, 2009 at 1:04 AM, Alex Boisvert boisv...@intalio.comwrote: Hi Lifters, How

[Lift] Re: File - Class naming

2009-03-25 Thread Alex Boisvert
java code- bases is a royal pain in the backside. Cheers, Tim On Mar 25, 2:54 pm, Alex Boisvert boisv...@intalio.com wrote: I'll wait a little more before I commit the changes in case others have feedback. I'm working my way through building each project with Buildr... and I'll

[Lift] Re: File - Class naming

2009-03-25 Thread Alex Boisvert
2009/3/25 Timothy Perrett timo...@getintheloop.eu Ah ok I see this - so your not doing any splitting? just re-naming? What rational would you apply to decide on most significant class / object? Yes, just renaming. Right now, I'd say I'm picking the class that most closely matches the

[Lift] Re: You guys rock!

2009-03-11 Thread Alex Boisvert
On Wed, Mar 11, 2009 at 1:55 AM, etorreborre etorrebo...@gmail.com wrote: Knowing that you can write specs which can be run as JUnit tests, can't the continuous testing plugin in Eclipse work with that? I'm using Eclipse 3.4 and neither ct-eclipse nor the MIT continuous testing tools seem to

[Lift] Re: You guys rock!

2009-03-11 Thread Alex Boisvert
On Wed, Mar 11, 2009 at 8:56 AM, Raoul Duke rao...@gmail.com wrote: Between Scala and Lift, ScalaCheck and Specs, Eclipse and Buildr, Jetty and JavaRebel, it's amazing to see how far the tools have evolved in the 2 years I've been following Scala. so... any good concise instructions on

[Lift] You guys rock!

2009-03-10 Thread Alex Boisvert
Between Scala and Lift, ScalaCheck and Specs, Eclipse and Buildr, Jetty and JavaRebel, it's amazing to see how far the tools have evolved in the 2 years I've been following Scala. I had my epiphany today while 'upgrading' a small internal time-tracking webapp. Code, save, refresh... BAM!

[Lift] Re: Eclipse or Netbeans

2009-03-09 Thread Alex Boisvert
I've recently switched back into Eclipse (from jEdit) based on the latest plugin version. Works very well now. alex On Mon, Mar 9, 2009 at 1:37 PM, Lee Mighdoll leemighd...@gmail.com wrote: I switched to NetBeans recently because by all reports the scala plugin for NetBeans is more stable.

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Alex Boisvert
, 2009 at 4:43 PM, Alex Boisvert boisv...@intalio.comwrote: Can you post your web.xml? On Mon, Mar 2, 2009 at 3:50 PM, Meredith Gregory lgreg.mered...@gmail.com wrote: Marc, Thanks for the link! BTW, i'm looking at that sources from the Jersey jar and it appears

[Lift] Re: [Jersey] jersey as filter

2009-03-02 Thread Alex Boisvert
[_]] = Array(interface com.sun.jersey.spi.container.ContainerListener) // i was expecting to see Servlet, ServletConfig, Filter, Serializable in this list. On Mon, Mar 2, 2009 at 5:13 PM, Alex Boisvert boisv...@intalio.comwrote: My guess would be that you have duplicate servlet-api-2.x.jar in your

[Lift] Re: Is it legal to update a SessionVar in LiftRules.rewrite?

2009-02-08 Thread Alex Boisvert
correctly. Hope this helps. Thanks, David On Sat, Feb 7, 2009 at 8:44 PM, Alex Boisvert boisv...@intalio.comwrote: On Sat, Feb 7, 2009 at 6:59 PM, Alex Boisvert boisv...@intalio.comwrote: object Session { object foo extends RequestVar[Int](S.param(foo).map(_.toInt) openOr (1)) } Sorry

  1   2   >