[Lift] Re: New features

2009-08-06 Thread Naftoli Gugenheim
running the application and you get things like stack overflow errors. How you would fix this is beyond me. All you can really do, at this point, is make sure to include these kinds of restrictions in the docs. Glenn... On Aug 6, 9:33 am, Naftoli Gugenheim naftoli...@gmail.com wrote

[Lift] Re: Title function

2009-08-06 Thread Naftoli Gugenheim
to the edit page will set the RequestVar, something like: S.redirectTo(/edit, () = Info.toEdit(Full(someInfoStuffInstance))) Does that make sense? Derek On Wed, Aug 5, 2009 at 11:14 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: You mean the snippet should put its new/edit flag

[Lift] Re: How do I create a function that takes MetaMappers?

2009-08-06 Thread Naftoli Gugenheim
Pull M out as a type parameter and just declare the value parameter to be whatever M means. - Ross Mellgrendri...@gmail.com wrote: What complaint does the compiler have? -Ross On Aug 6, 2009, at 2:06 PM, jon wrote: I'd like to do something like

[Lift] Re: SiteMap gives No Navigation Defined.

2009-08-06 Thread Naftoli Gugenheim
Not sure why you're getting no nav, but I think you want to change the other Home - the first string is the id of the link. - pabrahampaulabraham...@googlemail.com wrote: Hello there, I've been looking at SiteMap and trying to get it to give me a page

[Lift] Re: StatefulSnippet link and functionMap

2009-08-06 Thread Naftoli Gugenheim
No, because links have associated functions. - glenngl...@exmbly.com wrote: I have a stateful snippet with multiple StatefulSnippet links in the bind helper. Clicking on each link gives me a 403 error. I noticed that the function map for each link is

[Lift] Re: Eclipse setup

2009-08-07 Thread Naftoli Gugenheim
I didn't see the ticket, but I use m2eclipse all the time. What problems is it accused of causing? :) I thought that the command line mvn eclipse:eclipse was dangerous because it changed metadata from outside eclipse! - Miles Sabinmi...@milessabin.com wrote:

[Lift] Re: Eclipse setup

2009-08-07 Thread Naftoli Gugenheim
I don't think I used it to import projects, only to create them or add maven support to them. It's possible that adding and removing natures isn't something that would stick out in my memory, so I can't say whether I needed to or thought that I wouldn't need to. After all if I was using GAE

[Lift] Re: New Mapped Fields (MappedTimestamp and MappedMac)

2009-08-08 Thread Naftoli Gugenheim
As for all the overrides, looking at it again I see that I didn't need to override all those build methods. The others are still needed to have millisecond Longs where appropriate. Peter Peter On Aug 4, 1:17 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Didn't look very

[Lift] Re: New features

2009-08-08 Thread Naftoli Gugenheim
eliminate the need to have the type parameters. If it breaks thing, please revert the changes. On Thu, Aug 6, 2009 at 9:55 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: In your use case it can only be Long and User. But there has to be a type parameter because other people might have a String key

[Lift] Re: Alternate part of view

2009-08-09 Thread Naftoli Gugenheim
in it? - David Pollakfeeder.of.the.be...@gmail.com wrote: I really need to see the resulting view code that you'd like to see depending on the conditions. On Thu, Aug 6, 2009 at 7:47 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: No, I meant

[Lift] Mapper nullability

2009-08-09 Thread Naftoli Gugenheim
Does Mapper have control over the nullability of a column? Is there a way to specify NOT NULL? Also, what am I doing wrong if my IdPK'd tables aren't having their id columns created as primary keys in H2? Thanks. --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Alternate part of view

2009-08-09 Thread Naftoli Gugenheim
6, 2009 at 9:28 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Here's some view xhtml: req:noClient label for=clientqueryClient /label client:query id=clientquery size=5/ client:set / /req:noClient req:client Client client:unset / client:editclient:name //client:editbr

[Lift] Re: Mapper nullability

2009-08-10 Thread Naftoli Gugenheim
open an issue). I'm not sure about the H2 issue. What does the output from Schemifier look like when it runs? Derek On Sun, Aug 9, 2009 at 7:15 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Does Mapper have control over the nullability of a column? Is there a way to specify NOT NULL? Also

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
node and bind on that (sometimes), but what have I saved? Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Aug 6, 2009 at 9:28 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Here's some view xhtml: req:noClient label

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
you are calling it from within bind then why is it better than a NodeSeq function (FuncBindParam)? Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Aug 10, 2009 at 11:18 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: The problem

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
, ...) case = 1 - bind(client, ns, ...) }}) Also using my implicit several such invocations could easily be chained. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Aug 10, 2009 at 11:18 AM, Naftoli Gugenheim naftoli...@gmail.comwrote

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Aug 10, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: By context I mean where it is in the xml. For example, br's between the switch and everything else. In other words, your code implements a switch. But where are you putting

[Lift] Re: Alternate part of view

2009-08-10 Thread Naftoli Gugenheim
, and class variables are less preferable than direct scope access. Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Aug 10, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: By context I mean where it is in the xml. For example, br's

[Lift] Re: New features

2009-08-10 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.com wrote: Thanks, David. Glenn, as far as the issue of adding unsaved children, I was thinking about it. If the same Role can be referenced by multiple users, why are you creating Roles at the same time that you are adding them to a User? Shouldn't

[Lift] Re: New features

2009-08-10 Thread Naftoli Gugenheim
...@gmail.com wrote: I've got negative available time.  Sorry. On Mon, Aug 10, 2009 at 1:28 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: It looks like some .is's need to be explicit. I wonder if the implicit doesn't apply now that it's using member types? David, if you choose

[Lift] Re: bind with outer element?

2009-08-11 Thread Naftoli Gugenheim
If I'm not mistaken, S.attr is an attribute on the snippet xml node; for the node currently being processed by bind you use BindHelpers.attr - Timothy Perretttimo...@getintheloop.eu wrote: Jon, To read attributes, you do the following: S.attr(shorten) //

[Lift] Re: Alternate part of view

2009-08-11 Thread Naftoli Gugenheim
way to do this. On Aug 10, 8:05 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: For example, I have requests. Every request is of a particular nature. Every nature specifies a set of location types--for example a Transportation request has a From and a To--and each type has a set of allowed

[Lift] Re: Mapper Problem: id = -1 after safe

2009-08-11 Thread Naftoli Gugenheim
Code to reproduce? On Tue, Aug 11, 2009 at 6:27 AM, steffen.weissmann steffen.weissm...@googlemail.com wrote: Hi, I have two Mapper classes, both extend LongKeyedMapper[...] with IdPK. When i create and save an instance of each class, one keeps id=-1, the other class nicely counts up as i

[Lift] Re: Mapper nullability

2009-08-11 Thread Naftoli Gugenheim
Is this output expected or odd? On Mon, Aug 10, 2009 at 12:33 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: INFO - CREATE TABLE requestlocationstringvalue (ID BIGINT NOT NULL AUTO_INCREMENT , field BIGINT , requestlocation BIGINT) INFO - CREATE INDEX requestlocationstringvalue_id

[Lift] Re: Mapper nullability

2009-08-11 Thread Naftoli Gugenheim
Is this output expected or odd? On Mon, Aug 10, 2009 at 12:33 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: INFO - CREATE TABLE requestlocationstringvalue (ID BIGINT NOT NULL AUTO_INCREMENT , field BIGINT , requestlocation BIGINT) INFO - CREATE INDEX requestlocationstringvalue_id

[Lift] Re: how do you initialise a MappedLongForeignKey object?

2009-08-11 Thread Naftoli Gugenheim
Try mixing in LongMappedForeignMapper to address, or calling address.primeObj(addressObj). What doesn't work the way you tried? - georgegeo...@mattandgeorge.com wrote: I have extended MegaProtoUser in order to add a related Address object which is a

[Lift] Re: how do you initialise a MappedLongForeignKey object?

2009-08-11 Thread Naftoli Gugenheim
Did you try LongMappedForeignMapper? I created it for this exact purpose, so if it's not working I want to know. Thanks. - georgegeo...@mattandgeorge.com wrote: Hi Steffen, thanks for the thought. In your case I think the User object will already be saved

[Lift] Re: how do you initialise a MappedLongForeignKey object?

2009-08-11 Thread Naftoli Gugenheim
-relationships How does it work for a 1 - 1 relationship? On Aug 11, 10:36 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Did you try LongMappedForeignMapper? I created it for this exact purpose, so if it's not working I want to know. Thanks

[Lift] Re: how do you initialise a MappedLongForeignKey object?

2009-08-11 Thread Naftoli Gugenheim
Full(a) = a case _ = val a = new Address address(a) a } But the problem now is that the corresponding foreign key on the users table is not set... On Aug 11, 11:13 pm, Naftoli Gugenheim naftoli

[Lift] Re: bind with outer element?

2009-08-11 Thread Naftoli Gugenheim
Doesn't the FuncBindParam only get the element's child NodeSeq? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Aug 10, 2009 at 1:44 PM, jon jonhoff...@gmail.com wrote: Hi, I have a template with the following lift:Snippit t:name

[Lift] Re: Two concerns about Lift

2009-08-12 Thread Naftoli Gugenheim
Lift is not strictly MVC. Snippets are a very powerful feature but they are also very flexible. How you design your application is up to you. Lift also supports many response types. Are you asking for a JSON version of the snippet system? What exactly would you like to see and don't?

[Lift] Re: how do you initialise a MappedLongForeignKey object?

2009-08-12 Thread Naftoli Gugenheim
...@mattandgeorge.com wrote: I add the address to the user user.address(a) later on the user gets saved the address is inserted in the address table but in the user table, the address id is NULL On Aug 11, 11:36 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: What do you mean

[Lift] TableEditor article

2009-08-12 Thread Naftoli Gugenheim
I just wrote a brief wiki article on GitHub about using TableEditor, but not being familiar with the formatting syntax, the code snippets are truncated. Can anyone take a look at it and fix it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: TableEditor article

2009-08-12 Thread Naftoli Gugenheim
http://wiki.github.com/dpp/liftweb/example-use-tableeditor-to-manage-simple-lists On Wed, Aug 12, 2009 at 5:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I just wrote a brief wiki article on GitHub about using TableEditor, but not being familiar with the formatting syntax, the code

[Lift] Re: TableEditor article

2009-08-12 Thread Naftoli Gugenheim
Apparently some less than/greater than signs aren't being converted into their entity format. On Wed, Aug 12, 2009 at 5:49 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: http://wiki.github.com/dpp/liftweb/example-use-tableeditor-to-manage-simple-lists On Wed, Aug 12, 2009 at 5:48 PM

[Lift] Re: TableEditor article

2009-08-12 Thread Naftoli Gugenheim
Thanks. What did you have to do to fix the markup? On Wed, Aug 12, 2009 at 6:22 PM, Timothy Perrett timo...@getintheloop.euwrote: I just fixed the article markup - thanks for writing it up. Cheers, Tim On Aug 12, 10:51 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Apparently some

[Lift] Re: Mapper nullability

2009-08-12 Thread Naftoli Gugenheim
PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Does Mapper have control over the nullability of a column? Is there a way to specify NOT NULL? No. Support for particular databases will set primary keys to NOT NULL. Also, what am I doing wrong if my IdPK'd tables aren't having their id

[Lift] primeObj

2009-08-12 Thread Naftoli Gugenheim
Why doesn't MappedLongForeignKey.apply(v: O) call primeObj? And why doesn't setting its value directly invalidate the cache? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Bind problem

2009-08-13 Thread Naftoli Gugenheim
Is this according to the specs? bind(x, x:ax:b //x:a, b - c) just returns the original NodeSeq untransformed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Attributes question

2009-08-13 Thread Naftoli Gugenheim
Why was the decision made, if I understand correctly, that normal attributes are not preserved in a bound node, and are are only available for the snippet's usage, and if you want the attribute to be sticky you have to prefix it with lift:? Wouldn't it be better the other way? One of lift's

[Lift] Re: Bind problem

2009-08-13 Thread Naftoli Gugenheim
Which means that chaining binds is only useful when they operate on nodes that are side by side or are order outer first... Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Aug 13, 2009 at 7:09 PM, Naftoli Gugenheim naftoli

[Lift] Re: Bind problem

2009-08-13 Thread Naftoli Gugenheim
Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Aug 13, 2009 at 7:09 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is this according to the specs? Yes. a:x fails binding and by default, it is returned. There is no nesting or recursion in the seeking of the nested elements. bind(x

[Lift] Re: Attributes question

2009-08-13 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.comwrote: Why was the decision made, if I understand correctly, that normal attributes are not preserved in a bound node, and are are only available for the snippet's usage, and if you want the attribute to be sticky you have to prefix it with lift:? Wouldn't

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
sense. Unprefixed attributes here may be attributes that have nothing to do with output node, but rather with processing logic. To change this behavior a consensus should be made. Personally I'm not truly convinced it should be but who knows ... Br's, Marius On Aug 14, 7:06 am, Naftoli Gugenheim

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
13, 2009 at 9:06 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What I would like to do: label for=nameName/labelnbsp;person:name I'd=name size=10 class=special style=vertical-align: top maxlength=5 tabindex=1 / Okay, just a little contrived... My understanding is you can do

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
On Fri, Aug 14, 2009 at 10:08 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Of course you can access it from the snippet. But if you want it to be output automatically, then you prefix it with whatever the node's prefix is. In other words, by default it's not outputted

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
The book seems to think it's intentional! But why can't unprefixed nodes by preserved automatically? Maybe there could be a setting? Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Aug 14, 2009 at 9:23 AM, Naftoli Gugenheim naftoli

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Aug 14, 2009 at 9:43 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: The book seems to think it's intentional! I'm not sure how the code crept in, but it's wrong and should not have been part of Lift. But why can't unprefixed nodes by preserved

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Where above? The contents of my messages send 35 minutes ago: This has nothing to do with snippets. This is below the level of the snippet

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
By the way, there does seem to be some other kind of built in attribute binding mechanism (BindWithAttr, etc.). How does it work? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim naftoli...@gmail.comwrote

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
to copy attributes is needed IMO. So Naftoli if you want to do this please go ahead ... or if you don't want it I'll do it. Br's, Marius On Aug 14, 7:43 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: The book seems to think it's intentional! But why can't unprefixed nodes by preserved automatically

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
Not sure if I read your message closely enough, but if you want to redirect to a pre-initialized StatefulSnippet, one option is to instantiate it and use its snippet function in call to S.mapSnippet, in the redirect function. This will override lift's default behavior and use the snippet

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
, at 5:30 PM, Naftoli Gugenheim wrote: Not sure if I read your message closely enough, but if you want to redirect to a pre-initialized StatefulSnippet, one option is to instantiate it and use its snippet function in call to S.mapSnippet, in the redirect function. This will override

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
called. Seems a bit ugly, but at least I don't have to pass all my state down to the snippet methods by hand. You refer to Request, Client, etc, which don't mean anything to me. What are you talking about? -Ross On Aug 14, 2009, at 6:27 PM, Naftoli Gugenheim wrote: I think it's a mistake

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
. -Ross On Aug 14, 2009, at 7:09 PM, Naftoli Gugenheim wrote: They're just names of pages in my app which have a similar functionality. Anyway, one method you can use is: Make your snippet functions actually have a parameter list before the xhtml parameter list: def edit(x: X)(xhtml: NodeSeq

[Lift] Debug log level

2009-08-16 Thread Naftoli Gugenheim
How do you set the log level to include debug output? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send

[Lift] Re: Debug log level

2009-08-16 Thread Naftoli Gugenheim
, 2009 at 3:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: How do you set the log level to include debug output? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email

[Lift] Deploying

2009-08-16 Thread Naftoli Gugenheim
What's the best way to get a lift app running on a Ubuntu web server I can SSH into with full permissions? It came with almost nothing installed. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group.

[Lift] IMPORTANT for H2 users

2009-08-16 Thread Naftoli Gugenheim
I fixed the H2 default schema to be PUBLIC (top level in H2 console is PUBLIC) rather than Empty (username). This bug prevented one from schemifying a new database without creating the schema of the username first, and using the schema in the url. However, if you use the schema in the URL lift

[Lift] Re: CMS for Lift?

2009-08-17 Thread Naftoli Gugenheim
Note that there have been some fixes to OneToMany, LongMappedForeignMapper, and ManyToMany recently. Also, if you like it fine, but keep in mind that I'm not a professional programmer with years of experience, nor is the implementation a result of any sort of research. I simply wished to have

[Lift] Re: Invoking Views

2009-08-17 Thread Naftoli Gugenheim
Are you coming from an MVC framework? Many of them use the approach you described, but Lift does not.MyView.hi (under the covers MyView.doRender of course) is a snippet. Snippets are XML transformers. On the other hand, the page you put into your SiteMap should refer to an x(h)tml document, which

[Lift] Re: Debug log level

2009-08-17 Thread Naftoli Gugenheim
or not. Derek On Sun, Aug 16, 2009 at 6:14 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Thanks. The book makes it sound like the file should be called log4j.props, and the repository has files called log4j.properties. I haven't used log4j before, but apparently putting one

[Lift] Re: ws-generated code in lift

2009-08-17 Thread Naftoli Gugenheim
Does that imply any reason not to have % as a bind-with-attributes syntax? See http://groups.google.com/group/liftweb/msg/1fbf7df2009abf9e?hl=en On Mon, Aug 17, 2009 at 1:20 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:25 AM, Derek Chen-Becker

[Lift] Re: Attributes question

2009-08-17 Thread Naftoli Gugenheim
, Marius On Aug 14, 11:18 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: As I mentioned, I wrote some code that allows you to use % instead of - to preserve the attributes. (I chose it because the % symbol is used to merge attributes to an Elem.) The right side can be an Elem or a Box/Option

[Lift] Case insensitive LIKE query

2009-08-17 Thread Naftoli Gugenheim
I'm using H2, and LIKE queries seem to be case sensitive. What should I do to search fields without being case sensitive?For example, right now I have: Client.findAll(Like(field, %+v+%)) In SQL I can write SELECT FIRST FROM CLIENT WHERE UPPER(FIRST) LIKE '%A%'; So is there a way to specify

[Lift] Test mail

2009-08-17 Thread Naftoli Gugenheim
How can I test mailing when offline? (Besides having a switch in my program to output mailed emails.)It would be nice if you could have all mails logged, with all their headers and body, and whether it was sent, preferably to a separate log file.

[Lift] bind implicits

2009-08-17 Thread Naftoli Gugenheim
What do people think of the following? I wrote some implicits that allow you to call bind as a method on a NodeSeq, allowing you to chain several bind statements.For example: def edit(xhtml: NodeSeq) = xhtml.bind(prefix1, label1 - value1, label2 - value2 ).bind(prefix2,

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
at 12:44 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What do people think of the following? I wrote some implicits that allow you to call bind as a method on a NodeSeq, allowing you to chain several bind statements.For example: def edit(xhtml: NodeSeq) = xhtml.bind(prefix1

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
in the view. For example, prefix:edit size=10 style=margin: 70 / On Mon, Aug 17, 2009 at 3:49 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at 12:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Should I leave it in view.Util? Or is there a better place

[Lift] GitHub markup

2009-08-17 Thread Naftoli Gugenheim
I wrote (in a major rush) an example of using Paginator on the wiki. http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headersI haven't figured out the markup too well though so it's not displaying correctly. Can someone fix it? Thanks.

[Lift] Re: Test mail

2009-08-17 Thread Naftoli Gugenheim
= log.error(LocalSmtp actor received invalid event: +any.asInstanceOf[Object].getClass.getName) } } } case object LogMessagesEvent } On Aug 17, 3:41 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: How can I test mailing when offline? (Besides having a switch in my program to output

[Lift] Re: managing foreign key object relationships with mapper

2009-08-18 Thread Naftoli Gugenheim
How recently did you try LongMappedForeignMapper? It's been updated recently. In any case, if you attach the test project I will try to look at it, but it may help to clarify: what is the sequence of events of saving user / saving address / setting value of user.address? The problem is that the

[Lift] Re: managing foreign key object relationships with mapper

2009-08-18 Thread Naftoli Gugenheim
I'm guessing you're using primeObj. What happens if you change that Log.info to show the foreign key Long value? - georgegeo...@mattandgeorge.com wrote: I last tried your LongMappedForeignMapper about a week ago and it had exactly the same problem. I am

[Lift] Re: Has anyone tried Stax?

2009-08-18 Thread Naftoli Gugenheim
You set whether you want a shared server, or dedicated/various speeds. In any case, is there room to entertain the thought of at some point adding support in Lift to propogate sessions across instances? (Is it easier now that it's been decoupled from servlets?)

[Lift] Re: managing foreign key object relationships with mapper

2009-08-18 Thread Naftoli Gugenheim
And is the User saved after its address has been updated to 69? - georgegeo...@mattandgeorge.com wrote: The long value seems to be updated correctly. But it doesn't make it into the database. private def saveAddresses(u:User) : Unit = {

[Lift] Re: managing foreign key object relationships with mapper

2009-08-18 Thread Naftoli Gugenheim
Where do you call user.save? Does it return true? Is user.address still a positive number after? - georgegeo...@mattandgeorge.com wrote: What do you mean by is it saved? The long value of the address field is not being saved to the address FK field on the

[Lift] Re: how to construct a table with a set number of columns

2009-08-18 Thread Naftoli Gugenheim
You mean a word wrap / FlowLayout type of arrangement? One idea is to have two snippets like yours, one for tr's and one for td's; and make you class a StatefulSnippet and initialize a 2D array there (or the RequestVar equivalent); and prepare the row for the td snippet in the tr snippet.

[Lift] Re: how to construct a table with a set number of columns

2009-08-18 Thread Naftoli Gugenheim
With the second option you might be able to do a foldLeft instead of a flatMap to List.take(10) one row at a time. - harryhhar...@gmail.com wrote: I have a List[Foo] and I want to construct a table with 10 columns and however many rows necessary to contain

[Lift] Read context param

2009-08-19 Thread Naftoli Gugenheim
How can I read a context param (e.g. H2 sets connection param)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this

[Lift] Re: Read context param

2009-08-19 Thread Naftoli Gugenheim
( S.servletRequest match { case Full(r) = r.getSession.getServletContext.getInitParameter (foo) case _ = } ) Best regards, inca On 19 авг, 22:29, Naftoli Gugenheim naftoli...@gmail.com wrote: How can I read a context param (e.g. H2 sets connection param

[Lift] Re: clue for the clueless?

2009-08-19 Thread Naftoli Gugenheim
That's probably a Firefox XML error - look at view source and see what the Elem label is that's not being bound. - Meredith Gregorylgreg.mered...@gmail.com wrote: Lifted, i readily confess to being a total idiot. i'm always running into this problem of not

[Lift] Re: slow down ajax?

2009-08-19 Thread Naftoli Gugenheim
Are you using maven to compile? Delete any earlier jar so you rule out that possibility. Also, if you turn on debug output in maven (-X) it might tell you the path that it's using to invoke the compiler so you can see which jar it's using if any. -

[Lift] Re: Read context param

2009-08-19 Thread Naftoli Gugenheim
config or an application config ... but that's just me. Br's, Marius On Aug 20, 1:15 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Aug 19, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: How can I read a context param (e.g. H2 sets connection param)? Why

[Lift] Re: H2 schema

2009-08-20 Thread Naftoli Gugenheim
I didn't understand what you meant, but I did commit this since then. Actually the schema is PUBLIC, not public (DatabaseMetaData seems to care). - nejsumje...@ingolfs.dk wrote: On Aug 16, 4:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote

[Lift] Re: lift:with-params deprecation alternatives

2009-08-20 Thread Naftoli Gugenheim
Personally I think that as a replacement for the at attribute when there are a few binds, it would be more consistent to name the element at too, and think of something else for the attribute: Something like lift:at name=sidebar. - marius

[Lift] Re: H2 schema

2009-08-20 Thread Naftoli Gugenheim
Now you do see it? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Thu, Aug 20, 2009 at 4:54 PM, Naftoli Gugenheimnaftoli...@gmail.com wrote: I didn't understand what you meant, but I did commit this since then. Actually the schema is PUBLIC, not public

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
in the template didn't pick up the MappedManyToMany object in the class. Is there some method that I need to override,or is there some way to write the template that will resolve this? Glenn... On Aug 12, 2:48 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I just wrote a brief wiki article on GitHub

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.com wrote: The name is really a misnomer. It's not a MappedField. So it's missing the opposite half: it _is_ the validSelectValues but it doesn't have the toForm method of MappedField's to make use of its values. I'm not sure how a hypothetical toForm would

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
a field:toXml instead of a field:form tag. Thanks for your help. Glenn... On Aug 20, 2:20 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: The name is really a misnomer. It's not a MappedField. So it's missing the opposite half: it _is_ the validSelectValues but it doesn't have the toForm

[Lift] Re: TableEditor article

2009-08-21 Thread Naftoli Gugenheim
20, 3:44 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: It's not too hard to make your own without ajax. def addRemove(c: Child) = (_:Boolean) match {   case true = if(!field.contains(c)) field+=c   case false = field -= c} Then iterate (flatMap) over Child.findAll creating a checkbox

[Lift] Re: [Lift committers] Documentation

2009-08-24 Thread Naftoli Gugenheim
Anyone want to make a list of questions that need to be documented? :) - Tim Perretttimo...@getintheloop.eu wrote: Folks, Im sure others have noticed, but there are a serious amount of n00b questions in and around mapper recently - this indicates to me that

[Lift] Re: Looking for web hosting company for Lift

2009-08-24 Thread Naftoli Gugenheim
Also Rackspace Cloud Servers (Mosso) offers for about $10 full root access to 256Mb RAM and 10Gb disk, which you can resize later. You pay by bandwidth on top. On Mon, Aug 24, 2009 at 1:32 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 24, 2009 at 9:44 AM, jack

[Lift] Mapper with custom id

2009-08-24 Thread Naftoli Gugenheim
I'm trying to import data from a non-mapper-based database to one that is. I'm reading data with DB.exec and trying to save it using Mapper, but it's not getting saved. I'm guessing that since I'm setting the id (in runSafe) it thinks it needs to do an update, not an insert. Is there a

[Lift] Re: New features

2009-08-25 Thread Naftoli Gugenheim
it should not be a problem because usually the children exist independently of the parent--that's why they can have 0 or 1 or more parents. - Randinnrand...@gmail.com wrote: Anyone have code showing this in action as it were? On Aug 6, 8:39 am, Naftoli Gugenheim

[Lift] Re: Structuring Web Application

2009-08-25 Thread Naftoli Gugenheim
regards 2009/8/23 Naftoli Gugenheim naftoli...@gmail.com: Are you just asking for a basic overview of how all the pieces fit together in Lift? - greekscalahellectro...@gmail.com wrote: Hello Timothy, thank you. I know that I do not need Spring for Scala

[Lift] Re: Mapper with custom id

2009-08-25 Thread Naftoli Gugenheim
? = myDirty override def dirty_?(b : Boolean) = { myDirty = b; super.dirty_?(b) } override def fieldCreatorString(dbType: DriverType, colName: String): String = colName+ CHAR(+maxLen+) NOT NULL } Peter On Aug 24, 5:30 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I'm trying

[Lift] Re: New features

2009-08-25 Thread Naftoli Gugenheim
a slower-than- molasses interface. It's buggy and user-hostile in my opinion. I'm looking for an alternative to make it public. Any suggestions would be appreciated. Glenn... On Aug 25, 7:08 am, Naftoli Gugenheim naftoli...@gmail.com wrote: This meaning the problem, or meaning ManyToMany? It's

[Lift] Re: Mapper with custom id

2009-08-25 Thread Naftoli Gugenheim
, if there is a more straightforward and accurate way to determine that. On Tue, Aug 25, 2009 at 11:17 AM, David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Aug 25, 2009 at 7:08 AM, Naftoli Gugenheim naftoli...@gmail.com wrote: I had seen that thread, but it doesn't make sense to add all that code

[Lift] Re: Read context param

2009-08-25 Thread Naftoli Gugenheim
and init parameters.)  def context: HTTPContext Br's, Marius On Aug 20, 8:53 am, Naftoli Gugenheim naftoli...@gmail.com wrote: H2's DbStarter reads the url/username/password and stores a connection object back in the servlet context. - marius

[Lift] Re: Mapper with custom id

2009-08-25 Thread Naftoli Gugenheim
On Tue, Aug 25, 2009 at 2:31 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Aug 25, 2009 at 10:56 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: It definitely would have been an option, although it would have been more difficult due to the complex structure of the new

<    1   2   3   4   5   6   7   8   >