[Lift] Re: Disabling the lift auto-reload on webapp restart?

2009-07-15 Thread Naftoli Gugenhem
You could always launch jetty without maven... Are there options for maven-jetty-plugin? - fbettagfr...@bett.ag wrote: liftweb auto-reinjects it. On Jul 15, 2:27 pm, Ellis ellis.whiteh...@gmail.com wrote: This would interest me too. (but if you don't

[Lift] Jetty PermGen

2009-07-14 Thread Naftoli Gugenhem
After mvn jetty:run reloads my changes a number of times, it runs out of PermGen memory. What is PermGen exactly and how can I prevent this from happening? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Please back out the Box[] changes

2009-07-14 Thread Naftoli Gugenhem
Isn't it easy to fix the apps with a find/replace? - David Pollakfeeder.of.the.be...@gmail.com wrote: Derek, There's a lot of code that relies on the existing (admittedly broken) implementation of host, hostAndPath, etc. Can you back out the changes and

[Lift] Re: Background jobs

2009-07-10 Thread Naftoli Gugenhem
I think paulp has a scala.xml that doesn't require loading everything into memory at once. He once demonstrated it on the scala list. I think it's for 2.8. I'm not sure how you load but I think you process it with the regular scala pattern matching and XPath. Either look in the 2.8 sources or

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
mvn eclipse:eclipse doesn't seem to like scala. Why don't you initialize everything from the IAM GUI? - Dan Gravelldan.grav...@talk21.com wrote: I'm trying to learn about lift using the eclipse plugin but not really getting far... Currently trying to build

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
I'm using eclipse for lift. I'm not saying it's perfect but it's very usable. My understanding is that the important thing is not to use mv eclipse:eclipse. - Miles Sabinmi...@milessabin.com wrote: On Thu, Jul 9, 2009 at 5:45 PM, David

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
Completion works for me, when there are no basic syntax errors in the file (mismatched bracketd etc.). Also, I use lift without running maven from the command line. I create the project with m2eclipse, and I don't recall having to set M2_REPO. - Jeppe Nejsum

[Lift] Re: Unique constraint

2009-07-08 Thread Naftoli Gugenhem
/liftweb/1.0/net/liftweb/mapper/MappedString.html Joe On Jul 2, 7:55 am, Naftoli Gugenhem naftoli...@gmail.com wrote: Does lift have any way to specify a unique constraint on a field, via schemify (or validation)? If not, how complex would it be to implement

[Lift] Re: Badly documented validation of MetaMapper records

2009-07-08 Thread Naftoli Gugenhem
Helpers has an implicit from String to Node. Also, the list of validators should contain functions that take a mapper IIRC. So if the function needs more specifics, put the other arguments in a parameter list before. For examples see the built in validators name valXXX in various mapped field

[Lift] Re: How to test/TDD lift apps?

2009-07-06 Thread Naftoli Gugenhem
I would like if in general you would be able to specify input names and have lift use those. Maybe FuncHolders could take an optional param? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Fri, Jul 3, 2009 at 6:43 PM, David

[Lift] Re: using file-based data storage in Lift app

2009-07-05 Thread Naftoli Gugenhem
Why would lift interfere with file io? Resource server is probably for static http. If you're getting file not found I can't imagine it's lift's fault. Try dumping new java.io.File(.).listFiles() or .getAbsolutePath etc. to see what directory is the default. What kind of server are you using?

[Lift] Re: Creating a project

2009-07-05 Thread Naftoli Gugenhem
In general I would appreciate if people would refrain from inappropriate vocabulary. - TylerWeirtyler.w...@gmail.com wrote: Your email did not meet this standard. dpp, I'm glad you addressed this. My initial response, which I deleted, would not have

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-05 Thread Naftoli Gugenhem
I would say that the main advantage knowledge of Java over a similar language gives you is knowledge of the Java environment and system, but you can pick that up via scala too. As far as turning theory into actual programming, my personal advice is to take one small sample, get it running, and

[Lift] Re: Unique constraint

2009-07-03 Thread Naftoli Gugenhem
, Naftoli Gugenhem naftoli...@gmail.com wrote: Does lift have any way to specify a unique constraint on a field, via schemify (or validation)? If not, how complex would it be to implement? --~--~-~--~~~---~--~~ You received this message because you

[Lift] Unique constraint

2009-07-02 Thread Naftoli Gugenhem
Does lift have any way to specify a unique constraint on a field, via schemify (or validation)? If not, how complex would it be to implement? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Naftoli Gugenhem
Well if the box is empty l will be a String so of course you can't access foundParam. - Peter Robinettpe...@bubblefoundry.com wrote: Thanks, David. Unfortunately I'm having a hard time figuring out how to get the foundParam. Using your code, I have: val

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Naftoli Gugenhem
Instead of yielding loc which is taking it out of the box and putting it back in, access foundParam inside the for loop. - Peter Robinettpe...@bubblefoundry.com wrote: Thanks, David. Unfortunately I'm having a hard time figuring out how to get the

[Lift] Re: grabbing rss or other type of feeds within lift

2009-07-01 Thread Naftoli Gugenhem
Which maven plugin did you try for eclipse? M2eclipse works for me... - Mark Esselmes...@gmail.com wrote: Thanks think I'm making progress following this: http://wiki.netbeans.org/Scala after the install of 6.7RC3, jdk, scala plugin, lift, maven (used it to

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Naftoli Gugenhem
A Box is a container that holds 0 or 1 elements(s). openOr means if the Box is Full return the element; otherwise return the parameter--my default value. One alternative approach would be to specify a default Loc. - Peter Robinettpe...@bubblefoundry.com

[Lift] Re: Modify CRUDify XHTML

2009-07-01 Thread Naftoli Gugenhem
If you know the Box is full you can write open_! (you'll get a runtime error if it wasn't). Otherwise openOr a default, e.g., an invalid id. You have first answer the question, what _should_ happen if it's Empty after all? :) - Peter

[Lift] Re: can a Snippet call a Snippet?

2009-07-01 Thread Naftoli Gugenhem
Where is the second list getting called from? Code? - g-mangregor...@gmail.com wrote: I'm getting a Null Pointer: 'Trying to open an empty box', from S.attr (todos).open_! Here's my layout: todo.html template lift:TD.listTodos todos=todos

[Lift] Re: Thoughts on file streaming

2009-06-30 Thread Naftoli Gugenhem
I'm not too familiar with the topic but instead of dropping lift, as a temporary workaround can't you have the upload be handled by another servlet which will save it and then redirect? - Vlad Seryakovvserya...@gmail.com wrote: I am also contemplating to

[Lift] Package in snippet tag

2009-06-29 Thread Naftoli Gugenhem
Normally you write the snippet tag lift:MySnippet, and you add my.package to the searched packages. Can you just add my and write the tag lift:package.MySnippet etc.? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Managed child entities

2009-06-29 Thread Naftoli Gugenhem
I wrote a similar implementation for many-to-many. Again, very untested, but it works as much as I've used it. David suggested I create a project on GitHub where the community can contribute useful code that could then be integrated into lift proper. So far the actual project is empty but it's

[Lift] Re: can a Snippet call a Snippet?

2009-06-29 Thread Naftoli Gugenhem
I don't have such a clear picture of what you're trying to do. If you need to refer to the instance of a snippet that exists on the same page, it looks to me like that data is private in S.snippetForClass. Maybe you can nest the Tag tags in the ToDo snippet tag, have it instantiate a Tag

[Lift] Pagination in lift?

2009-06-28 Thread Naftoli Gugenhem
Does lift have built in support for pagination -- breaking up a query and continuing it across multiple pages, and clicking the headers to sort? If not how hard is it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Pagination in lift?

2009-06-28 Thread Naftoli Gugenhem
only have a small dataset, alternatively you could craft your own queries using limiting / offsetting. Alternatively, if your using JPA, you can use the stuff built into jpa; more info here: http://is.gd/1hfCg Cheers, Tim On Jun 28, 8:44 pm, Naftoli Gugenhem naftoli...@gmail.com wrote: Does lift

[Lift] Which is newer

2009-06-28 Thread Naftoli Gugenhem
Is 1.1-SNAPHOT newer than 1.1-M1? --~--~-~--~~~---~--~~ 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

[Lift] Re: Warnings for missing binds?

2009-06-26 Thread Naftoli Gugenhem
+1 - Derek Chen-Beckerdchenbec...@gmail.com wrote: I just spent the better part of half a day trying to track down an issue with binding that ended up being a subtle typo. I'm thinking of adding in some logging (in dev mode) for the bind function to warn

[Lift] Re: Error attempting to persist Mapper

2009-06-26 Thread Naftoli Gugenhem
I think he said that code is in MetaMapper - Timothy Perretttimo...@getintheloop.eu wrote: Jono, The problem here is actually not with mapper. Look at your stack trace: java.lang.NullPointerException: Trying to open an empty Box at

[Lift] Re: Another backtrace on reload

2009-06-24 Thread Naftoli Gugenhem
I had the same problem a while ago. I'm not sure if I fixed it then, but I think it had to do with the db still being open possibly. When the code changes does the servlet get undeployed? You might need to run derby in server mode. Lately I've been launching jetty without maven, and to get it

[Lift] Re: Using Mapper outside Lift?

2009-06-23 Thread Naftoli Gugenhem
I used mapper in an offline (demo) app. You have to include the util and http jars IIRC but it's a desktop app. If you're subcribed to scala-user, I posted it (I think last week) in the thread about a scala SWT DSL. - Timothy Perretttimo...@getintheloop.eu

[Lift] Deployment questions and little Java web dev experience

2009-06-23 Thread Naftoli Gugenhem
What's the difference between an application server and a servlet container? - Timothy Perretttimo...@getintheloop.eu wrote: Yes thats pretty much right - examples of context are: / /something/ /yet/another/ Cheers, Tim On Jun 23, 4:59 am, Naftoli