[Lift] Re: Latest NetBeans plugin and NB 6.5 RC2 is wicked great

2008-11-08 Thread Alex Boisvert
On Sat, Nov 8, 2008 at 9:10 AM, Miles Sabin [EMAIL PROTECTED] wrote: This is pretty minor tho' ... Eclipse is just showing a subset of the errors in a known to be non-compiling project. I agree things should be better, but you'll find that as you fix the errors in your project the set of

[Lift] Re: Latest NetBeans plugin and NB 6.5 RC2 is wicked great

2008-11-08 Thread Alex Boisvert
On Fri, Nov 7, 2008 at 11:22 AM, Miles Sabin [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 6:57 PM, Alex Boisvert [EMAIL PROTECTED] wrote: From a user perspective, I'd say it's getting better every month but still has many rough edges. For example, it's quite easy to get the compile

[Lift] Re: Jetty and JNDI

2008-11-11 Thread Alex Boisvert
Hi Derek, I also question why you'd want to have either EntityManager/EntityManagerFactory in JNDI. It seems more flexible and portable across appservers to create them directly in your code, or by some kind of dependency injection. Noaways JNDI seems to used mostly for appserver-managed

[Lift] Re: Olio

2008-11-14 Thread Alex Boisvert
See http://incubator.apache.org/olio/ On Fri, Nov 14, 2008 at 5:08 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Where can I find some documentation or samples? thnks Giovanni On Nov 14, 2:01 am, Jorge Ortiz [EMAIL PROTECTED] wrote: There's a new Apache Incubator project called Olio:

[Lift] Re: REST CRUD web service

2008-11-18 Thread Alex Boisvert
On Mon, Nov 17, 2008 at 9:04 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Everything you need to know is here: http://www.oracle.com/technology/documentation/berkeley-db/xml/index.html It's an Apache Software License:

[Lift] Re: REST CRUD web service

2008-11-18 Thread Alex Boisvert
or libraries. This says you have to release the source code of your application, if you use the open source license for BDB. On Tue, Nov 18, 2008 at 9:27 AM, Alex Boisvert [EMAIL PROTECTED]wrote: On Mon, Nov 17, 2008 at 9:04 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Everything you need

[Lift] Re: Derby ij quickstart?

2008-11-23 Thread Alex Boisvert
You also need to use the derbyclient.jar e.g. java -cp derbytools-10.2.2.0.jar:derbyclient-10.2.2.0.jar or use the derby-10.2.2.10.jar which includes all classes in a single .jar instead of the module .jars. alex On Sun, Nov 23, 2008 at 10:37 AM, David Stein [EMAIL PROTECTED] wrote: I

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Alex Boisvert
On Tue, Dec 2, 2008 at 10:24 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: If you add (non-overriden) fields to a val, they'll always be invoked via reflection, which takes a performance hit. Objects, on the other hand, define their own class so reflection isn't necessary. Can you give an

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Alex Boisvert
Baz.exc Singleton types get their own .class file. Structural types use reflection. --j On Tue, Dec 2, 2008 at 12:33 PM, Alex Boisvert [EMAIL PROTECTED]wrote: On Tue, Dec 2, 2008 at 10:24 AM, Jorge Ortiz [EMAIL PROTECTED]wrote: If you add (non-overriden) fields to a val, they'll always

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Alex Boisvert
.. Scala seems smarter :) Br's, Marius On Dec 2, 9:42 pm, Alex Boisvert [EMAIL PROTECTED] wrote: Ok, I see now. I don't think I've ever written something like that... I normally just implement a trait in anonymous classes -- I don't usually extend it. It's interesting to see

[Lift] Re: Writing files outside the context of WAR?

2008-12-07 Thread Alex Boisvert
If you're looking for a portable way to write temporary stuff on the file system from a servlet, File tempdir = (File) getServletConfig().getServletContext().getAttribute(javax.servlet.context.tempdir); alex On Sun, Dec 7, 2008 at 2:25 PM, John Nilsson [EMAIL PROTECTED] wrote: Use Varnish?

[Lift] Re: Can or Box or something else

2008-12-20 Thread Alex Boisvert
How about Result? e.g. something like, sealed trait Result[+T] case class Expected(t: T) extends Result[T] case class Failure[T](msg: String) extends Result[T] case object Empty extends Result[Nothing] alex --~--~-~--~~~---~--~~ You received this message because

[Lift] Re: mapper vs record

2009-01-25 Thread Alex Boisvert
Okidooke. Thanks for the clarification. On Sun, Jan 25, 2009 at 8:40 AM, Marius marius.dan...@gmail.com wrote: Record is not finished yet and yes it is the new mapper. So please use Mapper. AFAIK Record is targeted for Lift 1.1. Br's, Marius On Jan 25, 6:35 pm, Alex Boisvert boisv

[Lift] JQuery corners

2009-02-05 Thread Alex Boisvert
Lifteds, I'm trying to use jQuery cornershttp://www.atblabs.com/jquery.corners.htmlin conjunction with Lift... so I added the following in my header: script id=jquery-corners src=jquery.corners.min.js type=text/javascript/ script type=text/javascript $(document).ready(function(){

[Lift] Re: JQuery corners

2009-02-05 Thread Alex Boisvert
On Thu, Feb 5, 2009 at 12:28 PM, Marius marius.dan...@gmail.com wrote: Do you have the actual markup without applying the corners and after applying it? The DOM trees are exactly the same, except for the unique ids that Lift generate for the field names. What does it mean in breaks

[Lift] Re: JQuery corners

2009-02-05 Thread Alex Boisvert
Here's the page source. (Please forgive the CSS mess... this is a work in progress...) alex On Thu, Feb 5, 2009 at 2:48 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Thu, Feb 5, 2009 at 2:46 PM, Alex Boisvert boisv...@intalio.comwrote: On Thu, Feb 5, 2009 at 12:28 PM, Marius

[Lift] Re: JQuery corners

2009-02-05 Thread Alex Boisvert
On Thu, Feb 5, 2009 at 3:02 PM, David Pollak feeder.of.the.be...@gmail.comwrote: Alex, I'm not seeing where the form is on the page. Can you isolate the location of the form so we can see what kind of form is being generated... and perhaps also include the XHTML that invokes the snippet

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

2009-02-07 Thread Alex Boisvert
Hi, Let say I have a session variable named foo, object Session { object foo extends RequestVar[Int](S.param(foo).map(_.toInt) openOr (1)) } It is legal to update this session variable in a rewrite rule? This is roughtly the code I have: LiftRules.rewrite.prepend(NamedPF(Foo) { case

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

2009-02-07 Thread Alex Boisvert
On Sat, Feb 7, 2009 at 6:59 PM, Alex Boisvert boisv...@intalio.com wrote: object Session { object foo extends RequestVar[Int](S.param(foo).map(_.toInt) openOr (1)) } Sorry, I made a typo here.. it should read: object foo extends SessionVar[Int](S.param(foo).map(_.toInt) openOr (1

[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

[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: 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] 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: 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] 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: 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] 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: 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: [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: 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: 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: 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: 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: 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: 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] 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: 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

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

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] 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] 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] 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] 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] 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: 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] 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: 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] 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] 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] 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] 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] 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] 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:

[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] 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

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] 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] 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-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

  1   2   >