[Lift] Re: Signup Form: Some error messages are hidden by default

2009-12-30 Thread Marius
Any example of such situation? For more complex forms probably users would specify their own forms. Since you know that field's unqueId's you can just put the msg tags in the page manually. In Record there is a more flexible way as users can specify a form template ... se MetaRecord.formTemplate.

[Lift] liftweb.net is down

2009-12-30 Thread Chris
Hey guys, any idea why liftweb.net is down? Best regards Chris -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to

[Lift] Re: csv request answer

2009-12-30 Thread tiro
I've been happy with the CSV support provided by h2database because that was already included in the PocketChange example http://www.h2database.com/html/tutorial.html#csv But there are over a dozen alternatives I think. Google for java csv library It's a good idea IMHO to use a library for

[Lift] Happy New Year!

2009-12-30 Thread koveen
I would like to wish everybody on this list a happy new year. A year in which it will be fun to learn more about Lift Greetings, Ko -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To

[Lift] Re: Happy New Year!

2009-12-30 Thread Marius
Thank you. Happy new year to you too. Br's Marius On Dec 30, 2:12 pm, koveen liep...@xs4all.nl wrote: I would like to wish everybody on this list a happy new year. A year in which it will be fun to  learn more about Lift Greetings, Ko -- You received this message because you are

Re: [Lift] Date/Time/DateTime formatters and parsers

2009-12-30 Thread Derek Chen-Becker
It got stuck in the debate concerning whether or not to use Joda Time. I might have some time next week to work on it. This ticket kind of covers the issue: http://github.com/dpp/liftweb/issues#issue/89 Derek On Tue, Dec 22, 2009 at 5:05 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
I'll try out that solution Russ, thanks. Although as the solution gets a bit more complex, and taking into account Marius's advice, it sounds like this might not be the right direction to go in. Stepping back a moment, conceptually what I'd like to do is: create a nice 404.html template (using

Re: [Lift] re: How do I get the stacktrace when EntityManager fails to be instantiated

2009-12-30 Thread Derek Chen-Becker
Are you using ScalaJPA? It shouldn't be absorbing any exceptions. Perhaps you have the log4j threshold at INFO instead of DEBUG? Derek On Tue, Dec 22, 2009 at 8:54 PM, James Black planiturth...@gmail.comwrote: I am having a problem with one entity trying to use @OneToMany, and I would like to

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
Google's opinion: http://googlewebmastercentral.blogspot.com/2008/08/farewell-to-soft-404s.html On Dec 30, 10:05 am, Alex Black a...@alexblack.ca wrote: I'll try out that solution Russ, thanks.  Although as the solution gets a bit more complex, and taking into account Marius's advice, it

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
On Dec 30, 5:05 pm, Alex Black a...@alexblack.ca wrote: I'll try out that solution Russ, thanks.  Although as the solution gets a bit more complex, and taking into account Marius's advice, it sounds like this might not be the right direction to go in. Stepping back a moment, conceptually

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Ross Mellgren
Ouch, it does sound ugly. Is there some alternative way to change the currently requested URI, for the purposes of sitemap generation and so on? It seems like the alternative is spinning one's own SiteMap menu snippet that knows to do this work? Also, it seems odd there's no way to invoke

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
Please see my previous reply and the proposed solution. Br's, Marius On Dec 30, 6:12 pm, Ross Mellgren dri...@gmail.com wrote: Ouch, it does sound ugly. Is there some alternative way to change the   currently requested URI, for the purposes of sitemap generation and so   on? It seems like the

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
While I totally agree that a plain 404 + markup is much more straightforward, breaks internet are too big words :) .. sending back a 302 or 301 tells the UA you asked me for a resource that I know I don't have but I wont tell you explicitely, instead I want you to go to this location as an

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
At any rate, I'm just trying to help Alex, I'm not invested in any   reason other than it's informative to try and solve. Is there any way   to get a templated 404 response? Sorry Ross, perhaps my response didn't convey my appreciation for your help, or maybe it came off sounding negative, I

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
Please open a defect here http://github.com/dpp/liftweb/issues ... whether or not this solution will make it in master will be subject for reviewboard. The solution I proposed has a breaking change by the introduction of Either[List[String], LiftResponse] instead of LiftResponse but I don't think

[Lift] Re: Happy New Year!

2009-12-30 Thread Neil.Lv
Thank you and Happy New Year to all the Lifter! Cheer, Neil On Dec 30, 9:48 pm, Marius marius.dan...@gmail.com wrote: Thank you. Happy new year to you too. Br's Marius On Dec 30, 2:12 pm, koveen liep...@xs4all.nl wrote: I would like to wish everybody on this list a happy new year.

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Ross Mellgren
Oh no problem, I was intending this as a reply to the you guys Marius used, to make it clear that I don't have a particular use case, though I do agree about the soft 404s. -Ross On Dec 30, 2009, at 11:22 AM, Alex Black wrote: At any rate, I'm just trying to help Alex, I'm not invested in

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
I opened a ticket: http://github.com/dpp/liftweb/issues/#issue/265 I hope I wrote it in a reasonable/acceptable way, its my first ticket. - Alex On Dec 30, 11:26 am, Marius marius.dan...@gmail.com wrote: Please open a defect herehttp://github.com/dpp/liftweb/issues... whether or not this

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Marius
perfect, thanks. On Dec 30, 6:40 pm, Alex Black a...@alexblack.ca wrote: I opened a ticket:http://github.com/dpp/liftweb/issues/#issue/265 I hope I wrote it in a reasonable/acceptable way, its my first ticket. - Alex On Dec 30, 11:26 am, Marius marius.dan...@gmail.com wrote: Please open

Re: [Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread David Pollak
On Tue, Dec 29, 2009 at 9:19 PM, Alex Black a...@alexblack.ca wrote: I've changed my sitemap from: Menu(Loc(index, Pair(index :: Nil, false), Home)) :: Yes, the / directory will be rendered by Lift as /index There's no way around that one. Can you explain? I don't understand.

Re: [Lift] Date/Time/DateTime formatters and parsers

2009-12-30 Thread Naftoli Gugenheim
Hi. Actually I started working on it. I put some code on Review Board adding some new functions to LiftRules. I was going to add the mapper end to the same review item, but I had to run and left it without even a description but it references the ticket I created (I filed two really). Marius

[Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread Alex Black
In a 1.1-M8 based project,http://localhost:8080/andhttp://localhost:8080/indexboth cause the Home menu item to be non-clickable.  The definition of the Home menu item is Menu(Loc(Home, List(index), Home)) Understood. However, in this scenario, when the user clicks on home they get taken

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread David Pollak
On Tue, Dec 29, 2009 at 7:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Does anyone object to this approach? Any source file that's being reviewed (hopefully one or very few at a time) should be uploaded to Google Docs as a text document. Discussion can consist of the built in google

Re: [Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 9:43 AM, Alex Black a...@alexblack.ca wrote: In a 1.1-M8 based project, http://localhost:8080/andhttp://localhost:8080/indexboth cause the Home menu item to be non-clickable. The definition of the Home menu item is Menu(Loc(Home, List(index), Home)) Understood.

[Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread Alex Black
David, I'm not trying to anger you, and although you do constantly reply with helpful information (which I appreciate) the tone of your messages makes me think you think I am an idiot. I'd appreciate it if you'd bear with me, I'm only human. Thanks for explaining. I don't yet fully understand,

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Naftoli Gugenheim
Would it not be possible to have a LiftResponse that runs through the regular plumbing? This way instead of introducing Either you can just use a TemplateResponse etc. - Mariusmarius.dan...@gmail.com wrote: Please open a defect here

Re: [Lift] Re: Handle Exception

2009-12-30 Thread David Pollak
On Thu, Dec 24, 2009 at 6:14 PM, Xuefeng Wu ben...@gmail.com wrote: It's helpful, thank you! On Thu, Dec 24, 2009 at 7:03 PM, Marius marius.dan...@gmail.com wrote: If you want a popup a dialog when an exception is thrown from an Ajax function you can do something like: import

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 8:26 AM, Marius marius.dan...@gmail.com wrote: Please open a defect here http://github.com/dpp/liftweb/issues ... whether or not this solution will make it in master will be subject for reviewboard. The solution I proposed has a breaking change by the introduction of

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Naftoli Gugenheim
100%. But that need could be reconciled with my idea in either of two ways: 1. There is discussion taking place, just in the Google Docs file as opposed to the maling list. Anyone who wants can participate. The point is that I suspect much of the reason everyone wants better naming but no one is

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
Overall this feature seems most similar to 'rewriting'. E.g. the url comes in as http://localhost/foobar;, we don't recognize it, so we'll re-write it to template 404. What about Either[RewriteResponse, LiftResponse]? E.g. same as what Marius suggested but use RewriteResponse instead of String.

Re: [Lift] Happy New Year!

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 4:12 AM, koveen liep...@xs4all.nl wrote: I would like to wish everybody on this list a happy new year. A year in which it will be fun to learn more about Lift Thanks! Happy New Year to you too! Greetings, Ko -- You received this message because you are

Re: [Lift] Re: Problem with LiftFilter in 2.8.0

2009-12-30 Thread David Pollak
On Thu, Dec 24, 2009 at 3:40 AM, Alan M alan.morten...@gmail.com wrote: My most recent posting was just my interpretation of what was said in this thread and I was just asking for confirmation. I didn't go looking for any more answers because I thought I had it. I've only been monitoring my

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
It's not rewriting. I didn't say it was. I just said it seemed most similar to re-writing. Trying to mix the two will muddy the concept of rewriting and when it happens. Makes sense. As far as I can tell, the two problems you are facing are:    1. There's a non-trivial amount of your

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 10:30 AM, Alex Black a...@alexblack.ca wrote: Overall this feature seems most similar to 'rewriting'. E.g. the url comes in as http://localhost/foobar;, we don't recognize it, so we'll re-write it to template 404. It's not rewriting. Rewriting is the change of the

[Lift] Binding error

2009-12-30 Thread Igor
Hi everyone, Long time lurker, first time poster here, I've been trying to pick up Lift recently and am stuck with a seemingly simple bind: div subject:videos videos:count/ out of videos:total/ videos videos:list div video:name/ span class=cm some text/span

Re: [Lift] Binding error

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 11:03 AM, Igor igor...@gmail.com wrote: Hi everyone, Long time lurker, first time poster here, I've been trying to pick up Lift recently and am stuck with a seemingly simple bind: div subject:videos videos:count/ out of videos:total/ videos videos:list

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Jim Barrows
On Wed, Dec 30, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: 100%. But that need could be reconciled with my idea in either of two ways: 1. There is discussion taking place, just in the Google Docs file as opposed to the maling list. Anyone who wants can participate. The

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
In Boot.scala (the boot method): LiftRules.passNotFoundToChain = false LiftRules.uriNotFound.prepend { case _ = generate404() } In the Boot class: def generate404(): LiftResponse = { import scala.xml.Node val resp: Box[Node] = S.setVars(expandAll - true) {

Re: [Lift] Binding error

2009-12-30 Thread Igor Lev
Hmm that _was_ pretty silly. I guess I have to go over the implicits section in my Scala notes :) Thanks for the quick response David. On Wed, Dec 30, 2009 at 2:19 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 30, 2009 at 11:03 AM, Igor igor...@gmail.com wrote: Hi

Re: [Lift] Binding error

2009-12-30 Thread Ross Mellgren
A little background on implicits, maybe it'll help you. A particular expression will only ever have one implicit conversion applied -- the compiler will not attempt to chain together implicit conversions (as I believe that's an NP problem) So, the arguments to bind(...) are BindParams. There

Re: [Lift] Postmortem thoughts on a small production Lift site

2009-12-30 Thread David Pollak
Cody, Thanks for such a thoughtful set of feedback. On Thu, Dec 24, 2009 at 1:11 PM, cody koeninger c...@koeninger.org wrote: We recently implemented a small, mostly static content site (http:// www.goldenfrog.com/) using Lift. Thought I'd offer up a postmortem on what worked well and what

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Naftoli Gugenheim
I'm confused by your reply. Firstly, I think I was clear that I'm not going to do anything that you or David disapprove of. So if my idea is not a good one just scratch it! In any case I'm confused by what you said. What is hidden about a Google Docs document? Whoever wants to participate in the

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Jim Barrows
Note: I just realized this was gonig to the list, and individual emails as well. edited the to and cc fields. On Wed, Dec 30, 2009 at 2:22 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm confused by your reply. Firstly, I think I was clear that I'm not going to do anything that you or

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Naftoli Gugenheim
Okay, I hear what your saying. Personally I think it's partially how you sell it, but if you think it will supress discussion then I guess we can just discuss it directly on the list. What do you say to having, in general, one thread per class being discussed (that is, assuming people stick to

[Lift] Issue with Context Handling

2009-12-30 Thread Timothy Perrett
Guys, Im having a really strange problem with the context handling in an app im writing. Essentially, the app is pretty normal, it goes about its business perfectly well. However, as this will be distributed through different parts of our company, and could be deployed in different contexts, I

Re: [Lift] Issue with Context Handling

2009-12-30 Thread Ross Mellgren
This is the same issue mentioned in the Postmortem thoughts thread, that dpp mentioned has an issue at http://github.com/dpp/liftweb/issues#issue/68 , right? On Dec 30, 2009, at 4:16 PM, David Pollak wrote: Lift doesn't seem to have any central place to handle URL issues related to servlet

Re: [Lift] csv request answer

2009-12-30 Thread Niels Boldt
Tim, David Thanks for your answer /Niels On Tue, Dec 29, 2009 at 11:38 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 29, 2009 at 2:34 PM, Niels Boldt nielsbo...@gmail.com wrote: Hi, We need to return comma separated values as answer to an request(csv files), and I

[Lift] Re: Issue with Context Handling

2009-12-30 Thread Timothy Perrett
Im not sure it is; I do not require session by session adjustments... this is a one time, global configuration. Its similar, but not the same I dont think I need this urgently in a production application that needs to go out yesterday (literally) so would appreciate any thoughts. Cheers, Tim On

[Lift] Re: Postmortem thoughts on a small production Lift site

2009-12-30 Thread Nathan
Jetty seems to do questionable things with filehandles, opening multiple copies of the same template file and keeping them open too long.  Setting ulimit fixes the issue of Too many open files exceptions failed requests, but it still seems like at most templates should need 1 access to

Re: [Lift] Re: Issue with Context Handling

2009-12-30 Thread Timothy Perrett
Dang. What sort of test cases did you have in mind? Things that i've come across so far are: * form handling (normal forms, not ajax forms) - that is, the location of action targets * liftAjax.js - the path needs the context prepended * Any dispatching needs the context accounted for Is this

[Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread Alex Black
Ok, I tried this, it gets closer. I noticed one issue: the head merge didn't get done, so I have two head tags in the result. I'm attempting to set the title in the 404.html template, maybe there is a way I can set the title without using head merge? - Alex On Dec 30, 2:54 pm, David Pollak

[Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread Alex Black
Would it be reasonable for me to open a ticket to allow people to change this default behaviour? Its important to me that when people are at our site's home page, its just http://oursite.com;, not http://oursite.com/index;. Then for people who are using a container where this is a problem, it

[Lift] DB problems on Jetty restart

2009-12-30 Thread Nathan Parry
Searching turned up a few older threads similar to the problem I'm seeing, but I couldn't find any solution. Using just the skeleton project created by lift-archetype-basic, I'm getting these exceptions out of jetty: org.h2.jdbc.JdbcSQLException: Database may be already in use: Locked by another

[Lift] Re: DB problems on Jetty restart

2009-12-30 Thread joseph hirn
Yes I had an open thread on this issue but it's not being seen as a real issue. http://groups.google.com/group/liftweb/browse_thread/thread/78454f767280b4b5/d0f462593ae77072?hl=en#d0f462593ae77072 On Dec 30, 7:15 pm, Nathan Parry npa...@gmail.com wrote: Searching turned up a few older threads

[Lift] Re: [ANN] Lift 1.1-M8

2009-12-30 Thread joseph hirn
Hello David. It's true that if you only have the dependency marked as provided then yes, it won't run. I am not advocating the use of using scope provided. That is only if you are programming to the h2 interfaces directly which you aren't and shouldn't be doing. I am advocating that you do not