Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Sorry - what's the Windows (eclipse) equivalent--i.e., what does that line do? Also I wasn't sure what you meant by 'comments around my code.' Thanks! - David Pollak wrote: On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim wrote: >

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Could you give me exact instructions what to do to test my code on 2.8? Thanks. 2010/2/7 David Pollak > > > On Sun, Feb 7, 2010 at 1:01 PM, Naftoli Gugenheim wrote: > >> So if I get around to it would it indeed be preferable to point it to >> SHtml? >> > > Ch

[Lift] Logging error when building lift

2010-02-09 Thread Naftoli Gugenheim
Does this mean I'm not up to date? Or were the tests not updated with the change to logging? When building Lift I get --- T E S T S --- Running net.liftweb.webapptest.ToHeadUsagesTest SLF4J: Cl

Re: [Lift] Helpers.bind question

2010-02-09 Thread Naftoli Gugenheim
You have two options: scala.xml.Unparsed(theString), and parsing it explicitly into a NodeSeq (see scala.xml.XML or Lift's equivalent which I haven't used but believe exists). - GA wrote: What we have here is a iphone native application that has the help scre

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-09 Thread Naftoli Gugenheim
dsen wrote: Naftoli Gugenheim writes: > Wait--are you saying TimeHelpers should use ConversionRules and > ConversionRules should *not* reference TimeHelpers? I think so (without knowing too much about the code :-) > If so it would involve a lot of refactoring, In that case, suggest w

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-09 Thread Naftoli Gugenheim
re you in? - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: > Any thoughts on this? > Basically, to restate the questions in a different way. > - I would like to add overridable methods to MappedDate/Time/DateTime, to > allow controlling

Re: [Lift] Welcome javier Goday to the Lift committers

2010-02-09 Thread Naftoli Gugenheim
Welcome! - David Pollak wrote: Folks, Please join me in welcoming Javier Goday to the Lift committers. Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the crowd goes wild

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-08 Thread Naftoli Gugenheim
rsionRules uses TimeHelpers, and two-way dependencies are probably undesirable.) Should ConversionRules be in util rather than webkit? Thanks! --------- Naftoli Gugenheim wrote: In reverse order: Re #2, (a) that would create a two-way dependency between TimeHelpers and Conv

Re: [Lift] Support for page and snippet level localization

2010-02-08 Thread Naftoli Gugenheim
You can just have separate index html files for different locales, and when the user goes to /index (or / I suppose) Lift selects the correct one. - Hugo Palma wrote: Lift only support global resource bundles, i think it would be very useful if page and snippe

Re: [Lift] Re: **IMPORTANT** Lift ticketing system has moved to Assembla

2010-02-08 Thread Naftoli Gugenheim
Every alert message has at its end the link to change your alert settings. - Erkki Lindpere wrote: I noticed that Assembla sends a lot of spam (seems I get an e-mail for everything anyone does in there, including new users registering) These alerts can be turn

Re: [Lift] Why not SHtml?

2010-02-07 Thread Naftoli Gugenheim
David Pollak wrote: On Sun, Feb 7, 2010 at 1:01 PM, Naftoli Gugenheim wrote: > So if I get around to it would it indeed be preferable to point it to > SHtml? > Changing the code is one of the lowest priorities I could imagine. I would say that closing the stuff you've had on r

Re: [Lift] Why not SHtml?

2010-02-07 Thread Naftoli Gugenheim
So if I get around to it would it indeed be preferable to point it to SHtml? - David Pollak wrote: On Sun, Feb 7, 2010 at 12:47 PM, Naftoli Gugenheim wrote: > Hello. Why do Mapper's toForm implementations use S.fmapFunc directly > rather than usin

[Lift] Why not SHtml?

2010-02-07 Thread Naftoli Gugenheim
Hello. Why do Mapper's toForm implementations use S.fmapFunc directly rather than using SHtml? Is it not duplicate code? Thanks. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscri

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-07 Thread Naftoli Gugenheim
format string has a space before the a, it's invalid, etc.--not very user friendly. Is there a better way? - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: > David and all, > QUESTION 1 > I'm working on issue #258. Here are two options f

Re: [Lift] Redirect after post ?

2010-02-07 Thread Naftoli Gugenheim
If you are using a StatefulSnippet call redirectTo(S.uri) on in to load the same page with the same snippet instance. - Francois wrote: Hello guys, A common pattern to avoid duplicate form submission is to redirect after POST to a view of the result ( http:

Re: [Lift] Map to JsObj

2010-02-07 Thread Naftoli Gugenheim
Since Map implements Seq you can probably remove the '.toSeq'. - Ross Mellgren wrote: JsObj(map.toSeq: _*) ? -Ross On Feb 5, 2010, at 3:53 PM, Peter Robinett wrote: > I thought it would be something that already exists but I can't for > the life of me find o

Re: [Lift] lift-archetype-blank 1.1-M8 & 2.0-M1 : missing net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1

2010-02-07 Thread Naftoli Gugenheim
The blank archetype uses retrotranslator? Why? - Luke Nezda wrote: Hello - I am just getting started with Lift and used the "Hello, World" archetype lift-archetype-blank (tried 1.1-M8 & 2.0-M1) and both fail to build successfully from the specified public Mav

Re: [Lift] **IMPORTANT** HOLD OFF CREATING TICKETS ON ASSEMBLA

2010-02-07 Thread Naftoli Gugenheim
use to Indrajit and Naftoli for moving the tickets over the Assembla. Thanks guys! > > Cheers, Indrajit > > On 05/02/10 10:49 AM, Naftoli Gugenheim wrote: > >> Indrajit and I are working on importing tickets into Assembla. The first >> ticket on GitHub is #3 and there are

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-07 Thread Naftoli Gugenheim
or more correct than the other? Is it style or something else ? Cheers Jono On 5 February 2010 10:01, David Pollak wrote: > > > On Thu, Feb 4, 2010 at 2:58 PM, Naftoli Gugenheim wrote: > >> What does "wasn't able to" mean? >> Did you write >> override

Re: [Lift] Maven vs. "you don’t need to write anything that isn’t explicitly necessary for the tas k at hand"

2010-02-07 Thread Naftoli Gugenheim
How would Lift include it? You only download lift via maven -- until you type that command you don't have lift for it to include it. Is clicking a link to download a shell script easier than copy-pasting the command? Besides, just use eclipse with m2eclipse. :) -

Re: [Lift] Re: Single Table Inheritance

2010-02-05 Thread Naftoli Gugenheim
r time to answer my question I don't think I fully understand how to implement any of the suggested solutions, if you have the time I would love a code example :) Thanks a lot, Mads Hartmann Jensen On Feb 5, 7:34 pm, Naftoli Gugenheim wrote: > Basically, either use two protected LongMap

Re: [Lift] Re: S.params disappear?

2010-02-05 Thread Naftoli Gugenheim
If "any other proxy" includes nginx, then a lot of people! - chas wrote: CRUD. Yes. Exactly what I'm trying to do, and Tomcat developers are making it difficult. I can say that in Jetty 6, they are definitely passed. I don't know whether they are being strippe

Re: [Lift] LiftRules inconsistencies (including FactoryMaker grump)

2010-02-05 Thread Naftoli Gugenheim
One advantage is setting the value only in a session, request, or local (doWith) scope. - Ross Mellgren wrote: In my experience, I found that the functionality of the FactoryMakers was very flexible (and I could see the utility of that), but that the document

Re: [Lift] Re: Single Table Inheritance

2010-02-05 Thread Naftoli Gugenheim
ask. - Mads Hartmann wrote: Naftoli would you please re-post your solution :) I could really use the help On Feb 5, 6:56 pm, Naftoli Gugenheim wrote: > Peek --www.getpeek.com > Please forward any bad messages to feedb...@getpe

Re: [Lift] Re: Single Table Inheritance

2010-02-05 Thread Naftoli Gugenheim
b/browse_thread/thread/e2317e5dbaad4a65 > > If you have a solution I would love to hear it :) > > On Feb 5, 1:52 am, Naftoli Gugenheim wrote: >> Does my approach not work? >> >> - >> >> Mads Hartmann wrote: &

[Lift] **IMPORTANT** HOLD OFF CREATING TICKETS ON ASSEMBLA

2010-02-04 Thread Naftoli Gugenheim
Indrajit and I are working on importing tickets into Assembla. The first ticket on GitHub is #3 and there are now two on Assembla. So please don't create any Assembla tickets until further notice. Thanks! -- You received this message because you are subscribed to the Google Groups "Lift" group.

[Lift] Mapped(Date)(Time) formatter/parser

2010-02-04 Thread Naftoli Gugenheim
David and all, QUESTION 1 I'm working on issue #258. Here are two options for an overridable parser (applies to formatting too): 1. def parse(s: String): Box[Date] = ConversionRules.parseDate()(s) 2. def parse: String=>Box[Date] = ConversionRules.parseDate() What are the pros and cons, and which

Re: [Lift] Re: Single Table Inheritance

2010-02-04 Thread Naftoli Gugenheim
Does my approach not work? - Mads Hartmann wrote: Yeah that helped, my lab and scientist now looks like this: /--- code trait BaseSourceTrait[ T <:BaseSourceTrait[T] ] extends LongKeyedMapper[T] { self: T => overr

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
ng to silly; trying to get /crudify/path to / . Rewrite worked wonderfully. Cheers Jono On 5 February 2010 04:45, Jeppe Nejsum Madsen wrote: > Naftoli Gugenheim writes: > > > It's not overridable? > > Actually, I think it is :-) > > You

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
lay to make sure I'm not doing anything to silly; trying to get /crudify/path to / . Rewrite worked wonderfully. Cheers Jono On 5 February 2010 04:45, Jeppe Nejsum Madsen wrote: > Naftoli Gugenheim writes: > > > It's not overridable? > > Actually, I think it is :-)

Re: [Lift] Re: Out of Memory Errors Building Lift

2010-02-04 Thread Naftoli Gugenheim
Dll fragmentation? - Jeppe Nejsum Madsen wrote: Peter Robinett writes: > Hmm, I see that it's always when running YUI Compressor on lift- > webkit. I actually had issues with YUI Compressor in the past (http:// > groups.google.com/group/liftweb/browse_thread/

Re: [Lift] Single Table Inheritance

2010-02-04 Thread Naftoli Gugenheim
- Mads Hartmann Jensen wrote: hello Jeppe, In my project I've got the following three models: A discovery, a Scientist and a lab. The Discovery has been invented by someone, this is either a single scientist or sometimes a lab - This is easily done throu

Re: [Lift] Is it possible to use CRUDify snippets on non CRUDified pages?

2010-02-04 Thread Naftoli Gugenheim
It's not overridable? - Jeppe Nejsum Madsen wrote: Jonathan Ferguson writes: > I would like to have the list view of one of my model objects as my home > page. > > Can this done with out having the home page redirect to /mymodel/list ? I don't think you can

Re: [Lift] S.params disappear?

2010-02-04 Thread Naftoli Gugenheim
Just to double-check, can you acces the form data via the HTTPRequest? - chas wrote: Straight from the headers: Content-Type: application/x-www-form-urlencoded; charset=UTF-8 It's a regular form with four text fields. Simple. Wireshark shows that the packets

Re: [Lift] S.params disappear?

2010-02-03 Thread Naftoli Gugenheim
Is it a POST or a GET? On Wed, Feb 3, 2010 at 11:44 PM, wrote: > Thanks, David. > > That's a non-trivial exercise for me, so let me chase down another lead at > the moment. If that proves fruitless, I'll bite the bullet and get > something up on GitHub. > > Chas. > > > Please put together a repr

[Lift] Re: [Lift committers] We're moving our ticketing system to Assembla

2010-02-03 Thread Naftoli Gugenheim
Heh, Indrajit, now I know why you were excited about the GitHub API I used in my app! :) It seems to me that the labels in lift's github issues fall into 3 categories: owner, component, and status (some statuses should really be a separate boolean field, not mutually exclusive to other statuses)

Re: [Lift] Handle OOM

2010-02-03 Thread Naftoli Gugenheim
al message- From: Jim Barrows To: liftweb@googlegroups.com Sent: Wed, Feb 3, 2010 14:52:47 GMT+00:00 Subject: Re: [Lift] Handle OOM On Tue, Feb 2, 2010 at 9:18 PM, David Pollak wrote: > > > On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote: > >> Hmm... Can the code catch the ex

Re: [Lift] TableEditor enhancements

2010-02-03 Thread Naftoli Gugenheim
Is that possible without Ajax? - Jim Barrows wrote: On Wed, Feb 3, 2010 at 5:23 AM, Naftoli Gugenheim wrote: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you click save. >

Re: [Lift] Github issue browser

2010-02-03 Thread Naftoli Gugenheim
http://develop.github.com/p/issues.html seems to have them all. Thanks! Cheers, Indrajit On 03/02/10 7:57 PM, Naftoli Gugenheim wrote: > They have an API. I think the site is develop.github.com, or something like > that. > The source code is on github.com/nafg, although I think there it refere

Re: [Lift] Github issue browser

2010-02-03 Thread Naftoli Gugenheim
it on! - Indrajit Raychaudhuri wrote: Great stuff! Where did you get the github issue xml? Cheers, Indrajit On 03/02/10 10:14 AM, Naftoli Gugenheim wrote: > If anyone finds github's issue manager too limited, I made a teeny > little app that lets you list the issues in a more

Re: [Lift] TableEditor enhancements

2010-02-03 Thread Naftoli Gugenheim
Is there a wiki article? Otherwise are the scaladocs not sufficient? - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you

Re: [Lift] TableEditor enhancements

2010-02-03 Thread Naftoli Gugenheim
It's very different -- you edit the whole table on one screen at the same time, and changes are buffered until you click save. - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: [...] > They tickets are: > 299 - ItemsList should be have ref

Fwd: Re: [Lift] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
I replied to Heiko by mistake. - From: Naftoli Gugenheim To: liftweb@googlegroups.com; Subject: Re: [Lift] Github issue browser Date: Feb 2, 10:37 PM I should mention that I discovered it's super-easy to get a (existing) maven lift app on stax.net

Re: [Lift] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
p too :) ) - Heiko Seeberger wrote: Cool! Did not know there is an API. Heiko On Wednesday, February 3, 2010, Naftoli Gugenheim wrote: > If anyone finds github's issue manager too limited, I made a teeny little app > that lets you list the issues in a m

[Lift] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
If anyone finds github's issue manager too limited, I made a teeny little app that lets you list the issues in a more configurable way. All comments welcome! http://github-issues.naftoligug.staxapps.net/index You do not need to log in or register. Right now it only browses issues for dpp/liftweb.

Re: [Lift] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
Neat! Thanks! On Tue, Feb 2, 2010 at 11:18 PM, David Pollak wrote: > > > On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote: > >> Hmm... Can the code catch the exception and try to execute a script that >> restarts it? :) > > > T

Re: [Lift] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
gt; other monitoring service auto-restart in such cases. > On the other hand... you really shouldn't be getting a OOM error in > Java... > > On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim wrote: > >> Is there any way to have a webapp handle an out of memory exceptio

Re: [Lift] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
ped in a Character object and then wrapped in a Cons cell. > > The fix will improve performance radically. > > *Connected by MOTOBLUR™ on T-Mobile > * > > -Original message- > > *From: *Naftoli Gugenheim * > To: *liftweb * > Sent: *Wed, Feb 3, 2010 01:31

[Lift] Re: TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
Rather, display that not all items were saved. 2010/2/2 Naftoli Gugenheim : > Additionally ItemsListEditor will catch SQLExceptions in ItemsList.save and > display them. > > On Tue, Feb 2, 2010 at 8:26 PM, Naftoli Gugenheim > wrote: >> I have a patch on Review Board. I

[Lift] Re: TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
Additionally ItemsListEditor will catch SQLExceptions in ItemsList.save and display them. On Tue, Feb 2, 2010 at 8:26 PM, Naftoli Gugenheim wrote: > I have a patch on Review Board. I haven't asked on the list for the > committers to review it because I've needed to perf

Re: [Lift] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
If you scan the whole page wouldn't it affect performance? Or will you put a safeguard in the input field / processing query parameters? 2010/2/2 Naftoli Gugenheim : > Is that not a defect of the browsers? > > On Tue, Feb 2, 2010 at 7:57 PM, David Pollak > wrote: >>

Re: [Lift] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
Is that not a defect of the browsers? On Tue, Feb 2, 2010 at 7:57 PM, David Pollak wrote: > Folks, > > Turns out there's a security vulnerability in Lift.  It's possible to insert > control characters into input fields.  When the control characters are sent > back to the browser, the browser will

[Lift] TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
I have a patch on Review Board. I haven't asked on the list for the committers to review it because I've needed to perfect it still. It occurred to me that some of the tickets might not have been discussed on the list, so I want to do so now in case I didn't yet, although the enhancements included

[Lift] Control autoIncludeAjax by request?

2010-02-02 Thread Naftoli Gugenheim
Hi. I have an app that is used both on BlackBerrys and on the desktop. I would like to include the necessary ajax for garbage collection when the page is loaded on a desktop but not on the BlackBerry. However, autoIncludeAjax seems to take a LiftSession. Is such a thing possible? Thanks. -- You r

[Lift] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
Is there any way to have a webapp handle an out of memory exception semi-gracefully? E.g., release session, restart, something other than having to ssh into the server? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email

Re: [Lift] Re: How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
other question, how would I go about viewing the api after the scala doc is generated? Thanks! Strom On Feb 2, 11:02 pm, Naftoli Gugenheim wrote: > What about with -U ? > > - > > Strom wrote: > > Thanks Tim, > But I get this: > > C

Re: [Lift] Re: How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
What about with -U ? - Strom wrote: Thanks Tim, But I get this: C:\ws\liftweb>mvn clean scala:doc [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Lift Web Framework [INFO] Lift Base Components [INFO] Lift Common [INFO] Lift Actor [IN

Re: [Lift] Re: How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
Maybe check if it's on the scala-tools site. - Strom wrote: no On Feb 2, 10:38 pm, Naftoli Gugenheim wrote: > Do you have a clone of the git repository? > > - > > Strom wrote: > > Hi, > I

Re: [Lift] How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
Do you have a clone of the git repository? - Strom wrote: Hi, I'm traveling, and I have about an hour to figure out how to download the liftweb 1.1 API so I can continue to work offline for the next few days. I've done "mvn clean scala:doc" in my project direc

Re: [Lift] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
'undefined'){ evt = window.event; } if(evt){ evt.returnValue = reply; } return reply; } Cheers, Tim On 2 Feb 2010, at 18:31, Naftoli Gugenheim wrote: > Hi, in Lift how would one implement functionality similar to in Gmail, that > whe

Re: [Lift] asHtml inconsistency

2010-02-02 Thread Naftoli Gugenheim
e (a field -- this change was necessary anyway). - David Pollak wrote: On Tue, Feb 2, 2010 at 11:53 AM, Naftoli Gugenheim wrote: > Is there a reason why in Mapper, BaseMappedField, and MixableMappedField, > asHtml is typed to be a NodeSeq, but MappedField o

Re: [Lift] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
I would like to have such code in ItemsListEditor (used by net.leftweb.mapper.view.TableEditor). What's the best way to add the script? Should I return from the snippet boundXhtml ++

Re: [Lift] ProtoUser i18n

2010-02-02 Thread Naftoli Gugenheim
Can you add that to the conventions in the naming wiki (property names should not have spaces) unless someone disagrees? Thanks! - Indrajit Raychaudhuri wrote: Adam, can you please (a) open a ticket and (b) create a gist (http://gist.github.com/) of the patch

[Lift] asHtml inconsistency

2010-02-02 Thread Naftoli Gugenheim
Is there a reason why in Mapper, BaseMappedField, and MixableMappedField, asHtml is typed to be a NodeSeq, but MappedField overrides it to be a Node? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegro

Re: [Lift] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
t){ var reply= "You have unsaved changes!"; if(typeof evt == 'undefined'){ evt = window.event; } if(evt){ evt.returnValue = reply; } return reply; } Cheers, Tim On 2 Feb 2010, at 18:31, Naftoli Gugenheim

[Lift] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
Hi, in Lift how would one implement functionality similar to in Gmail, that when you try to navigate away from an unsaved email you get a dialog box asking to confirm? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email t

Re: [Lift] Re: Snippet attribute pass through

2010-02-01 Thread Naftoli Gugenheim
Anyone want to fix the book? :) Anyway, once you're using -%> you want it to be id, not ledger:id. - Marius wrote: I'm eating letters "as after the was out" should be "as after the the book was out" :D On Feb 1, 6:03 pm, Marius wrote: > Replace your bind with

Re: [Lift] Re: CRUDify Menus as sub menus

2010-01-31 Thread Naftoli Gugenheim
Does this work? List(Foo, Bar).map{model: CRUDify => Menu(Loc(...), model.menus: _*) } Not tested. - The Trav wrote: > I'm not sure what you're asking. > You want a List and Create submenu under each model without duplicate code? Current menu tree is: + Hom

Re: [Lift] CRUDify Menus as sub menus

2010-01-31 Thread Naftoli Gugenheim
I'm not sure what you're asking. You want a List and Create submenu under each model without duplicate code? - The Trav wrote: Ok, this one is a bit of a beginner question, but here goes anyway. I've got a bunch of auto generated menus as part of my top level

Re: [Lift] Re: [lift] static data

2010-01-31 Thread Naftoli Gugenheim
I thought there was an implicit in scope that said "conditionally." :) - David Pollak wrote: On Sun, Jan 31, 2010 at 12:54 PM, Naftoli Gugenheim wrote: > If you only initialize the database all at once, why not just put the code > in Boot? &

Re: [Lift] Re: beginner help

2010-01-31 Thread Naftoli Gugenheim
ellent command completion for 2.7.7 NetBeans has acceptable command completion for 2.7.7 > > > You will have a lot of pain learning Lift against Scala 2.8 until 2.8 is > > released. > > Sure. I can always go back to 2.7.x if problems persist. > > > > On Sat,

Re: [Lift] Re: [lift] static data

2010-01-31 Thread Naftoli Gugenheim
If you only initialize the database all at once, why not just put the code in Boot? - Channing Walton wrote: Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want although I would need to nom

Re: [Lift] Re: beginner help

2010-01-30 Thread Naftoli Gugenheim
t I'm not sure. On Sat, Jan 30, 2010 at 10:33 PM, Lachlan Deck wrote: > Hi Naftoli, > > On 31/01/2010, at 1:09 PM, Naftoli Gugenheim wrote: > > > What do you mean by #2? That the source for a library is displayed as > Java? > > No, that the source file (e.g., under

Re: [Lift] Re: Using Stateful Snippets

2010-01-30 Thread Naftoli Gugenheim
this project from scratch and have > a java background is it easier to just pick up with Scala's persistent > architecture then continue with these little bumps in the road. > > On Jan 29, 11:06 am, Naftoli Gugenheim wrote: > > And user is not a RequestVar, correct? So t

Re: [Lift] Re: beginner help

2010-01-30 Thread Naftoli Gugenheim
(that was supposed to say "somewhat supported.") :) 2010/1/30 Naftoli Gugenheim > What do you mean by #2? That the source for a library is displayed as Java? > Please clarify. > However, the place to ask is really the scala-tools list (although I > believe Miles, the plugi

Re: [Lift] Re: beginner help

2010-01-30 Thread Naftoli Gugenheim
What do you mean by #2? That the source for a library is displayed as Java? Please clarify. However, the place to ask is really the scala-tools list (although I believe Miles, the plugin maintainer, monitors this list too). Also, note that Lift on 2.8 has only just begun to be someone supported, so

[Lift] Re: Debug message

2010-01-30 Thread Naftoli Gugenheim
ng On Thu, Jan 28, 2010 at 12:53 AM, Naftoli Gugenheim wrote: > Anyone? > > > On Tue, Jan 5, 2010 at 11:15 PM, Naftoli Gugenheim > wrote: > >> What does this message mean? >> Msgs: Default Error is not rendered as the default title is the empty >> string >>

Re: [Lift] Re: Using Stateful Snippets

2010-01-29 Thread Naftoli Gugenheim
wrote: User[ id=0 email=, username = , created on=Fri Jan 29 10:57:27 MST 2010 role=Basic] This value I get On Jan 28, 10:44 pm, Naftoli Gugenheim wrote: > You didn't answer my question. At the time the closure passed to redirectTo > is executed, what is the val

Re: [Lift] Re: Exception notification?

2010-01-29 Thread Naftoli Gugenheim
You can also do it via log4j config. There's a thread somewhere about it. It's a built in log4j option. - Marius wrote: See LiftRules.exceptionHandler On Jan 29, 12:33 am, Yu-Shan Fung wrote: > Hi All, > > A bit of a shot in the dark, but is there an easy wa

Re: [Lift] Re: Using Stateful Snippets

2010-01-28 Thread Naftoli Gugenheim
l email = user.email val fullName = user.userProfile.fullName println("email " + email) S.redirectTo("thank_you", () => {S.set("email", email); S.set ("fullName", fullName);}) Thanks for helping out On Jan 27, 10:20 pm, Naftoli Gugenheim wrote:

Re: [Lift] MetaMapper.foreach

2010-01-28 Thread Naftoli Gugenheim
ty from the function every time. On Wed, Jan 27, 2010 at 9:58 PM, Naftoli Gugenheim wrote: > MetaMapper has a findAll method, which creates a statement based on its > parameters, and then iterates over the ResultSet creating Mappers and > putting them into a List. > It would be neat

Re: [Lift] Re: What is purpose of RequestVar/StatefulSnipplet for forms?

2010-01-28 Thread Naftoli Gugenheim
In request 1, the page is rendered the first time and registers form functions. In request 2--the result of submitting--they are executed, and later the form is rendered again. When the functions are executed, they can capture references from request 1. If they reference a field or local variabl

Re: [Lift] New ticketing system

2010-01-27 Thread Naftoli Gugenheim
n instance of LiftTicket to track its progress? :) On Tue, Jan 26, 2010 at 4:08 PM, Naftoli Gugenheim wrote: > For anyone who wants to give LiftTicket a spin: > Download it from www.github.com/dchenbecker/LiftTicket > Extract it into a directory and open a command prompt o

[Lift] MetaMapper.foreach

2010-01-27 Thread Naftoli Gugenheim
MetaMapper has a findAll method, which creates a statement based on its parameters, and then iterates over the ResultSet creating Mappers and putting them into a List. It would be neat if it was possible to process the generated Mappers one by one instead of loading them into a list. This way large

[Lift] Re: Debug message

2010-01-27 Thread Naftoli Gugenheim
Anyone? On Tue, Jan 5, 2010 at 11:15 PM, Naftoli Gugenheim wrote: > What does this message mean? > Msgs: Default Error is not rendered as the default title is the empty > string > -- You received this message because you are subscribed to the Google Groups "Lift" group.

Re: [Lift] Re: Using Stateful Snippets

2010-01-27 Thread Naftoli Gugenheim
o track the user object > object userVar extends RequestVar(new User()) > > S.redirectTo("thank_you", () => {userVar(user);}) > > but no bueno. > > On Jan 27, 4:56 pm, Naftoli Gugenheim wrote: > > When you redirect you start a new request, so RequestVars are fr

Re: [Lift] Using Stateful Snippets

2010-01-27 Thread Naftoli Gugenheim
When you redirect you start a new request, so RequestVars are fresh. redirectTo has an overload that take additionally a function to execute in the new request. Set the RequestVar there. - Jay Cain wrote: I am a newbie to Lift and Scala. I'm registering users

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
Lift could locate it and use it, and this way you can determine the version together with other dependencies, rather than hardcoding it in Boot or creating a new API. It's just an idea, no idea if it's even possible. - Jeppe Nejsum Madsen wrote: Na

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
te site is the model and the snippit (I have made some minor changes since I posted those), the trouble I'm having is figuring out how to save it (to take it from the extracted Json). On Jan 28, 8:58 am, Naftoli Gugenheim wrote: > Okay, so can you clarify a bit more? Do you have a mapper

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
I meant as an alternative to adding special API to set the jQuery version. - David Pollak wrote: On Wed, Jan 27, 2010 at 11:00 AM, Naftoli Gugenheim wrote: > Is there any way to get maven to decide? If there was some way to set > JQuery as a dependency

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
ple code to discern how to do it. > > http://paste.pocoo.org/show/165511/ > > http://paste.pocoo.org/show/165532/ > > On Jan 28, 6:10 am, Naftoli Gugenheim wrote: > > > Do you have a question about lift-json per se, or lift-mapper per se? Or do >

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
o.org/show/165511/ http://paste.pocoo.org/show/165532/ On Jan 28, 6:10 am, Naftoli Gugenheim wrote: > Do you have a question about lift-json per se, or lift-mapper per se? Or do > you want to know whether there is some built in integration? > > -

Re: [Lift] Json Lift

2010-01-27 Thread Naftoli Gugenheim
Do you have a question about lift-json per se, or lift-mapper per se? Or do you want to know whether there is some built in integration? - Randinn wrote: Does anyone know of some sample code that shows Json extract with a mapper model? -- You received this m

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
Is there any way to get maven to decide? If there was some way to set JQuery as a dependency in the pom and have Lift locate it at runtime that may make the most sense, if such a thing is remotely possible. Indrajit, any comment? - Jonathan Hoffman wrote: I t

Re: [Lift] New ticketing system

2010-01-26 Thread Naftoli Gugenheim
What "worst case scenario" are you afraid of happening using LiftTicket? - Heiko Seeberger wrote: 2010/1/26 David Pollak > Folks, > > We switched to GitHub's ticketing system a bunch of months ago and, well, > it's not making the grade. It's slow. It's lim

Re: [Lift] Save Mapper's mapped field

2010-01-26 Thread Naftoli Gugenheim
You can mix in LifecycleCallbacks to the field and override beforeSave there, if you prefer. Someone correct me if I'm wrong, but I think beforeSave is called before it is known if save will fail. And in afterSave I don't know what 'dirty_?' and 'was' are set to. So you may possibly want to crea

Re: [Lift] New ticketing system

2010-01-26 Thread Naftoli Gugenheim
David Pollak wrote: On Tue, Jan 26, 2010 at 11:12 AM, Naftoli Gugenheim wrote: > I think it would be a *major* wasted opportunity not to invest in > LiftTicket. I agree. > It would be an excellent real life showcase of Lift. And of course it > wouldn't make sense to s

Re: [Lift] Optgroup in select ?

2010-01-26 Thread Naftoli Gugenheim
Which method doesn't let you pass attributes? - Francois wrote: Le 26/01/2010 18:25, David Pollak a écrit : > > It's not possible today. Do you have an idea of what the API should > look like? I believe that a simple select with a Seq[(String, Seq[(T,String)]

Re: [Lift] New ticketing system

2010-01-26 Thread Naftoli Gugenheim
I think it would be a *major* wasted opportunity not to invest in LiftTicket. It would be an excellent real life showcase of Lift. And of course it wouldn't make sense to switch to Assembla only temporarily. In addition, after all the work Derek put into it, it would be sad not to use it. Derek

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-26 Thread Naftoli Gugenheim
Did you see any error in the console? - XiaomingZheng wrote: i download the 280_port_refresh version code, and excuted "mvn install" got a sucess. but when i tried to run the examples/hellolift using jetty:run, i visited the localhost:8080 and got a 404 error.

<    1   2   3   4   5   6   7   8   9   >