[Lift] Re: Changes to ajax handling?

2009-07-03 Thread marius d.
Yeah that what happens when you're coding late in the night ... the null monster bites you. Marius On Jul 2, 7:47 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: Marius, that fix appears to work fine, thank you! Bloody nulls. :) Kris On Thu, Jul 2, 2009 at 7:17 AM, marius

[Lift] Re: howto do simple calculation with MappedInt

2009-07-03 Thread Tobias Daub
Thanks Dave, but still getting this error: /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/model/Order.scala:51: error: value lotValue is not a member of Long override def _toForm = Full(p{Order.this.lots * Order.this.marketPlace.lotValue}/p) What is the

[Lift] Sitemap, restricted menus and skinning a cat

2009-07-03 Thread Ewan
I wonder if anyone would care to advise of the most appropriate solution for not rendering sitemap menu items with additional redirect to a login page. I have read a couple of solutions in this list but here is what I have done cobbled together from the liftbook. I have an If LocParam for

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

2009-07-03 Thread Alexander Azarov
I vote for this! Personally I do not completely understand all the possibilities Failure gives and how to achieve these. BTW, I found recently the appendix about Boxes disappeared from the printed Lift book :( On Jul 2, 5:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: We really ought to

[Lift] Re: Thoughts on file streaming

2009-07-03 Thread Derek Chen-Becker
Awesome! That's a nice way to bypass the issues I was running into. I suppose that if someone wanted to control it on a per-form basis then they could do it themselves via their own field mappings. Derek On Wed, Jul 1, 2009 at 12:20 PM, David Pollak feeder.of.the.be...@gmail.com wrote:

[Lift] Re: Binding based on attributes

2009-07-03 Thread Derek Chen-Becker
I would take a look at Scala's XML facilities. In particular, I think that you can use matching on the elements to filter and substitute the input. Derek On Thu, Jul 2, 2009 at 7:48 AM, Nolan Darilek no...@thewordnerd.infowrote: I'm working on an app that allows users to enter their own form

[Lift] Re: howto do simple calculation with MappedInt

2009-07-03 Thread David Pollak
Send me the file and I'll debug it. On Fri, Jul 3, 2009 at 3:06 AM, Tobias Daub hannes.flo...@gmx.li wrote: Thanks Dave, but still getting this error: /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/model/Order.scala:51: error: value lotValue is not a member of Long

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

2009-07-03 Thread David Pollak
Jeppe, Once I check in some code (in about 20 minutes), if you run Lift in Test mode (-Drun.mode=test), forms, etc. will have stable names which makes testing easier. Thanks, David On Thu, Jul 2, 2009 at 1:13 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Having taken the first baby

[Lift] Re: Binding based on attributes

2009-07-03 Thread David Pollak
On Thu, Jul 2, 2009 at 6:48 AM, Nolan Darilek no...@thewordnerd.infowrote: I'm working on an app that allows users to enter their own form templates, which are rendered to HTML forms and filled out. The results are then captured and encoded for later rendering. So the user might input

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

2009-07-03 Thread Kris Nuttycombe
Hi, David, Thanks for taking some time to look at this problem. I'm a little concerned about the approach, though - should Lift really behave significantly differently in test mode than it does in production mode? This seems like it would lend to the possibility of subtle bugs that don't show up

[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: can a Snippet call a Snippet?

2009-07-03 Thread Derek Chen-Becker
Yes, it's available on the APress website. It was omitted due to an issue with the APress workflow :( http://www.apress.com/book/view/1430224215 Derek On Fri, Jul 3, 2009 at 8:22 AM, Alexander Azarov alaz...@gmail.com wrote: I vote for this! Personally I do not completely understand all the

[Lift] Re: Unique constraint

2009-07-03 Thread Tim Nelson
H2 has a great console servlet that you can use to connect to any jdbc compliant database and I just figured out how to configure it to work with lift. Assuming you already have H2 as a dependency, just add a mapping to the servlet in your web.xml. Mine looks like this: web-app filter

[Lift] Re: Unique constraint

2009-07-03 Thread Naftoli Gugenhem
The console is basically a text box for executing SQL. But how can I tell if my IDs are PKs? I inserted some rows exported from MySQL containing ids and ended up with a duplicate id of something I already had. So what went wrong? Lift generated the tables from my Mapper.

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

2009-07-03 Thread glenn
I've searched this group and combed through the lift book for an answer, but found none - how to use file-based storage for data within Lift. For example, how would I call something like: def xml = XML.loadFile(fileName) without getting a java.io.FileNotFoundException? I tried storing the

[Lift] Creating a project

2009-07-03 Thread Douglas Quaid
I heard some good vibes about Lift and then I saw this gem in the Getting Started documentation for creating a project: From a command prompt, type: mvn archetype:generate -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0 \

[Lift] Some help persisting MetaMapper

2009-07-03 Thread glenn
I'm trying to do something like: override def afterSave = addAfterSave _ :: Nil private def addAfterSave(c: Content) { } } and assume afterSave automatically gets called after saving a mapper entity. But it never does. What could I be missing or doing wrong?

[Lift] Re: Creating a project

2009-07-03 Thread g-man
I have been working on a project for a while, so I haven't needed to use it, but I found this in my collection of .bat files: cd C:\Liftweb mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ ... that way, you get a bunch of choices during the creation process, as I recall. Yes,