[Lift] Re: Mapper subclasses

2009-09-02 Thread Naftoli Gugenheim
So I guess you can't escape the asInstanceOf. Can you successfully give the trait a self-type of this: MapperType =>, or declare it to extend Mapper[MapperType], without running into problems elsewhere? - harryh wrote: I've been handling this with traits,

[Lift] Mapper subclasses

2009-09-02 Thread Naftoli Gugenheim
In general, I find that Mapper doesn't seem to like being used in scenarios that require a class hierarchy. For example, if I need to store many kinds of Fields, but some Fields have different data than others, it would be nice to have an abstract base mapper that defines most of the fields, an

[Lift] Re: Unlinked menu

2009-09-02 Thread Naftoli Gugenheim
Thanks. Will it still be visible though? - David Pollak wrote: Add Loc.PlaceHolder to the Loc params. On Wed, Sep 2, 2009 at 12:18 PM, Naftoli Gugenheim wrote: > > How do you have an entry in the sitemap that's a parent to other Locs but >

[Lift] Unlinked menu

2009-09-02 Thread Naftoli Gugenheim
How do you have an entry in the sitemap that's a parent to other Locs but doesn't link anywhere? It should display in the menu, but not be hyperlinked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. T

[Lift] Schemify from command line

2009-09-02 Thread Naftoli Gugenheim
Is there some way to set things up to run a maven command that will Schemify? Thanks. --~--~-~--~~~---~--~~ 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 uns

[Lift] Re: Mapping MappedDouble to Postgres database

2009-09-01 Thread Naftoli Gugenheim
Not to discourage you from updating :) but I think there is a bugfix update to 1.0. - DavidV wrote: I found an old post that addresses this problem. I am still using Lift-1.0, so I'll update and that should fix the problem. -David On Sep 1, 5:11 pm, DavidV

[Lift] Archetype suggestion

2009-09-01 Thread Naftoli Gugenheim
A possble enhancement to the basic archetype: DBVendor.createOne makes use of Props.get to try to determine the database connection. Maybe it would be valuable to include a sample properties file? --~--~-~--~~~---~--~~ You received this message because you are su

[Lift] Mapper - Nullable fields

2009-08-31 Thread Naftoli Gugenheim
Maybe one way to address nullability of foreign key associations as well as other field types is as follows. Don't know if it's possible or backward compatible, but here's the concept. Make fields, including FKs, by default non-nullable--setting to Empty/null is an error, and maybe provide a ge

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread Naftoli Gugenheim
I wrote code in MappedOneToMany that calls primeObj on each child's foreign key. Do you think that makes sense? P.S. Not sure when I'll be able to push it to github. - harryh wrote: > I see what you're saying (I think). So should it always use a PreCache >

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread Naftoli Gugenheim
I see what you're saying (I think). So should it always use a PreCache QueryParam? - harryh wrote: Consider the basic book/author relationship described here: http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships When dealing with

[Lift] Re: select and selectObj questions

2009-08-31 Thread Naftoli Gugenheim
I think the problem is that since visitorTeam hasn't been saved, its id is -1 or 0, so assigning it is meaningless. Either save it first, or mix in LongMappedForeignMapper in addition to LongMappedForeignKey on the team field. The next time I commit G-d willing you'll be able to write extends L

[Lift] Re: Question about Lift/Scala & Lift Discussion Board

2009-08-30 Thread Naftoli Gugenheim
orum > >> where everything is organized according to its category and easily > >> accessible. This group is hard to find and hard to search. > >> > >> On Aug 30, 3:00 pm, "Charles F. Munat" wrote: > >> > >>> Just my two cents, but

[Lift] Re: Question about Lift/Scala & Lift Discussion Board

2009-08-30 Thread Naftoli Gugenheim
gt;> point is a mite premature. What problem, exactly, is it that we're >> trying to solve? >> >> Chas. >> >> Naftoli Gugenheim wrote: >>> Once again, I don't see how you can discuss it until you know that David's >>> fine with it.

[Lift] Re: Question about Lift/Scala & Lift Discussion Board

2009-08-30 Thread Naftoli Gugenheim
nce serious forums/wikis could be references from lift web-site or even fromthis list in the header section. Br's, Marius On Aug 30, 8:37 am, Naftoli Gugenheim wrote: > The lift community is not huge. It's David Pollak's brainchild, and I don't > see how you can discuss

[Lift] Re: Question about Lift/Scala & Lift Discussion Board

2009-08-29 Thread Naftoli Gugenheim
The lift community is not huge. It's David Pollak's brainchild, and I don't see how you can discuss creating a forum (after the fact) without his okaying it. How can you compare it to an IRC? A forum fills much of the same purpose as the list, much more than IRC. Some of the advantages mentione

[Lift] Re: some questions on lift

2009-08-29 Thread Naftoli Gugenheim
You can use any database that has a JDBC driver, using whatever setup the database/driver supports. I don't think Lift can detect things like removed fields. Schemifying is great for initializing the database and making sure everything that will be expected to be in the database is created if it do

[Lift] Re: syntax question

2009-08-28 Thread Naftoli Gugenheim
--~--~-~--~~~---~--~~ 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 email to liftweb+unsubscr...@googlegroups.com For more

[Lift] Re: syntax question

2009-08-28 Thread Naftoli Gugenheim
28, 3:49 pm, Naftoli Gugenheim wrote: > You can nest curly braces - just surround the for loop with another pair. > > - > > DavidV wrote: > > This may be more of an HTML question, but since I haven't found an > answer online, I'

[Lift] Re: syntax question

2009-08-28 Thread Naftoli Gugenheim
You can nest curly braces - just surround the for loop with another pair. - DavidV wrote: This may be more of an HTML question, but since I haven't found an answer online, I'm working in Lift and I'm sure most people here can answer this easily I figured I'd

[Lift] Re: syntax question

2009-08-28 Thread Naftoli Gugenheim
er every time I succeed in making it compile with curly braces it returns an empty table. On Aug 28, 3:49 pm, Naftoli Gugenheim wrote: > You can nest curly braces - just surround the for loop with another pair. > > - > > DavidV wrote: > >

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread Naftoli Gugenheim
How do you auto-generate them? On Thu, Aug 27, 2009 at 1:03 PM, rstradling wrote: > > I am using Lift 1.0 with the Mapper ORM module from Lift. I am a > newbie to Scala and Lift. I have auto-generated my ORM classes from > a .sql file. Given that these classes are auto-generated I would > pref

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread Naftoli Gugenheim
with certain grammars (INSERTS) but that particular grammar is > all I needed to process at the time) but is written in a way that > could be extended to the full grammar (at least that was my > intent :).. > > > On Aug 27, 1:09 pm, Naftoli Gugenheim wrote: > > How do you auto-g

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-26 Thread Naftoli Gugenheim
Neat! Maybe a better name would be asyncLoad? - David Pollak wrote: This is nifty... I think it's worthy of inclusion in Lift. Thanks for the suggestion! On Wed, Aug 26, 2009 at 2:44 PM, harryh wrote: > > Let's say you have a bit of a page like so: > > >

[Lift] Ext.Direct

2009-08-26 Thread Naftoli Gugenheim
Has anyone used lift with Ext.JS forms/Ext.Direct? P.S. It would be neat if it could interact with Lift's JSON support. I wonder what it would take. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. T

[Lift] Re: Codebase Organization...

2009-08-26 Thread Naftoli Gugenheim
If you want to compromise you can call it example-sites if it's not too verbose... - David Pollak wrote: +1 on re-org No opinion on naming +1 on archetypes On Wed, Aug 26, 2009 at 2:39 AM, Timothy Perrett wrote: > > Chaps, > > Any objections to me renaming

[Lift] Re: can I do something like this with nested snippets?

2009-08-25 Thread Naftoli Gugenheim
Yes, either in a RequestVar or make License a StatefulSnippet and use a regular class var. On Tue, Aug 25, 2009 at 4:43 PM, george wrote: > > That seems to make sense mostly. I'll give it a try. > > One thing I am not sure about is this: > > As the License.index is iterating over the licenses, w

[Lift] Re: can I do something like this with nested snippets?

2009-08-25 Thread Naftoli Gugenheim
Try (not sure if this is the correct syntax for snippet attributes): Then you need an attribute snippet Licenses.id which generates MetaData (xml attributes),

[Lift] Re: keep showing user entered value in toForm when it doesn't validate?

2009-08-25 Thread Naftoli Gugenheim
I think what David is saying is that your misdiagnosing the problem. Validation is not resetting the value; it's just failing to save, and the next page load is fetching whatever's in the database, which is the old value.Could you post the could the generates the form, and the code that retrieves t

[Lift] Re: Read context param

2009-08-25 Thread Naftoli Gugenheim
small-scale. Anyway I guess I'll do this for now and update my code when you tell me the new way to do it. Thanks! > Br's, > Marius > > On Aug 25, 8:41 pm, Naftoli Gugenheim wrote: > > That doesn't seem to help. Here's the code from D

[Lift] Re: Mapper with custom id

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

[Lift] Re: Mapper with custom id

2009-08-25 Thread Naftoli Gugenheim
there's no reason to specify it, but I think that the use case is enough to question the logic of always assuming that if the id is >0 then it's not a new record, if there is a more straightforward and accurate way to determine that. On Tue, Aug 25, 2009 at 11:17 AM, David Pollak wr

[Lift] Re: New features

2009-08-25 Thread Naftoli Gugenheim
t's 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 wrote: >> "This"

[Lift] Re: Read context param

2009-08-25 Thread Naftoli Gugenheim
ontext: HTTPContext > > LiftRules has (this was supported since a while. Sonow in boot you > have access to HTTPContext and init parameters.) > >  def context: HTTPContext > > > Br's, > Marius > > On Aug 20, 8:53 am, Naftoli Gugenheim wrote: > > H2's

[Lift] Re: Structuring Web Application

2009-08-25 Thread Naftoli Gugenheim
ards 2009/8/23 Naftoli Gugenheim : > Are you just asking for a basic overview of how all the pieces fit together > in Lift? > > - > greekscala 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
rty_? = 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 wrote: > I'm tr

[Lift] Re: New features

2009-08-25 Thread Naftoli Gugenheim
eToMany, and for ManyToMany 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." - Randinn wrote: Anyone have code showing this in action as it were?

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

[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 wrote: > > > On Mon, Aug 24, 2009 at 9:44 AM, jack wrote: > >> >> I am looking for a web

[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 Perrett 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 people are not finding

[Lift] Re: TableEditor article

2009-08-21 Thread Naftoli Gugenheim
nks for the heads up. Glenn... On Aug 20, 3:44 pm, Naftoli Gugenheim 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} > > The

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
d be a tableviewer option, > using a instead of a tag. > > Thanks for your help. > > Glenn... > > On Aug 20, 2:20 pm, Naftoli Gugenheim wrote: > > The name is really a misnomer. It's not a MappedField. So it's missing > the opposite half: it _is_ the "validSelec

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
maybe a drag-and-drop capability or some add/remove buttons in between. I guess there is no good default solution. One enhancement to your tableeditor would be a tableviewer option, using a instead of a tag. Thanks for your help. Glenn... On Aug 20, 2:20 pm, Naftoli Gugenheim wrote: > The n

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
idn'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 wrote: > > > I just wrot

[Lift] Re: TableEditor article

2009-08-20 Thread Naftoli Gugenheim
p 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 wrote: > I just wrote a brief wiki article on GitHub about using TableEditor, but not > being famili

[Lift] Re: How to get list of mapped fields from MetaMapper?

2009-08-20 Thread Naftoli Gugenheim
Take a look at net.liftweb.mapper.view.Util--there are some methods for iterating fields. - David Pollak wrote: On Thu, Aug 20, 2009 at 10:40 AM, Jeppe Nejsum Madsen wrote: > > David Pollak writes: > > > [...] > > >> On a related note, why aren't many of th

[Lift] Re: H2 schema

2009-08-20 Thread Naftoli Gugenheim
Now you do see it? - Jeppe Nejsum Madsen wrote: On Thu, Aug 20, 2009 at 4:54 PM, Naftoli Gugenheim wrote: > I didn't understand what you meant, but I did commit this since then. > Actually the schema is PUBLIC, not public (DatabaseMetaData seems t

[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 . - marius d. wrote: Well the way I see it is

[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). - nejsum wrote: On Aug 16, 4:47 am, Naftoli Gugenheim wrote: > There was a bug discussed recent

[Lift] Re: Read context param

2009-08-19 Thread Naftoli Gugenheim
an application config ... but that's just me. Br's, Marius On Aug 20, 1:15 am, David Pollak wrote: > On Wed, Aug 19, 2009 at 11:29 AM, Naftoli Gugenheim > wrote: > > > > > How can I read a context param (e.g. H2 sets "connection" param)? > >

[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. - g-man wro

[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 Gregory wrote: Lifted, i readily confess to being a total idiot. i'm always running into this problem of not knowing when the namespac

[Lift] Re: Read context param

2009-08-19 Thread Naftoli Gugenheim
gt; S.servletRequest match { >case Full(r) => r.getSession.getServletContext.getInitParameter > ("foo") >case _ => "" > } >) > > Best regards, > inca > > On 19 авг, 22:29, Naftol

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

[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. - harryh wrote: I have a List[Foo] and I want to construct a table with 10 columns and however many rows necessary to contain all the Foos. I f

[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. Ano

[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? - george 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 user row in the database.

[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? - george wrote: The long value seems to be updated correctly. But it doesn't make it into the database. private def saveAddresses(u:User) : Unit = { u.address(u.address.o

[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
I'm guessing you're using primeObj. What happens if you change that Log.info to show the foreign key Long value? - george wrote: I last tried your LongMappedForeignMapper about a week ago and it had exactly the same problem. I am also using the lifecycle cal

[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: Test mail

2009-08-17 Thread Naftoli Gugenheim
uot;Subject: " + msg.getHeaderValue("Subject")) > log.info("Body: " + msg.getBody) > log.info > ("--") >} >case Scheduled => log.info("LocalSmtp logging

[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: Invoking Views

2009-08-17 Thread Naftoli Gugenheim
Sorry, I didn't notice that you were using views. On Mon, Aug 17, 2009 at 4:17 PM, Michel Klijn wrote: > > Thank you, one thing though. The expression: "MyView" :: _ didn't > convert into a Link object with directory listing true. So instead I > used: > Menu(Loc("MyView",new Link("MyView" :: Nil

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
hat lets you write more concisely: bind("prefix", xhtml, "edit" %> SHtml.text(...) ) This will let you put attributes in the view. For example, On Mon, Aug 17, 2009 at 3:49 PM, David Pollak wrote: > > > On Mon, Aug 17, 2009 at 12:48 PM, Naftoli Gugenheim &g

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
Should I leave it in view.Util? Or is there a better place? Because I really meant it (actually the whole view package) to support Mapper-based views, and this isn't related to Mapper. On Mon, Aug 17, 2009 at 3:46 PM, David Pollak wrote: > > > On Mon, Aug 17, 2009 at 12:

[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("prefix

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

[Lift] Re: Attributes question

2009-08-17 Thread Naftoli Gugenheim
{node: NodeSeq => mixinAttributes(expr _that_yields_an_Elem) > (node)} > > Would that be too ... boilerplate for you? > > Br's, > Marius > > On Aug 14, 11:18 pm, Naftoli Gugenheim wrote: > > As I mentioned, I wrote some code that allows you to use %> inst

[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 wrote: > > > On Mon, Aug 17, 2009 at 9:25 AM, Derek Chen-Becker > wrote: > >> I think that that's a gen

[Lift] Re: Debug log level

2009-08-17 Thread Naftoli Gugenheim
ing Lift or not. > > Derek > > > On Sun, Aug 16, 2009 at 6:14 PM, Naftoli Gugenheim > wrote: > >> >> 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

[Lift] Re: Deploying

2009-08-17 Thread Naftoli Gugenheim
;s site? (And what exactly *is* tunaforcats.com ??!) Question 2: Any reason to run H2 either as a separate process or as part of the webapp? Thanks. On Mon, Aug 17, 2009 at 3:00 AM, Jeppe Nejsum Madsen wrote: > > Naftoli Gugenheim writes: > > > What's the best way to get a lift a

[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: IMPORTANT for H2 users

2009-08-17 Thread Naftoli Gugenheim
hich you pass to DB.defineConnectionManager). Thanks, David! On Mon, Aug 17, 2009 at 12:31 PM, Derek Chen-Becker wrote: > I think that you'd have to do it programmatically in the connection setup > (in ConnectionManager). > > > On Mon, Aug 17, 2009 at 12:32 AM, Naftoli Gugenheim > wrote

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

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

[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] Re: Debug log level

2009-08-16 Thread Naftoli Gugenheim
48 PM, Naftoli Gugenheim wrote: > > 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 ema

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

[Lift] H2 schema

2009-08-15 Thread Naftoli Gugenheim
There was a bug discussed recently about connecting to H2 with a username and not being able to schemify, caused by the schema defaulting to the username, a schema that does not exist. I just learned that H2's default schema is actually "public"--go to the H2 console, create table public.bar ..

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
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: &

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
ls will enter that are before dispatch gets 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

[Lift] Re: Redirecting during stateful snippet instantiation

2009-08-14 Thread Naftoli Gugenheim
Also, the docs for S.mapSnippet claim per-session, but the docs for S.snippetMap (which mapSnippet uses) claim per-request, so it might be even more onerous. -Ross On Aug 14, 2009, at 5:30 PM, Naftoli Gugenheim wrote: > Not sure if I read your message closely enough, but if you want to &g

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

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
lper 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 wrote: > The book seems to think it's intentional! > But why can't unprefixed nodes by p

[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 Pollak wrote: On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim wrote: > > Where above? The contents of my me

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
ntax or feature? Thanks. - David Pollak wrote: On Fri, Aug 14, 2009 at 9:55 AM, Naftoli Gugenheim wrote: > > 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. This

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
: On Fri, Aug 14, 2009 at 9:43 AM, Naftoli Gugenheim wrote: > > 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 automatically? I

[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 Pollak wrote: On Fri, Aug 14, 2009 at 9:23 AM, Naftoli Gugenheim wrote: &

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
Exactly! - Derek Chen-Becker wrote: Basically, you're asking why a bind tag like doesn't preserve the id and class attrs when it binds, but does? Derek On Fri, Aug 14, 2009 at 10:08 AM, Naftoli Gugenheim wrote: > > Of course you ca

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
tributes of an Elem that you are replacing during a bind operation, you have access to the current node via Helpers.currentNode: Box[Elem] and you can get the attributes: currentNode.map(_.attributes) openOr Null > > I'm getting this from Exploring Lift page 115. > > > > ---

[Lift] Re: Attributes question

2009-08-14 Thread Naftoli Gugenheim
ther 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 wrote: > What I would like to do: > Name  class="special" style="verti

[Lift] Re: Attributes question

2009-08-13 Thread Naftoli Gugenheim
nippet but that's it. I'm getting this from Exploring Lift page 115. - David Pollak wrote: On Thu, Aug 13, 2009 at 7:24 PM, Naftoli Gugenheim wrote: > > Why was the decision made, if I understand correctly, that normal > attributes are not p

[Lift] Re: Bind problem

2009-08-13 Thread Naftoli Gugenheim
Of the same prefix, that is... - Naftoli Gugenheim wrote: 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 Pollak wrote: On Thu

[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 Pollak wrote: On Thu, Aug 13, 2009 at 7:09 PM, Naftoli Gugenheim wrote: > > Is this according to the specs?

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

2009-08-13 Thread Naftoli Gugenheim
Is this according to the specs? bind("x", , "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 liftweb@goo

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

[Lift] Re: Mapper nullability

2009-08-12 Thread Naftoli Gugenheim
I filed an issue: http://github.com/dpp/liftweb/issues/#issue/48There's something wrong with the code formatting. Also for NOT NULL - http://github.com/dpp/liftweb/issues#issue/47 On Tue, Aug 11, 2009 at 2:44 PM, David Pollak wrote: > > > On Sun, Aug 9, 2009 at 6:15 PM, Naftoli G

[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 wrote: > > I just fixed the article markup - thanks for writing it up. > > Cheers, Tim > > On Aug 12, 10:51 pm, Naftoli Gugenheim wrote: > > Apparently some less than/g

<    2   3   4   5   6   7   8   9   >