Re: [Lift] Not Sure How to Arrange Mapper Classes or QueryParams to Handle My Data Model.

2010-03-10 Thread Naftoli Gugenheim
With ManyToMany the join table is defined by you, manually as a regular mapper. You have to tell MappedManyToMany about it and its foreign keys. I will try to find time to make the wiki entry more clear. Also, if the scaladocs are lacking let me know how they could be improved.

Re: [Lift] Re: RequestVar copy /clone ?

2010-03-09 Thread Naftoli Gugenheim
Redirect means the destination will execute in another request. However, redirectTo takes, as an optional second parameter, a function to execute in that new request. So try setting the RequestVar there. - Lukasz Kuczerakuk...@gmail.com wrote: IMHO you have

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread Naftoli Gugenheim
If the sitemap could be specified as a function JRebel could reload it. One approach is along the lines that setSiteMap could be passed a function e.g. ()=List[Menu]. In production mode the return value may or may not be cached. Another approach is to have an optional method in Boot called say

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread Naftoli Gugenheim
There was one in MappedString, but I think DPP's recent refactoring of common utilities for mapper etc. put it somewhere else (additionally, I assume). - Heiko Seebergerheiko.seeber...@googlemail.com wrote: Hi, I am pretty sure there is a method somewhere

Re: [Lift] Re: Issue, The URL params can't contains ? ****

2010-03-09 Thread Naftoli Gugenheim
I think he means he wants to access query parameters. - Mariusmarius.dan...@gmail.com wrote: You need to do URL encoding first. Helpers.urlEcnode(str) does this. On Mar 9, 3:47 pm, Neil.Lv anim...@gmail.com wrote: Hi all,   I have a silly question about

Re: [Lift] Re: RequestVar copy /clone ?

2010-03-09 Thread Naftoli Gugenheim
You can use StatefulSnippets if you like, but what you want to do is perfectly doable with RequestVars. Clearly it's not being set in the same request as it's being read. - hexahex...@gmail.com wrote: I think we still have a miss understanding The client_id

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread Naftoli Gugenheim
Why is compilation running with JRebel? Also, how critical is JRebel to people getting their feet wet? When I was new to Lift, I used the default setting in the POM that caused a jetty hot redeploy when class files were updated. (Possibly earlier on I restarted jetty manually.) While that meant

Re: [Lift] Re: RequestVar copy /clone ?

2010-03-09 Thread Naftoli Gugenheim
in the next request, it can set RequestVars etc. that the next request will see. - hexahex...@gmail.com wrote: It is not set in the same request as it's being read exactly... But how is that doable with RequestVars then ? On Mar 9, 11:55 am, Naftoli

Re: [Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread Naftoli Gugenheim
You mean MappedLongForeignMapper is deprecated? - ojonammanojo10...@gmail.com wrote: Hi Jeppe, that works indeed, thanks. Although, in 2.0-M2, technically you need to extend LongMappedMapper (as MappedForeignKey is deprecated). Anyway, here is the little bit

Re: [Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread Naftoli Gugenheim
/liftweb/mapper/LongMappedForeignMapper.html Manohar On Mar 8, 3:01 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: You mean MappedLongForeignMapper is deprecated? - ojonammanojo10...@gmail.com wrote: Hi Jeppe, that works indeed, thanks. Although

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread Naftoli Gugenheim
I'm very confused. Where is there currently an implementation of equals that compares all fields? And what's the difference between KeyedMapper checking primaryKeyField and IdPK checking id? - Jim Barrowsjim.barr...@gmail.com wrote: How about:

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
the option to run on all? Also, is it possible to run MapperSpecs for all the drivers in parallel, and if so would that cause it to finish faster? Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Sun, Mar 7, 2010 at 12:47 PM, Naftoli Gugenheim naftoli

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? Basically, I renamed ItemsListSpecs to MapperSpecs2 and put the test for issue 370 there. MapperSpecs2 only uses H2 memory db. (Any

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
Barrowsjim.barr...@gmail.com wrote: On Mon, Mar 8, 2010 at 1:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Currently what I did is combine ItemListSpecs with another test, so I gave it a more generic name than ItemsList, hence MapperSpecs2. The idea is that some tests really have zero to do

Re: [Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread Naftoli Gugenheim
I had that problem a number of times and the fix was changing bindlabel - entity.field which uses implicits, to ... entity.field.is and/or ... entity.field.toString - hexahex...@gmail.com wrote: Seems to work now I had a maybe weird way of getting an attribute

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
Can it be changed with a deprecation phase? - Mariusmarius.dan...@gmail.com wrote: I'm not sure about the fastness as I also have other things and a 4 days baby boy ;) ... but I think this is fairly important and I'll try to prioritize. On Mar 7, 8:52 pm,

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-07 Thread Naftoli Gugenheim
I think that Jonathan was impolite in expressing his frustration at being misunderstood. But are his points not valuable? - David Pollakfeeder.of.the.be...@gmail.com wrote: Jonathan, your comments are someplace between not helpful and troll-like. It'd be best

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
to just remove things out of the sudden. But I'll know more once I get to dig deeper. On Mar 7, 10:13 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Can it be changed with a deprecation phase? - Mariusmarius.dan...@gmail.com wrote: I'm not sure about

[Lift] Reorganize mapper specs?

2010-03-07 Thread Naftoli Gugenheim
Based on discussion on Review Board item 247, I want to propose the following change to the organization of Mapper specs. Currently there are four files in framework/lift-persistence/lift-mapper/src/test/scala/net/liftweb/mapper: DBProviders - initalization for each provider to be tested

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
I may have a project coming up that would use it though. :) - Mariusmarius.dan...@gmail.com wrote: You must be unique :) On Mar 7, 10:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Then it sounds good to me, although that doesn't count as much since I

[Lift] LongMappedForeignKey should call primeObj in apply(v: O) and apply(v: Box[O])

2010-03-07 Thread Naftoli Gugenheim
Is there any objection to https://www.assembla.com/spaces/liftweb/tickets/411 - MappedLongForeignKey should call primeObj in apply(v: O) and apply(v: Box[O])? In other words, if you set a MappedLongForeignKey by passing it a Mapper instance of the referenced table, is there any reason not to cache

Re: [Lift] Customizing meta fields

2010-03-07 Thread Naftoli Gugenheim
It's not necessary. Just put a head section in the template and it will be combined with the head section in default.html. - Martin Dale Lynessmartin.lyn...@gmail.com wrote: Thank you Ross, for the very informative response! Now, I consider SEO to be closer

Re: [Lift] Re: superficial first impressions from a rails junkie

2010-03-06 Thread Naftoli Gugenheim
I think I understand David's point about letting Lift sell itself for now, rather than pushing for more widespread adoption, until the right time comes At the same time I would like to mention that it seems to me (not based on any experience) than Jonathan Mawson has very good marketing sense /

Re: [Lift] Re: superficial first impressions from a rails junkie

2010-03-06 Thread Naftoli Gugenheim
Also, someone was lamenting GitHub's flat wiki. Assembla has a more advanced wiki system but David said it's not worthwhile to move unless someone will take on the role of managing the wiki. On Sat, Mar 6, 2010 at 10:44 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I think I understand

Re: [Lift] Re: Problem with FocusOnLoad and passing attributes through bind

2010-03-06 Thread Naftoli Gugenheim
The fundamental problem is that at the top bind level you want to use FocusOnLoad which returns a NodeSeq, but you also want bind to pass along the attributes, which has to operate at a lower level. So you can use bind twice, nested. Try this pattern: bind(pre, xhtml, label - {ns: NodeSeq =

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread Naftoli Gugenheim
as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released.  I looked to see if the vulnerability was still present

Re: [Lift] Re: Response Optimizations too aggressive

2010-03-04 Thread Naftoli Gugenheim
How about LiftRules.stripComments.default.set( () = !Req.isIE) etc.? - awanth...@whitford.com wrote: OK, I have disabled the stripping of comments: LiftRules.stripComments.default.set( () = false ) It seems to work for me. On Mar 4, 12:36 am, Jeppe

Re: [Lift] Trouble with lift-couchdb

2010-03-04 Thread Naftoli Gugenheim
dependency plugin, and I do not get the warning that multiple versions were detected) but I am still seeing the error. Anything else I should try in order to eliminate library/compile versions as the culprit? Thanks, Craig On Mar 3, 2010, at 9:54 PM, Naftoli Gugenheim wrote: AbstractMethodError

Re: [Lift] Trouble with lift-couchdb

2010-03-04 Thread Naftoli Gugenheim
: test.Settings$updated$.encode(Ljava/lang/Object;)Ljava/lang/String; I've also put the test code in Github in case anyone might be able to reproduce it locally: g...@github.com:craigwblake/lift-couchdb-test.git Thanks, Craig On Mar 3, 2010, at 9:54 PM, Naftoli Gugenheim wrote

Re: [Lift] Re: SQL error

2010-03-04 Thread Naftoli Gugenheim
Is blob a standard reserved word or only on MySQL? If the latter this is a potential breaking change. - Mads Hartmannmads...@gmail.com wrote: Ah! That fixed it, thanks a lot Jeppe ;) I'm not sure what to say in the ticket though, the column-name blob was a

Re: [Lift] Re: SQL error

2010-03-04 Thread Naftoli Gugenheim
PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Is blob a standard reserved word or only on MySQL? If the latter this is a potential breaking change. Blob is not apparently part of the ANSI standard reserved word for SQL. I would have sworn it was. However, it is common in Oracle, MS

Re: [Lift] Resuming a Statefull Snippet.

2010-03-04 Thread Naftoli Gugenheim
You have to save the snippet instance in a variable somewhere that won't go out of scope, and then in redirectTo's second parameter write instance.registerThisSnippet. - andythedestroyerandythedestro...@gmail.com wrote: Hello, I have a simple use case where

Re: [Lift] Re: Resuming a Statefull Snippet.

2010-03-04 Thread Naftoli Gugenheim
) redirectTo( third_party_url +?return= + returnPath) } } Neither worked. The SessionVar shouldn't go out of scope. It seems like I should be able to generate a link and just take the href from the generated link. I don't understand why that doesn't work. Thanks, Andy On Mar 4, 2:26 pm, Naftoli

Re: [Lift] Re: Resuming a Statefull Snippet.

2010-03-04 Thread Naftoli Gugenheim
the generated link. I don't understand why that doesn't work. Thanks, Andy On Mar 4, 2:26 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: You have to save the snippet instance in a variable somewhere that won't go out of scope, and then in redirectTo's second parameter write

Re: [Lift] Re: Resuming a Statefull Snippet.

2010-03-04 Thread Naftoli Gugenheim
) } } Neither worked. The SessionVar shouldn't go out of scope. It seems like I should be able to generate a link and just take the href from the generated link. I don't understand why that doesn't work. Thanks, Andy On Mar 4, 2:26 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: You have

Re: [Lift] Re: Lift security vulnerability

2010-03-04 Thread Naftoli Gugenheim
What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste

Re: [Lift] The role of LiftRules

2010-03-03 Thread Naftoli Gugenheim
See David's last post on this thread, and the updated diff on RB. - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: Would it be a bad idea to use java.util.Date for now, and if and when support is added

Re: [Lift] The role of LiftRules

2010-03-03 Thread Naftoli Gugenheim
When are the implicits on a companion object invoked without needing to be imported? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: Would it be a bad idea to use java.util.Date for now, and if and when support

Re: [Lift] Converting a rails application to lift

2010-03-03 Thread Naftoli Gugenheim
Is a syntax like this okay (inside an Author mapper)? object created extends MappedDateTime(this) with CreatedTimestamp[Author] Although if we say that timestamps are always a date-time (not date only or time only) this could be shortened to object created extends CreatedTimestamp(this)

Re: [Lift] Trouble with lift-couchdb

2010-03-03 Thread Naftoli Gugenheim
AbstractMethodError means you need to do a clean build and make sure you don't have multiple scala versions. - Craig Blakecraigwbl...@gmail.com wrote: Just took a minor change to compile (didn't like ?~) and I'll let you know how it goes soon. I'm running

Re: [Lift] Response Optimizations too aggressive

2010-03-03 Thread Naftoli Gugenheim
I don't know the answer, but did you look through LiftRules to see if there's any setting about comments? - awanth...@whitford.com wrote: After fielding calls as to why my UI doesn't look correctly on IE, I discovered that Lift is doing an optimization in

Re: [Lift] Converting a rails application to lift

2010-03-02 Thread Naftoli Gugenheim
You can assign the ticket to me because I have code for such fields that I can contribute. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Mar 2, 2010 at 11:56 AM, Achint Sandhu achint.san...@gmail.comwrote: Hi, I'm new to scala (2.7.7)

Re: [Lift] Re: Converting a rails application to lift

2010-03-02 Thread Naftoli Gugenheim
Yes, because, as in the database, essentially it's a MappedLong (for example), with support built on top of it (via trait mixins) to lookup and cache the referenced entity. Is there a problem with the .obj syntax? - Achint Sandhuachint.san...@gmail.com wrote:

Re: [Lift] The role of LiftRules

2010-03-02 Thread Naftoli Gugenheim
sense? On Fri, Feb 26, 2010 at 1:54 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Oh, right--I forgot about per-session and request. So what do you vote on this, then: A. ConversionRules is its own singleton, but as a bonus it can also be accessed from LiftRules. B. Same

Re: [Lift] Re: how to override superUser.dbDisplay_? = false

2010-03-02 Thread Naftoli Gugenheim
As a last resort override toForm on the mapper to not include it. - wmmin...@gmail.com wrote: Then what's the best way to remove this field from the toForm() generation? I override fieldOrder: object User extends User with KeyedMetaMapper[Long, User] { //

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Naftoli Gugenheim
When you bind a form, you write functions that handle parts of the form. They are stored in memory and when the form is submitted they are executed. They are triggered by assigning them a unique id and using it as the form element's name. There's no way to preserve the functions to survive a

Re: [Lift] Re: ByList using OR instead of IN?

2010-03-01 Thread Naftoli Gugenheim
Maybe there could be case class Or(qps: QueryParam*) extends QueryParam or something like it? This way ByList could use IN but one can also do OR? - awanth...@whitford.com wrote: I was searching for a prior thread and couldn't find it last night, but I think I

Re: [Lift] reload application.properties

2010-03-01 Thread Naftoli Gugenheim
Is a dynamic menu not advantageous for production apps (e.g., a CMS)? Would changing setSiteMap (if that's what it's called) to take a call by name be a bad idea? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum

Re: [Lift] newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread Naftoli Gugenheim
I think that AbstractMethodError always means either mismatched scala version or out of date class file. - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Mon, Mar 1, 2010 at 3:39 PM, ojonam manojo10...@gmail.com wrote: Hello all, I am trying to launch a

[Lift] Re: [Lift committers] Lots to do by end of day on Sunday **Important for Committers**

2010-02-27 Thread Naftoli Gugenheim
Would anyone be able to change my open tickets to after M3? I don't think I'l have a chance to deal with them before code slush. I'm not sure but I think they're 257, 258, 370, and 371. Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: Folks, Code

Re: [Lift] Matching on Mapper fields

2010-02-26 Thread Naftoli Gugenheim
case _ if f eq ... ? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Hi, I would expect the following code to print at most a single line: Vehicle.mappedFields.filter(_.dbIncludeInForm_?) foreach {f = f match { case Vehicle.customCategory =

Re: [Lift] Matching on Mapper fields

2010-02-26 Thread Naftoli Gugenheim
Does the field know if it's the meta instance? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Feb 26, 2010 at 7:05 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I would expect the following code to print at most a single line:

Re: [Lift] scala-time and Lift pom.xml

2010-02-26 Thread Naftoli Gugenheim
java.util.Date.before/after - Hanneshannes.flo...@gmx.li wrote: I swear that I ONLY use it to compare if things are older than other things. I think comparison of long values is faster than string or date comparison, or? thanks. On Fri, Feb 26, 2010 at

Re: [Lift] The role of LiftRules

2010-02-26 Thread Naftoli Gugenheim
applications. At this point, I think the easiest answer is to put the date/time stuff in webkit until there's a better answer. The locus of configuration for webkit stuff is LiftRules, so the date/time configuration should live there. On Thu, Feb 25, 2010 at 7:01 PM, Naftoli Gugenheim naftoli

Re: [Lift] The role of LiftRules

2010-02-26 Thread Naftoli Gugenheim
we hook things up to LiftRules: LiftRules { val dateTimeConverter = new FactoryMaker[DateTimeConverter](() = DateTimeConverter.vend(S.locale)) } Make sense? On Fri, Feb 26, 2010 at 1:54 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Oh, right--I forgot about per-session and request. So

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Naftoli Gugenheim
Why should an initLogger method be in LiftRules? - Mariusmarius.dan...@gmail.com wrote: Then perhaps: LiftRules.initLogger(Log4J) On Feb 25, 12:16 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On Thu, Feb 25, 2010 at 10:32 AM, Marius

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Naftoli Gugenheim
Wait, I misunderstood something. What's the difference between logger = X and initLogger(X)? - Mariusmarius.dan...@gmail.com wrote: Why not? LiftRules is about configuring a lift app at startup. On 25 feb., 16:56, Naftoli Gugenheim naftoli...@gmail.com wrote

[Lift] The role of LiftRules

2010-02-25 Thread Naftoli Gugenheim
Hi, I'd like to get some opinions on the following. You may want to read http://reviewboard.liftweb.net/r/158/. I have on Review Board a patch for some date-and-time parsing and formatting configuration. I put the settings inside a singleton object called ConversionRules. The question is, where

Re: [Lift] Reasoning Behind Box

2010-02-25 Thread Naftoli Gugenheim
I'm assuming you know that it has a third, Failure state, and you're asking about the names. I guess open_! is in keeping with the metaphor of a box (or originally, a can). The _! is Lift's way of saying, Danger! And I guess 'or' is just shorter. (Lift tends to put practicality before academic

Re: [Lift] Reasoning Behind Box

2010-02-25 Thread Naftoli Gugenheim
Either -- but it's more verbose. I'm not so sure David will want to rewrite the entire lift anyway... - Heiko Seebergerheiko.seeber...@googlemail.com wrote: Daniel, I would like to look at this question from a solution oriented perspective: Certainly you

Re: [Lift] *Minor breaking change* - issue #363

2010-02-24 Thread Naftoli Gugenheim
Lift-anounce? :) - Mariusmarius.dan...@gmail.com wrote: Folks, The ability to specify the JQuery version was changed from: LiftRules.jQueryVersion = ... to LiftRules.jsArtifacts = JQuery14Artifacts // this points to JQuery 1.4.2. By default this points

Re: [Lift] Re: Liftweb and javascript

2010-02-24 Thread Naftoli Gugenheim
LiftRules.enableLiftGC = false LiftRules.autoIncludeAjax = _ = false - Peter Robinettpe...@bubblefoundry.com wrote: I believe you just need to turn off a garbage collection setting in boot.scala but if it's there I assume it's an app-wide setting... Peter On

Re: [Lift] Re: LiftRules.jQueryVersion ... :(

2010-02-23 Thread Naftoli Gugenheim
You probably mean case object... Also, personally I prefer the version without the underscores. - Timothy Perretttimo...@getintheloop.eu wrote: No, sounds good Marius... go for it. Cheers, Tim On 23 Feb 2010, at 11:00, Marius wrote: I opened this ticket:

Re: [Lift] [lift] presentation only equivalent of toForm

2010-02-15 Thread Naftoli Gugenheim
asHtml? 2010/2/14 Channing Walton channingwal...@mac.com Hi, I am using toForm to create forms for crud operations on my mappers, but I cannot see an equivalent method for presentation purposes. That is, no form elements, just text presented in the same tabular format as the form. Is

Re: [Lift] Error processing SHtml functions withing nested NodeSeq/Scala code

2010-02-15 Thread Naftoli Gugenheim
What does that mean it doesn't return? Can you catch an exception? Can you show more clearly the line that doesn't work and how it looks to make it work? 2010/2/15 soumik soum...@gmail.com Hi, I'm using 1.1-SNAPSHOT lift release and am experiencing strange behaviour when trying to output a

Re: [Lift] New logging code

2010-02-15 Thread Naftoli Gugenheim
I don't think it's theoretically possible to have the same trait instance recognize which superclass that it was mixed in to is doing the logging. Because if A mixes in T, and B extends A and also mixes in T, T is not really mixed in twice. For the same reason using a type parameter would not help

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-15 Thread Naftoli Gugenheim
Is Alex's problem that the browsers update 24 hours later or not at all or something else? 2010/2/15 Jeppe Nejsum Madsen je...@ingolfs.dk On Mon, Feb 15, 2010 at 10:27 PM, Alex Black a...@alexblack.ca wrote: We don't seem to have this problem with images.. Could this have to do with the

Re: [Lift] Custom PreCache in mapper

2010-02-15 Thread Naftoli Gugenheim
Refactor MetaMapper to make it more extensible? :) 2010/2/15 Jeppe Nejsum Madsen je...@ingolfs.dk Hi, Using PreCache in mapper seems crucial to avoid N+1 select issues and works fine for simple FK relationships. I have a model where I need something more advanced and would like to avoid

Re: [Lift] Re: fmapFunc and order of operations

2010-02-15 Thread Naftoli Gugenheim
How would this be used? 2010/2/15 David Pollak feeder.of.the.be...@gmail.com If all the SHtml stuff returned a NodeSeq (or Elem) with AnswerHolder and AnswerHolder[T] looked like: trait AnswerHolder[T] { def hasAnswer: Boolean def answer: Box[T] def map[S](f: T = S): Box[S] ...

Re: [Lift] Back in the (Goat) Saddle

2010-02-15 Thread Naftoli Gugenheim
From the wiki: Each worker has its own SQL store -- this fills in part of the picture. :) On Mon, Feb 15, 2010 at 5:46 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Feb 14, 2010 at 4:37 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Real neat! Is it possible to use

Re: [Lift] Back in the (Goat) Saddle

2010-02-14 Thread Naftoli Gugenheim
Real neat! Is it possible to use Goat Rodeo for an offline distributed system? In other words, several systems need to share a common pool of data but they are not always connected, so they need to each hold their data locally and when they are connected they need to push/pull updates. Right now

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

2010-02-14 Thread Naftoli Gugenheim
Pretty please? On Fri, Feb 12, 2010 at 2:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: (FYI: buildSetXXValue methods are called when loading the field from the database in MetaMapper.scala. This question is relevant in the context of a Mapped(Date)(Time) that corresponds to a database

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-13 Thread Naftoli Gugenheim
May I suggest that instead of naming the tag 'css,' it be given a name that's more agnostic of the content it affects and more indicative of what it does? Technically this could be used for any type of resource. What about something like lift:uniqueurl path=url / Or something else? Thanks for

Re: [Lift] Binding to a Map

2010-02-12 Thread Naftoli Gugenheim
If you're using fromSeq you don't need toSeq. And I would appreciate if you don't use such acronyms or vocabulary. 2010/2/10 Nolan Darilek no...@thewordnerd.info On 02/10/2010 12:00 PM, Naftoli Gugenheim wrote: I mean to wrap the whole flatMap: case false = NodeSeq.fromSeq

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

2010-02-12 Thread Naftoli Gugenheim
if buildSetXXValue needs to have some more general parsing logic then it would be better to have the second syntax. Therefore until someone can comment, my current work for Lift is effectively frozen midair. 2010/2/10 Naftoli Gugenheim naftoli...@gmail.com - Until now there were two places in Mapped

Re: [Lift] Re: how to set boolean (non-string) value in NodeSeq?

2010-02-11 Thread Naftoli Gugenheim
If you want it false just leave it out. 2010/2/10 wm min...@gmail.com Do it XML style: button disabled=disabled /button The problem is even after setting disabled= (empty string), it's still treated as true; I found it behave as expected only when setting it to boolean true/false.

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

2010-02-10 Thread Naftoli Gugenheim
on the page where it's rendered. Does that make sense to you ? In the past i've found such an approach very natural and really useful. On Wed, Feb 10, 2010 at 06:38, Naftoli Gugenheim naftoli...@gmail.comwrote: If the same snippet is used by two pages you would want two separate resource bundles

Re: [Lift] Binding to a Map

2010-02-10 Thread Naftoli Gugenheim
If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit, wrap it with NodeSeq.fromSeq(...). Also, you can do ...flatMap{case (_, account) = bindAccountFields(in, account, false)} - Nolan Darilekno...@thewordnerd.info wrote: I have a Lift

Re: [Lift] Binding to a Map

2010-02-10 Thread Naftoli Gugenheim
I mean to wrap the whole flatMap: case false = NodeSeq.fromSeq(user.accounts.flatMap... - Nolan Darilekno...@thewordnerd.info wrote: On 02/10/2010 11:18 AM, Naftoli Gugenheim wrote: If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit

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

2010-02-10 Thread Naftoli Gugenheim
So are you saying to leave buildSetFromString pointing to Helpers.toDate for the time being? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: At what would make sense to move around, i.e., what I should to move

Re: [Lift] Deploying Lift app

2010-02-10 Thread Naftoli Gugenheim
What OS is on the server? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Mads Hartmann mads...@gmail.com writes: Hello everyone I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Naftoli Gugenheim
Don't understand the question. mvn test? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Quick question: I'm updating archetypes, how can I test them locally? /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Naftoli Gugenheim
I think just mvn install from its directory (or archetypes directory). - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Wed, Feb 10, 2010 at 9:21 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Don't understand the question. mvn test? I've modified

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

2010-02-10 Thread Naftoli Gugenheim
, accessor, {case f: MappedDate[_] = f.st(Empty)}) 2010/2/10 Jeppe Nejsum Madsen je...@ingolfs.dk On Wed, Feb 10, 2010 at 9:02 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: So are you saying to leave buildSetFromString pointing to Helpers.toDate for the time being? I'm not sure I follow? I

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

2010-02-10 Thread Naftoli Gugenheim
In Mapped(Date)(Time) And 'type' was also a typo. :) On Wed, Feb 10, 2010 at 5:21 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Sorry, type: I was referring to this: def buildSetActualValue(accessor: Method, v: AnyRef, columnName: String): (T, AnyRef) = Unit = (inst, v) = doField

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

2010-02-10 Thread Naftoli Gugenheim
- Until now there were two places in Mapped(Date)(Time) where parsing occurred. setFromAny used LiftRules.parseDate, while buildSetStringValue etc. used TimeHelpers.toDate. - Do we need methods like setFromAny and TimeHelpers.toDate, which take an Any and pattern match on several types of

Re: [Lift] Enumeration.Value versus Enumeration#Value

2010-02-10 Thread Naftoli Gugenheim
. means a member of a value. # means a member of a type. On Wed, Feb 10, 2010 at 8:32 PM, Strom strommo...@gmail.com wrote: What's the difference between Enumeration.Value and Enumeration#Value? I'm getting a type mismatch error: [INFO] found : com.test.States#Value [INFO] required:

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

2010-02-09 Thread Naftoli Gugenheim
Welcome! - David Pollakfeeder.of.the.be...@gmail.com 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

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

2010-02-09 Thread Naftoli Gugenheim
in? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com 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

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

2010-02-09 Thread Naftoli Gugenheim
...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com 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

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). - GAmy_li...@me.com wrote: What we have here is a iphone native application that

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 feeder.of.the.be...@gmail.com On Sun, Feb 7, 2010 at 1:01 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: So if I get around to it would it indeed be preferable to point it to SHtml

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 Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim naftoli

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Never mind, I go your intent. Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could you give me exact instructions what to do to test my code on 2.8? git checkout -b

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Thanks - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 2:49 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Sorry - what's the Windows (eclipse) equivalent--i.e., what does that line do? Find all the files that contain FIXME

Re: [Lift] Why not SHtml?

2010-02-09 Thread Naftoli Gugenheim
Never mind, apparently I wasn't up to date. On Tue, Feb 9, 2010 at 11:20 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I got OneToMany to compile (not in a way that would work on 2.7 though). Then I tried to push it: naft...@naftoli-pc /c/dev/gitrepo/liftweb (280_port_refresh) $ git

Re: [Lift] Make MenuBuilder generate link for current page

2010-02-09 Thread Naftoli Gugenheim
linkToSelf=true? (Without getting involved in the different conventions for multiple-word attributes :) ) - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Feb 8, 2010 at 6:53 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: By default the menubuilder

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

2010-02-09 Thread Naftoli Gugenheim
If the same snippet is used by two pages you would want two separate resource bundles to be used for the same snippet? - Hugo Palmahugo.m.pa...@gmail.com wrote: So what you're saying is that a page can include a bunch of snippets and that's why it doesn't be

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-09 Thread Naftoli Gugenheim
Besides, would it even help? Is the time in obtaining a Method instance rather than invoking it? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Feb 9, 2010 at 9:10 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: Why doesn't Lift create the mapping

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

  1   2   3   4   5   6   7   8   >