[Lift] Trouble with lift, GAE, JPA, adding child records

2009-05-26 Thread Naftoli Gugenheim
After corresponding on the google-appengine-java Google Group, (actually after reading something in another thread), I realized what's causing the problem. For some reason, committing the transaction puts the entity into detached state--but closing the EM makes it transient, so in the next

[Lift] Re: Deployment questions and little Java web dev experience

2009-06-22 Thread Naftoli Gugenheim
When you deploy a web app I think you specify a context path (at least in jetty) which I think is what you're looking for -- the first part of the path after the domain name. On Mon, Jun 22, 2009 at 11:39 PM, g-man gregor...@gmail.com wrote: I came from a similar background, but with some

[Lift] Managed child entities

2009-06-23 Thread Naftoli Gugenheim
I was working on something to help make it easier to deal with one to many relationships. I'm attaching it (OneToMany.scala) along with a class that uses it (partially work in progress), although it's a bit verbose (partially because my class names are very long).Advantages include access to the

[Lift] Re: Stax

2009-06-24 Thread Naftoli Gugenheim
Anyone know what kind of pricing they have? Do they have a free level like GAE? On Wed, Jun 24, 2009 at 12:43 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Jun 24, 2009 at 9:02 AM, Timothy Perrett timo...@getintheloop.euwrote: Agreed - this does really look very good...

[Lift] Re: Modify CRUDify XHTML

2009-06-24 Thread Naftoli Gugenheim
How would you customize the edit view, say to allow editing all child entities on the same screen? On Wed, Jun 24, 2009 at 2:01 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On 24 Jun 2009, Peter Robinett wrote: Hi all, I'm using CRUDify on one of my models and I'd like to display

[Lift] Re: Which is newer

2009-06-28 Thread Naftoli Gugenheim
Maven seems to think that 1.1-M1 is newer. [1.1-SNAPSHOT, ) uses M1. On Sun, Jun 28, 2009 at 7:51 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Yes. 1.1-SNAPSHOT is the build against the current trunk head. 1.1 Milestone 1 was a stable build done at the beginning of May. There'll

[Lift] link to self

2009-07-03 Thread Naftoli Gugenheim
Is there a way to write (statefulSnippet/SHtml) .link( currentPage, ()=onReloadFunc, ns) ?In other words, link to whatever page the link is appearing on --- a reload link. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Unique constraint

2009-07-03 Thread Naftoli Gugenheim
Okay. What about two fields in a unique constraint, e.g. first+last?Also, my H2 databased generated by schemifying allowed me to insert rows that had duplicate primary keys (or at least they're supposed to be primary keys). I'm using LongKeyedMapper ... with IdPK. Am I missing something? Anyone

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenheim
So maybe we can say... either use it only outside or only inside... On Thu, Jul 9, 2009 at 4:00 PM, Dan Gravell dan.grav...@talk21.com wrote: Ok... my feelings are that is not so much the scala stuff as the maven plugin that was borking eclipse. So I took Jeppe's advice, which seems to be to

[Lift] Re: Snippet knowing all the possible parameters?

2009-07-15 Thread Naftoli Gugenheim
Could you explain better what you're trying to do?You could nest all the xml inside another snippet that takes note of what snippet calls it contains and returns it as is, letting lift process the nested snippets, which could then access the information made available by the outer snippet somehow.

[Lift] Re: Jetty PermGen

2009-07-16 Thread Naftoli Gugenheim
(Some time has elapsed, sorry...) That definitely could be it. One of my launch configurations is the default mvn jetty:run, and I have H2 added as a dependency. It's being initialized in web.xml as per H2's instructions, with -tcpAllowOthers, and Boot (DBVendor) connects via TCP. What should I

[Lift] Stringing binds

2009-07-16 Thread Naftoli Gugenheim
What's the best way for a snippet to bind multiple prefixes? Currently I nest one call to bind as the NodeSeq for another, but that isn't so good for more than two. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Stringing binds

2009-07-16 Thread Naftoli Gugenheim
provide sample XML? On Thu, Jul 16, 2009 at 4:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What's the best way for a snippet to bind multiple prefixes? Currently I nest one call to bind as the NodeSeq for another, but that isn't so good for more than two. -- Lift, the simply

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-16 Thread Naftoli Gugenheim
Why don't you use a SHtml.hidden with a callback? - Jonathan Meeksjonathanme...@gmail.com wrote: I have a snippet (call it the file manager snippet) that creates a list of snippet tags (each called file deletion snippets) to create a virtual file listing

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread Naftoli Gugenheim
, instead of writing the hidden input explicitly. On Jul 17, 12:38 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Why don't you use a SHtml.hidden with a callback? - Jonathan Meeksjonathanme...@gmail.com wrote: I have a snippet (call it the file manager

[Lift] Re: Stringing binds

2009-07-17 Thread Naftoli Gugenheim
, ... ) - David Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Jul 16, 2009 at 5:17 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is your question why I would want multiple prefixes for a snippet? Or you didn't understand my question? Meanwhile I made myself an implicit so you can call bind

[Lift] Re: How to use selectObj over a range of integers

2009-07-17 Thread Naftoli Gugenheim
- glenngl...@exmbly.com wrote: I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? It seems a load to have to create a list

[Lift] MetaMapper type

2009-07-19 Thread Naftoli Gugenheim
I have a function def eachField[T : Mapper[T]](mapper: T, fn: MappedField[_, T] = ...) ... I need to call it using a val declared currently as val metaMapper: MetaMapper[T] with T where T is a type argument of its containing class. I can't figure out how to pass metaMapper to eachField and

[Lift] MetaMapper type

2009-07-20 Thread Naftoli Gugenheim
- Naftoli Gugenheimnaftoli...@gmail.com wrote: Assuming trait Mapper[T : Mapper[T]] trait MetaMapper[T : Mapper]] extends Mapper[T] I have a function def eachField[T : Mapper[T]](mapper: T, fn: MappedField[_, T] = ...) ... I need to call it using a val

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread Naftoli Gugenheim
You can omit the word Pair. - glenngl...@exmbly.com wrote: Ross, I fixed my problem. def sumFunc(i:Int){ somOtherFunc(i) println() } selectObj((0 until 11).map(i = Pair(i, i.toString)), Full(0), somFunc) Thanks for your

[Lift] Re: Acceding object fields in template

2009-07-22 Thread Naftoli Gugenheim
What you can do is use the overload of bind that takes a nodeFailureXform argument, and for that argument pass a Full function that transforms your nodes. Basically it will get nodes with the prefix you want, and then parse the label, e.g., using (Rich)String.split('.'). Use Mapper's methods

[Lift] Re: ResourceServer problem

2009-07-22 Thread Naftoli Gugenheim
Great, thanks! It's for a TableEditor component, which provides a default template or you can use your own view setup. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Jul 21, 2009 at 9:55 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Now

[Lift] Re: how to create a dynamic form in lift?

2009-07-23 Thread Naftoli Gugenheim
You don't need javascript. Just use submit buttons for add field etc. actions. If you need relationships to be kept track of but not actually created, store the delta in your StatefulSnippet -- current, added, and removed children lists; then display a list of actual items by concatening

[Lift] Re: how to create a dynamic form in lift?

2009-07-23 Thread Naftoli Gugenheim
it on server side in any way desired. Why? ... because with this mechanism you don't need Lift's functions binding and inherently field naming generation. My notes are NOT related to Mapper in fact this is persistence agnostic. Br's, Marius On Jul 23, 5:39 pm, Naftoli Gugenheim naftoli

[Lift] Spelling error?

2009-07-23 Thread Naftoli Gugenheim
HttpResponse.scala:279 override def toString=StreamingResponse( steaming_data , +headers+, +cookies+, +code+) Should that be streaming with an r? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)

2009-07-23 Thread Naftoli Gugenheim
Any update on this? On Mon, Jun 22, 2009 at 10:55 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 7:51 PM, Jorge Ortiz jorge.or...@gmail.comwrote: I just spent all afternoon trying to get stuff to compile with Scala 2.8. Since Lift depends on Specs, and

Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)

2009-07-24 Thread Naftoli Gugenheim
The reason I asked is that paulp recently said he was going to try again to get scalacheck to work. - Jorge Ortizjorge.or...@gmail.com wrote: No, sorry. I haven't spent any more time on this. --j On Thu, Jul 23, 2009 at 10:13 PM, Naftoli Gugenheim naftoli

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-25 Thread Naftoli Gugenheim
I hope to commit in the next few days code that makes a couple of similar asks easier BH. But, to put the ball in your court, how exactly do you want your code to look? If you write a complete sample usage I'll see what I can do to implement such functionality. Also, Kris, could you elaborate

[Lift] Re: How to install non-standard Lift from GitHub

2009-07-26 Thread Naftoli Gugenheim
Somewhat off topic, but am I the only one that has to do mvn clean install? - Indrajitindraj...@gmail.com wrote: Jon, Assuming you are using Maven (you probably are if you used the installer), you can move to the lift-core module and do an 'mvn install' to

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-26 Thread Naftoli Gugenheim
Doesn't Mapper also have toForm? - marius d.marius.dan...@gmail.com wrote: Why is that a boiler plate? Usually in those functions you are building your domain objects, calling setters etc when your function bound to the submit button is called, you have

[Lift] Re: Rational Behind One Callback per Form Field

2009-07-26 Thread Naftoli Gugenheim
Maybe it would help if I say how lift handles forms. The traditional way is to give each form element a specific human readable name, and then look up the posted parameters by name. This allows one to script posts to the form, which in some cases may allow for a security breach. Also, it means

[Lift] Re: url rewrite subdomain?

2009-07-26 Thread Naftoli Gugenheim
: RewriteRequest): Option[ParsePath, RequestType, HttpServletRequest)] = ... as it is not a valid overloading. Br's, Marius On Jul 26, 4:45 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: It doesn't necessarily have to be a breaking change. See for example scala.xml.QNode

[Lift] Re: Object Relationships and the .obj method

2009-07-26 Thread Naftoli Gugenheim
Or provide a default: after map(...is).openOr(). You can even do openOr(Predef.error(...)) etc. Note that Predef is necessary if you imported S.error or S._. - Ross Mellgrendri...@gmail.com wrote: I'm not too familiar with mapper, but the probable reason

[Lift] New features

2009-07-27 Thread Naftoli Gugenheim
I committed some code last night, which can help building mapper-based view snippets, with G-d's help. It includes the following classes: (1-2) net.liftweb.mapper.OneToMany, ManyToMany: Gives a more object-oriented approach to managing related entites. You can manage the many side of a 1-n and

[Lift] Re: New features

2009-07-27 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.com wrote: I committed some code last night, which can help building mapper-based view snippets, with G-d's help. It includes the following classes: (1-2) net.liftweb.mapper.OneToMany, ManyToMany: Gives a more object-oriented approach to managing related entites

[Lift] Re: New features

2009-07-27 Thread Naftoli Gugenheim
 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I committed some code last night, which can help building mapper-based view snippets, with G-d's help. It includes the following classes: (1-2) net.liftweb.mapper.OneToMany, ManyToMany: Gives a more object-oriented approach to managing related

[Lift] Allow another servlet

2009-07-27 Thread Naftoli Gugenheim
How do you set up lift to allow access to another servlet, e.g., the H2 console? --~--~-~--~~~---~--~~ 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

[Lift] Re: Custom login

2009-07-28 Thread Naftoli Gugenheim
I think you have to override loginXhtml and/or screenWrap. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Jul 27, 2009 at 3:12 AM, MrWHO fabb...@gmail.com wrote: Hi all! Again a probably silly question, but I haven't been able to find a

[Lift] Re: Help on Build from source

2009-07-28 Thread Naftoli Gugenheim
If it thinks import java.xxx is a relative import of net.java.xxx, then it must be you're somehow building it with a net.java package in the classpath. The question is why maven is building it with a different classpath than it uses for everyone else, and why those imports don't start with

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
If the xml is in the jar file then it would only require the user of the library to drop thr jar in. It would only be an extra step for the library author. The question is whether the extra line saved in Boot is worth the time it takes for Lift to search the jars whenever you deploy.

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
Date:   July 22, 2009 12:07:14 PM EDT To:     liftweb@googlegroups.com Reply-To:       liftweb@googlegroups.com On Tue, Jul 21, 2009 at 9:55 PM, Naftoli Gugenheim  naftoli...@gmail.com wrote:   Now a direct call to ResourceServer does work, but the template is   still not being found. Any

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
just wanted to open the template, tmpl.html in my module's jar file. Since it's not in the webapp directory, what would the link have to look like in my sitemap menu? Glenn Sent from my Verizon Wireless BlackBerry -Original Message- From: Naftoli Gugenheim naftoli...@gmail.com Date

[Lift] Re: New features

2009-07-28 Thread Naftoli Gugenheim
be used? As far as XmlMenu goes why do we want to express menus as xml ? Br's, Marius On Jul 27, 10:57 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I committed some code last night, which can help building mapper-based view snippets, with G-d's help. It includes the following classes: (1-2

[Lift] User validation by admin

2009-07-28 Thread Naftoli Gugenheim
Hi. I would like to customize the way that user registration is validated by email. For example, require the admin to validate users. Here are some possible approaches: 1. Set skipEmailValidation to true and build the mechanism from scratch in the subclass. 2. Override signup, and implement it

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Naftoli Gugenheim
% of my (very little) memory. It appears that memory is being used in a sawtooth pattern, with the baseline gradually creeping upwards.[1] I don't see any mention in the logs of any redeployments. Peter [1]: http://www.bubblefoundry.com/lift/jconsole-overview.jpg On Jul 28, 2:15 pm, Naftoli Gugenheim

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Naftoli Gugenheim
of the files. As for the increases, they do not appear to, since requests happen approximately every second and the length of each spike is around one minute. Peter On Jul 28, 3:16 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: It would redeploy if you were using mvn jetty:run

[Lift] Re: Modularization of Lift code

2009-07-29 Thread Naftoli Gugenheim
For that price you could write com.mypackage.Init etc. - Timothy Perretttimo...@getintheloop.eu wrote: @Heiko: Im not sure we would need to lookup snippets, as the module creator could just register them with LiftRules right? (think DispatchSnippet etc)

[Lift] Re: Mapper and Primary Keys

2009-07-29 Thread Naftoli Gugenheim
Did you try to override def dirty_? and def dirty_?(b: Boolean), and in the latter set your own private variable and read it in dirty_? (the getter)? - Peter Robinettpe...@bubblefoundry.com wrote: Hi Derek, I'm afraid I'm not sure how to do this, since

[Lift] User questions

2009-07-29 Thread Naftoli Gugenheim
Using MegaProtoUser, how do you: 1. Have logging in redirect to the page that redirected to log in? 2. Automatically log in using cookies? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: H2 mapper problem

2009-07-30 Thread Naftoli Gugenheim
I think I had the same problem, and if I recall correctly it was because lift wants to use the schema with the same name as the user. Create this schema with the H2 console. I think my code actually uses ;schema=... in the url. - Tim Ntnell...@gmail.com

[Lift] Re: Odd XML parsing issue

2009-07-30 Thread Naftoli Gugenheim
Maybe he meant to write it out as an entity (-amp-;) and the email software or the browser made it back into an ampersand. - Ewanehar...@gmail.com wrote: But that looks exactly like I have it... On Jul 30, 7:02 pm, Mark McBride mark.mcbr...@gmail.com

[Lift] Re: Simple Javascript question(from a lift snippet of course...)

2009-07-30 Thread Naftoli Gugenheim
Related question - if there are multiple head sections buried in different places in the xml are they all removed and combined? - marius d.marius.dan...@gmail.com wrote: Well assume you snippet returns a NodeSeq: import net.liftweb.http._ import js._

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-30 Thread Naftoli Gugenheim
Does doubling the brace escape it? Also you could build the string parts outside of the xml and then embed them. - Nolan Darilekno...@thewordnerd.info wrote: On 07/28/2009 07:28 PM, David Pollak wrote: I'd do the REST API thing. The mechanisms that Lift

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

2009-07-30 Thread Naftoli Gugenheim
Maybe I'm missing something that was said, but why can't MappedTimestamp extend MappedDate(Time)? Or better yet, provide a trait to mix in with either of the above? - Peter Robinettpe...@bubblefoundry.com wrote: Hi all, As some of you may have noticed, I

[Lift] Re: User validation by admin

2009-07-30 Thread Naftoli Gugenheim
create a validation function that people can replace with whatever they want... by default that function looks at the current skipEmailValidation flag. On Tue, Jul 28, 2009 at 1:07 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Hi. I would like to customize the way that user registration

[Lift] Re: User questions

2009-07-30 Thread Naftoli Gugenheim
Should I add a variable to MetaMegaProtoUser var loginRedirect: Box[String], and change login so that if it's Full it will redirect there instead of homePage? (It could reset it to Empty too.) - Naftoli Gugenheimnaftoli...@gmail.com wrote: Using

[Lift] Re: User questions

2009-07-30 Thread Naftoli Gugenheim
Also I could add a method called logInFirst which would return a TestAccess that if the user is logged in returns Empty, and if not sets loginRedirect and returns Full(RedirectResponse(User.loginPageURL)). I am currently using such a TestAccess in one of the top menus (minus the nonexistent

[Lift] Re: Getting Started tutorial - not understanding some syntax

2009-07-31 Thread Naftoli Gugenheim
I think the difference is only true in a class body. Inside a code block I think the def is syntactic sugar for the other syntax. - Viktor Klangviktor.kl...@gmail.com wrote: On Thu, Jul 30, 2009 at 11:02 PM, DFectuoso santiago1...@gmail.com wrote: Viktor,

[Lift] Re: User questions

2009-07-31 Thread Naftoli Gugenheim
Also I could refactor login to allow programmatic logging in, e.g., def login(email:String, pwd:String):Boolean. Then logInFirst could optionally take an autologin function, which it calls if !loggedIn_?, and then checks loggedIn_? again. This way you can check cookies or IPs etc. and skip the

[Lift] Re: Offline building and documentation

2009-07-31 Thread Naftoli Gugenheim
Don't know about scaladoc, but there was a bug in older maven versions about offline usage. What version do you have? As far as JavaRebel, scala users get a free license but you currently have an expired one. You have to replace the jar and .lic file. In the meantime can you comment it out

[Lift] Re: New features

2009-07-31 Thread Naftoli Gugenheim
code? Appreciate any help you can give me. Thanks, Glenn... On Jul 28, 3:05 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Did you update your source jar? Try deleting it from your repository just to be sure, then mvn dependency:sources etc. Either way you can access the source on github

[Lift] Re: New features

2009-07-31 Thread Naftoli Gugenheim
to achieve something similar with your new ManyToMany and MappedManyToMany code? Appreciate any help you can give me. Thanks, Glenn... On Jul 28, 3:05 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Did you update your source jar? Try deleting it from your repository just to be sure

[Lift] Re: Hudson failing again and Lift build failure

2009-07-31 Thread Naftoli Gugenheim
Is it somehow a result of too many open files? What did Derek do last time there was an error of too many open files? - Timothy Perretttimo...@getintheloop.eu wrote: Looks like hudson now recognizes the code failure too:

[Lift] New features

2009-08-02 Thread Naftoli Gugenheim
to implement something similar as a lift component, but with the old relationship handling it wasn't practical. With your changes it should be. Thanks! -Magnus On Jul 27, 9:57 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I committed some code last night, which can help building mapper-based

[Lift] New features

2009-08-02 Thread Naftoli Gugenheim
I put an article on the wiki about OneToMany -- http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships . On Sun, Aug 2, 2009 at 11:20 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Glad to hear. Also see mapper.view.ItemsList (anyone have a better name?), which

[Lift] Title function

2009-08-02 Thread Naftoli Gugenheim
How does the Title LocParam work? Is there a way to modify all titles to e.g. include the logged in user's name, without having to edit all the views? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To

[Lift] Re: New features

2009-08-03 Thread Naftoli Gugenheim
this correctly. Glenn... On Aug 3, 3:48 pm, glenn gl...@exmbly.com wrote: Naftoli, Liked your OneToMany article, but not sure how the new ModelView and ModelSnippet code can be applied to ManyToMany. Can you provide a sample? Glenn... On Aug 2, 1:21 pm, Naftoli Gugenheim naftoli

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

2009-08-03 Thread Naftoli Gugenheim
/src/main/scala/com/liftcode/model/MappedTimestamp.scala. As the commit message says, the code is horrible and doesn't compile because my Scala knowledge is quite limited. I'd appreciate advice on how to correct my copy-and-paste job. Peter On Jul 30, 9:31 pm, Naftoli Gugenheim naftoli...@gmail.com

[Lift] Re: Title function

2009-08-04 Thread Naftoli Gugenheim
a snippet in the title of every view to get the user. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Sun, Aug 2, 2009 at 4:35 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: How does the Title LocParam work? The Title case class has a function

[Lift] Re: Mega*ProtoUser extensibility - a suggestion.

2009-08-04 Thread Naftoli Gugenheim
Why not use logUserIdIn, logUserIn, logoutCurrentUser/logUserOut(), and currentUserId, and currentUser? - E. Biggstacoban...@gmail.com wrote: I have extended Mega*ProtoUser to achieve cookie-based perpetual login.. and it was fairly easy to do except I

[Lift] Re: New features

2009-08-04 Thread Naftoli Gugenheim
of this? Glenn... On Aug 3, 6:22 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Your snippet should extend ModelSnippet (which extends StatefulSnippet). Then write: val view = new ModelView(new User, this) {} Calling load on another ModelView that references the snippet will load its entity

[Lift] Maven skip tests

2009-08-04 Thread Naftoli Gugenheim
How do you tell maven to install even if tests fail? --~--~-~--~~~---~--~~ 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: Maven skip tests

2009-08-04 Thread Naftoli Gugenheim
) mvn -Dmaven.test.skip=true /irc On 05/08/09 2:27 AM, Naftoli Gugenheim wrote: How do you tell maven to install even if tests fail? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Lift w/o ajax

2009-08-04 Thread Naftoli Gugenheim
Hi. I am writing a webapp to be run mainly on BlackBerries, including older ones that have basically no Javascript or Ajax support. I had the jquery script tag commented out in the default template, and everything was fine. Only now Internet Explorer is complaining about a javascript error (a

[Lift] Extend StatefulSnippet lifetime

2009-08-04 Thread Naftoli Gugenheim
How can a StatefulSnippet redirect to a page that does not use it, which links or redirects back to it and it needs to remember its state? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Or QueryParams

2009-08-04 Thread Naftoli Gugenheim
How can you Or QueryParams (e.g. find text in any field)? 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 unsubscribe from this

[Lift] Re: Lift w/o ajax

2009-08-04 Thread Naftoli Gugenheim
: +// Do not insert Javascript-based GC +LiftRules.enableLiftGC = false; + +// Do not include Ajax include +LiftRules.autoIncludeAjax = _ = false; On Aug 4, 8:38 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Hi. I am writing a webapp to be run mainly on BlackBerries, including older

[Lift] Re: Exception for S.? while booting

2009-08-04 Thread Naftoli Gugenheim
In any case why is localization attached to state? - marius d.marius.dan...@gmail.com wrote: I thought validations is a function not a val: override val validations should probably be override def validations ? or override lazy val validations ? Br's,

[Lift] Re: Exception for S.? while booting

2009-08-05 Thread Naftoli Gugenheim
The point marius was making is that if it was a def or lazy val it wouldn't get called so early. - Heiko Seebergerheiko.seeber...@googlemail.com wrote: def can be overridden with val. But this is a Scala thingy, please do not bother. If it makes you easier

[Lift] Re: Extend StatefulSnippet lifetime

2009-08-05 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.com wrote: How can a StatefulSnippet redirect to a page that does not use it, which links or redirects back to it and it needs to remember its state? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: Extend StatefulSnippet lifetime

2009-08-05 Thread Naftoli Gugenheim
Okay. Thanks. - marius d.marius.dan...@gmail.com wrote: On Aug 5, 9:16 am, Naftoli Gugenheim naftoli...@gmail.com wrote: But when I navigate from that page back will it still be registered? Page load 1 - snippet instantiated Button clicked - redirect

[Lift] Re: Or QueryParams

2009-08-05 Thread Naftoli Gugenheim
- Timothy Perretttimo...@getintheloop.eu wrote: You can get items from the query string by doing: S.param(theparam) // Box[T] Cheers, Tim On Aug 5, 4:22 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How can you Or QueryParams (e.g. find text in any

[Lift] Re: Title function

2009-08-05 Thread Naftoli Gugenheim
of the registered StatefulSnippet's newOrEdit state? Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Aug 4, 2009 at 12:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Maybe my setup is atypical then :) My default.html is does not have

[Lift] Loc.title impl redundancy?

2009-08-05 Thread Naftoli Gugenheim
Why does title: NodeSeq try linkText if title(in:ParamType) calls linkText(in)? Is it possible that (forceParam or foundParam.is or defaultParams) will evaluate differently by that time? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: New features

2009-08-05 Thread Naftoli Gugenheim
a user in the list. Simply using val view = new ModelView(new User, this), doesn't work either, although I don't get an exception. Now, where should I be calling load in all of this? Glenn... On Aug 3, 6:22 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Your snippet should extend ModelSnippet

[Lift] Prepare StatefulSnippet in advance

2009-08-05 Thread Naftoli Gugenheim
Hi. I have one screen, /requests/edit, that links to /clients/edit, in order to edit a specific client. Both use StatefulSnippet. In the link I specify a function that instantiates and registers an instance of that StatefulSnippet. However the page does not use that instance but a new instance

[Lift] Re: New features

2009-08-05 Thread Naftoli Gugenheim
a sample? Glenn... On Aug 2, 1:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: I put an article on the wiki about OneToMany --http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relat... . On Sun, Aug 2, 2009 at 11:20 AM, Naftoli Gugenheim naftoli

[Lift] Re: Title function

2009-08-05 Thread Naftoli Gugenheim
On Wed, Aug 5, 2009 at 9:45 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: - Naftoli Gugenheimnaftoli...@gmail.com wrote: So what I'm not clear on now is the input to Title. What is a LocParam, and how do you you use loc params? What is forceParam

[Lift] Re: Prepare StatefulSnippet in advance

2009-08-05 Thread Naftoli Gugenheim
. On Wed, Aug 5, 2009 at 9:40 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Hi. I have one screen, /requests/edit, that links to /clients/edit, in order to edit a specific client. Both use StatefulSnippet. In the link I specify a function that instantiates and registers an instance

[Lift] Re: Prepare StatefulSnippet in advance

2009-08-05 Thread Naftoli Gugenheim
Okay, that makes sense! I guess it's generated during the xml processing stage? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Wed, Aug 5, 2009 at 1:25 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I have working now by instantiating a client

[Lift] Re: More than one lift:surround in HTML file

2009-08-05 Thread Naftoli Gugenheim
XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example,

[Lift] Re: More than one lift:surround in HTML file

2009-08-05 Thread Naftoli Gugenheim
/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround

[Lift] Re: Exception for S.? while booting

2009-08-05 Thread Naftoli Gugenheim
I just read the scaladoc comment of S.init. Does it have anything to do with this subject? - Heiko Seebergerheiko.seeber...@googlemail.com wrote: Ah, yes!Sorry, I did not get the point, but obviously the val is to be blamed ;-) Now it's running, thanx!!!

[Lift] Re: New features

2009-08-05 Thread Naftoli Gugenheim
) } What am I doing wrong? You can see how difficult it is to slog through this code, let alone just trying to explain the problem so I can get help. On Aug 5, 9:57 am, Naftoli Gugenheim naftoli...@gmail.com wrote: I'll try. By the way, as per my correction, you can implement list the regular way

[Lift] Re: New features

2009-08-05 Thread Naftoli Gugenheim
. On Aug 5, 9:57 am, Naftoli Gugenheim naftoli...@gmail.com wrote: I'll try. By the way, as per my correction, you can implement list the regular way without ModelView, and just use ModelSnippet's load function in your edit link or button, passing it the User instance

[Lift] Re: New features

2009-08-05 Thread Naftoli Gugenheim
(UserRole, UserRole.user, UserRole.role, Role) } What am I doing wrong? You can see how difficult it is to slog through this code, let alone just trying to explain the problem so I can get help. On Aug 5, 9:57 am, Naftoli Gugenheim naftoli...@gmail.com wrote: I'll try. By the way, as per my

[Lift] Alternate part of view

2009-08-05 Thread Naftoli Gugenheim
What's the smartest / most concise way to achieve the following in the corresponding view xhtml and snippet code: Parts of the view have to change, depending on whether something is set. For example, in the area where you select the client, if the client is None, then it displays an interface

[Lift] Re: Alternate part of view

2009-08-05 Thread Naftoli Gugenheim
defined in BindHelpers) For examples see: \sites\example\src\main\webapp\guess.html \sites\example\src\main\scala\net\liftweb\example\snippet \CountGame.scala .. see if that helps you case. Br's, Marius On Aug 6, 6:44 am, Naftoli Gugenheim naftoli...@gmail.com wrote: What's the smartest / most

[Lift] Re: Alternate part of view

2009-08-06 Thread Naftoli Gugenheim
No, I meant that this pattern of parts of the view being alternatives to each other repeats, in other words the view has several pairs of alternatives. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Wed, Aug 5, 2009 at 8:44 PM, Naftoli Gugenheim

[Lift] Re: Alternate part of view

2009-08-06 Thread Naftoli Gugenheim
at 10:49 AM, David Pollak feeder.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 that this pattern of parts of the view

  1   2   3   4   5   6   7   8   >