[Lift] Valid XHTML
Is there an interest in Lift using valid XHTML, or do the Lift crew only care if it's well-formed? I ask because the current version of Lift creates XHTML that is invalid on every page unless you adjust the default settings, and even then there seems to be a lot of framework-generated HTML that violates the XHTML DTD. I prefer valid XHTML, so I adjust settings and rewrite pieces of Lift that break the code, but it occurs to me that others might not even be aware that this is an issue and might like to know how to make the HTML valid. So is this something others are interested in, or is it enough that the current HTML output appears to work in most browsers? If the former, I'd be happy to contribute examples for how to fix the problems. (For the record, this is a serious question. Most of the programmers I know really couldn't care less if their HTML is "valid" as long as it works, so I don't want to assume anything. Even most programming books that show HTML show really bad, invalid, and obsolete HTML. HTML is evidently not considered a real language by most programmers.) Chas. Oh, and for those who are curious and haven't tried it, the W3C HTML Validator is here: http://validator.w3.org/ There's a CSS validator, too: http://jigsaw.w3.org/css-validator/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Recommended tools ?
To search the wiki, I suggest using using the "site:liftweb.net" keyword in google. That will search all pages within liftweb.net We should probably change the wiki search to do that automatically. The built-in MediaWiki search is pathetic anyway. --j On Sat, Nov 15, 2008 at 8:53 AM, Oscar Picasso <[EMAIL PROTECTED]>wrote: > Hi, > > Which tools would you recommend to work for a lift project, and more > generally with scala? > The requirement being that the project also uses maven. > > I have tried the Eclipse plugin a number of times and I found it too > unstable. > > The last Intellij IDEA plugin is decent, I was considering switching to > IDEA. Howver I ran lately in some issues. The more important being that if I > define implicits somewhere their containing folder keep loading... forever. > > I could use emacs but I would like some pretty formatting, code completion > and error checking. > > On a scala list post I read David P. explaining that there are a number of > decent tools to work with lift. Which ones? > > BTW: the lift wiki search does not work. It always returns a *No such > special page*. > > Oscar > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Recommended tools ?
Derek, With Java, Eclipse handles very well multi modules with the help of m2eclipse. Just checkout a multimodule project as a Maven project from subversion and it will create all the required projects in eclipse. No need to use eclipse:eclipse. With scala that's another story I have never had success using scala + eclipse + maven, even for simple projects, whether with m2eclipse, Q/IAM or without any of them. If you have a setup, example of pom and steps by step actions required to make it work I would appreciate. I have already got help from other users but I didn't myself never make it work. The main issue being that at the beginning everything seems to work fne and then suddenly when I try to launch a scala application (not a lift application) from eclipse it stops working. On Sat, Nov 15, 2008 at 7:20 PM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote: > Out of curiosity, how does Netbeans handle Maven projects, particularly > ones with nested modules? The most recent Eclipse plugin still has some > warts, but it generally seems to work OK if I set up the .classpath file > properly to point at all of the source folders. > > Thanks, > > Derek > > > On Sat, Nov 15, 2008 at 11:25 AM, David Pollak < > [EMAIL PROTECTED]> wrote: > >> I've been using netbeans very succesfully. I recomend it. >> >> Thanks, >> >> David >> >> On Nov 15, 2008 8:53 AM, "Oscar Picasso" <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Which tools would you recommend to work for a lift project, and more >> generally with scala? >> The requirement being that the project also uses maven. >> >> I have tried the Eclipse plugin a number of times and I found it too >> unstable. >> >> The last Intellij IDEA plugin is decent, I was considering switching to >> IDEA. Howver I ran lately in some issues. The more important being that if I >> define implicits somewhere their containing folder keep loading... forever. >> >> I could use emacs but I would like some pretty formatting, code completion >> and error checking. >> >> On a scala list post I read David P. explaining that there are a number of >> decent tools to work with lift. Which ones? >> >> BTW: the lift wiki search does not work. It always returns a *No such >> special page*. >> >> Oscar >> >> >> >> >> > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Recommended tools ?
I do maven from the command line. DavidB knows about maven in netbeans On Nov 15, 2008 4:20 PM, "Derek Chen-Becker" <[EMAIL PROTECTED]> wrote: Out of curiosity, how does Netbeans handle Maven projects, particularly ones with nested modules? The most recent Eclipse plugin still has some warts, but it generally seems to work OK if I set up the .classpath file properly to point at all of the source folders. Thanks, Derek On Sat, Nov 15, 2008 at 11:25 AM, David Pollak < [EMAIL PROTECTED]> wrote: > > I've bee... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift Record & Field
That's funny, I just checked out the wip-record2-dpp branch this morning to start looking at it :) So far, I really like what I see. I would agree with Tim on calling it Persistable... vs DB... but otherwise it's looking very good. If I have some time this week I might start looking at how to meld this with JPA. One thing I've been thinking about is that I think there may be a little dissonance in lifecycle between what we do in JPA and what we'd do in JDBC. For instance, in JPA, entity state is managed by the provider; there's no need to explicitly save an object per se, because the provider will automatically detect changes to the managed instance and send those changes to the DB. That means that if you make a change and decide you don't want to save it then you need to explicitly *revert* the object or the changes will get pushed to the database at the end of the session. Off the top of my head I don't think this is going to be a huge issue but I'm going to have to go through it a few times from both angles (JPA style vs Mapper style) to make sure that I don't have any undefined or anti-defined behavior. Cheers, Derek On Sat, Nov 15, 2008 at 11:30 AM, Marius <[EMAIL PROTECTED]> wrote: > > All, > > I just committed in master the code for generic support for Record/ > Field. David will start adding JDBC spices soon. > > Perhaps there a a couple of more field "types" to add so please take a > look and let us know your thoughts. > > Br's, > Marius > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Recommended tools ?
Out of curiosity, how does Netbeans handle Maven projects, particularly ones with nested modules? The most recent Eclipse plugin still has some warts, but it generally seems to work OK if I set up the .classpath file properly to point at all of the source folders. Thanks, Derek On Sat, Nov 15, 2008 at 11:25 AM, David Pollak < [EMAIL PROTECTED]> wrote: > I've been using netbeans very succesfully. I recomend it. > > Thanks, > > David > > On Nov 15, 2008 8:53 AM, "Oscar Picasso" <[EMAIL PROTECTED]> wrote: > > Hi, > > Which tools would you recommend to work for a lift project, and more > generally with scala? > The requirement being that the project also uses maven. > > I have tried the Eclipse plugin a number of times and I found it too > unstable. > > The last Intellij IDEA plugin is decent, I was considering switching to > IDEA. Howver I ran lately in some issues. The more important being that if I > define implicits somewhere their containing folder keep loading... forever. > > I could use emacs but I would like some pretty formatting, code completion > and error checking. > > On a scala list post I read David P. explaining that there are a number of > decent tools to work with lift. Which ones? > > BTW: the lift wiki search does not work. It always returns a *No such > special page*. > > Oscar > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift Record & Field
wow this is super sweet marius! A couple of questions: - net.liftweb.record.Test... shouldn't this be in the tests package? - DBRecord, whats the difference between this and ordinary record? Looking at the code, it appears that DBRecord just adds some abstract stuff like stubbs for save methods etc: if this is the case, and it could indeed apply for non-database backed things, then shouldnt it be called "Persistab leRecord" or something more abstract? The actual persistence mechanism would then be provided by the relevant trait inclusion Cheers Tim On Nov 15, 6:30 pm, Marius <[EMAIL PROTECTED]> wrote: > All, > > I just committed in master the code for generic support for Record/ > Field. David will start adding JDBC spices soon. > > Perhaps there a a couple of more field "types" to add so please take a > look and let us know your thoughts. > > Br's, > Marius --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] I need to show all nested menus (drop down)
Hi all, The actual behavior of nested menus is that kids are only returned when their parent is selected. I'd like to have all kids returned. If my guess is right the code that's controlling this is in sitemap.Menu: //code override def buildUpperLines(pathAt: HasKids, actual: Menu, populate: List[MenuItem]): List[MenuItem] = { val kids: List[MenuItem] = _parent.toList.flatMap(_.kids.toList.flatMap(m => m.loc.buildItem(if (m == this) populate else Nil, m == actual, m == pathAt))) _parent.toList.flatMap(p => p.buildUpperLines(p, actual, kids)) } //code it calls buildItem on all the other menus passing an empty List instead of their actual kids. So I've tried to override this method(even though it won't work because _parent is a private variable and I don't know if lift.sitemap package is sealed) and I got this compile error: class DropMenu needs to be abstract, since type _$1 in class Menu with bounds >: Nothing <: Any is not defined I used to have this error gone away after a mvn clean compile on some parts of my current project, but it didn't in this case. Is there a simpler way for overriding this behaviour? Thanks, Ramzi --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Lift Record & Field
All, I just committed in master the code for generic support for Record/ Field. David will start adding JDBC spices soon. Perhaps there a a couple of more field "types" to add so please take a look and let us know your thoughts. Br's, Marius --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Recommended tools ?
I've been using netbeans very succesfully. I recomend it. Thanks, David On Nov 15, 2008 8:53 AM, "Oscar Picasso" <[EMAIL PROTECTED]> wrote: Hi, Which tools would you recommend to work for a lift project, and more generally with scala? The requirement being that the project also uses maven. I have tried the Eclipse plugin a number of times and I found it too unstable. The last Intellij IDEA plugin is decent, I was considering switching to IDEA. Howver I ran lately in some issues. The more important being that if I define implicits somewhere their containing folder keep loading... forever. I could use emacs but I would like some pretty formatting, code completion and error checking. On a scala list post I read David P. explaining that there are a number of decent tools to work with lift. Which ones? BTW: the lift wiki search does not work. It always returns a *No such special page*. Oscar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: HTTP Digest Authentication
Hi David, Im working on a standalone app as requested - I keep changing my my mind about the design however. Creating the challenges is no problem, as they are just subclasses of LiftResponse, however, I cant settle on how best to handle the authorization. If I want to create a challenge, then that obviously needs to be in a addDispatchBefore block as its a subclass of LiftResponse. However, as I got thinking about this, and what would happen if the client preempted the challenge and passed the Authorization header we want to check the contents of that header using the code im writing, and then continue with servicing that request (or create a challenge if the auth failed) So then - it strikes me that the security concepts of this belong with SiteMap, but actually serving the challenges etc belong with dispatching... Can someone lend me some guidence on the most lift appropriate design? Im all ears :-) Cheers Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Recommended tools ?
Hi, Which tools would you recommend to work for a lift project, and more generally with scala? The requirement being that the project also uses maven. I have tried the Eclipse plugin a number of times and I found it too unstable. The last Intellij IDEA plugin is decent, I was considering switching to IDEA. Howver I ran lately in some issues. The more important being that if I define implicits somewhere their containing folder keep loading... forever. I could use emacs but I would like some pretty formatting, code completion and error checking. On a scala list post I read David P. explaining that there are a number of decent tools to work with lift. Which ones? BTW: the lift wiki search does not work. It always returns a *No such special page*. Oscar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] DB transactions - how?
Hi, I'm using Lift 0.9 and the mapper featurese provided by Lift - I like it! Now I do need to do some database operations in a transaction and to rollback when an error occurs. I saw DB.rollback and tried DB.rollback(DefaultConnectionIdentifier), but that doesn't rollback anything. I also grepped the lift source code. No matches for "transaction" or "rollback" except in DB. How can I open a transaction and how can I rollback? Thanks a lot for any help! Joachim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Simple deployment of Lift apps on Jetty/Nginx
> I'm not trying to load-balance. Upstream seems to be oriented to load > balancing, which is not the goal. Did I miss something? Sorry for the late reply - indeed it is for load balancing etc; I was working on the presumption you might have more than one back-end jetty - if not then sure, what you have is ideal. Cheers Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---