[Lift] Re: Rendering breakdown on Safari
On Tue, Jul 7, 2009 at 1:17 AM, Kjetil Valstadsve valstad...@gmail.comwrote: In the interest of making it useful to search for solutions here, I'll summarize the solution for this problem. Some keywords for good measure: DOM, Safari, Javascript, XHTML, rendering collapses. And, of course, it turns out to be utterly trivial. The XHTML served to the browser was malformed, in this case because of two surrounding html tags. This seems to put Safari in a bad state, in which rendering can break down if you touch the DOM at all. So now, with my XHTML being _more_ well-formed at least, this behavior is gone. Firefox happily ignores the redundant html tag. If anyone has experience with XHTML validators (for instance as servlet filters) to be used during development, feel free to pipe in. There is also HTML Validator for Firefox, of course. I've added a feature request for this: http://github.com/dpp/liftweb/issues/#issue/31 Kudos to David for taking the time to help. Kjetil On Jul 6, 4:23 pm, Kjetil Valstadsve valstad...@gmail.com wrote: It's fairly generic, but I can't ship any of our data. So I will fork it and provide a copy that exposes the issue with some mock data. Kjetil On Jul 6, 4:12 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I have not seen this problem (although I've seen a couple of other Safari 4 related issues... especially in SVG). If you want to privately send me a copy of your project I'll see if I can reproduce the issue. If your project is proprietary, I can sign an NDA. If there is an issue with Lift and Safari 4, I want to make sure it gets fixed ASAP. On Mon, Jul 6, 2009 at 5:09 AM, Kjetil Valstadsve valstad...@gmail.comwrote: Hi folks, I have an obscure problem with rendering on Safari (both 3 and 4). I get the same behavior using 1.1-M1 and 1.1-M3. When I initiate any ajaxy traffic, be it a text field, a checkbox or a drop-down, the entire content area literally collapses onto itself. From what I can tell it happens upon the ajax call's return. By content I refer to the typical getting-started code with lift:surround with=default at=content. Visually, it appears as if all structuring caves in, and all the text is printed as if everything were a single paragraph. No inputs are visible, though e.g. the current values of drop-downs are shown. Contents of text fields are not visible. Interestingly, the effect of the ajax call has taken place - for instance, if I decrease a value that limits the number of items to show in a list, the list is indeed shorter in the miserably collapsed rendering. And, after issuing a reload, everything returns to normal. Click on a checkbox again, and everything collapses yet again. I have tried various changes to tease out the cause, but nothing has helped - moving it all back to index.html, removing all but a few ajaxed components, dropping the login/logout menu items - but it is really consistent. I wish I could get so predictable web app development every day. HTML-wise, the browser claims to be showing the exact same HTML before and after the click, which is expected behavior. (At least Firefox does it too.) After the reload, when things are showing as they should, the HTML has updated all the id's of the ajaxified components. Again, this is the behavior I see in other browsers. Everything looks normal server-side as well, every request takes comparable amounts of time across browsers etc. I don't have an in-depth analysis yet, nor an example that isolates the problem, at this stage I am just throwing it out hoping others may have seen it, and/or solved it. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Scala resources
I'm trying to compile a catalogue of online resources: websites, blogs, wikis, open source projects, articles, etc. relating to scala If anyone has any links for suitable content, especially material that may not be well known, then please share! --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Scala resources
http://blog.getintheloop.eu/ Im writing a *lot* about scala and lift - especially how-to type tutorials. Cheers, Tim On 07/07/2009 16:48, Kevin Wright kev.lee.wri...@googlemail.com wrote: I'm trying to compile a catalogue of online resources: websites, blogs, wikis, open source projects, articles, etc. relating to scala If anyone has any links for suitable content, especially material that may not be well known, then please share! --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] mirroring the lift mailing list to nabble?
Just an idle thought. I wonder if folks wanted to mirror the mailing list to nabble? I mused on twitter today about the relative activity of the various programming languages on nabble... http://www.nabble.com/Programming-Languages-f13993.html then Graham Rocher spotted that Ruby also included Rails in its total; it turns out Python includes Django and PHP includes Zend CakePHP (though Groovy doesn't include Grails yet). so I thought it might be interesting to get a vague feel of relative community activity sizes if we added Lift as a group on nabble and added it to the Scala and Web Development Framework sub groups http://www.nabble.com/Web-Development-Framework-f16257.html http://www.nabble.com/Scala-Programming-Language-f20934.html Its pretty easy to sign up, IIRC you should be a list maintainer though. No biggie though! :) -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: mirroring the lift mailing list to nabble?
DOH! Didn't' think to search for liftweb! Its already there... http://www.nabble.com/liftweb-f30586.html its just not in any categories. Whoever's admin, fancy adding it to Scala Web Development Frameworks? 2009/7/7 James Strachan james.strac...@gmail.com: Just an idle thought. I wonder if folks wanted to mirror the mailing list to nabble? I mused on twitter today about the relative activity of the various programming languages on nabble... http://www.nabble.com/Programming-Languages-f13993.html then Graham Rocher spotted that Ruby also included Rails in its total; it turns out Python includes Django and PHP includes Zend CakePHP (though Groovy doesn't include Grails yet). so I thought it might be interesting to get a vague feel of relative community activity sizes if we added Lift as a group on nabble and added it to the Scala and Web Development Framework sub groups http://www.nabble.com/Web-Development-Framework-f16257.html http://www.nabble.com/Scala-Programming-Language-f20934.html Its pretty easy to sign up, IIRC you should be a list maintainer though. No biggie though! :) -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: NPE Problem with User.current in CRUDify action
Are you doing this as part of an HTTP request or at some other point in the execution of your code (e.g., a background processing thread)? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I get an Empty box when using the value of User.current when trying to populate the valid select values for use in a CRUDify edit form: I have this mapped object which I'm trying to edit using CRUDify: class Vehicle extends LongKeyedMapper[Vehicle] with IdPK { [...] object customCategory extends MappedLongForeignKey(this, CustomCategory) { override def validSelectValues = Full(CustomCategory.findMap{cc : CustomCategory = Full(cc.id.is, cc.description.is)}) } [...] I then have this, that uses the current user to populate the valid values: object CustomCategory extends CustomCategory with LongKeyedMetaMapper[CustomCategory] { def findMap[T](f: CustomCategory = Box[T]) : List[T] = { Log.info(User %s, id=%s.format(User.currentUser, User.currentUserId)) findMap(By(id, User.currentUser.open_!.account.is))(f) } When navigating to the edit page for Vehicle, I get this in the log: INFO - User Empty, id=Full(2) So it seems the user id is stored ok, but the RequestVar is not set. Any clues?? /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: NPE Problem with User.current in CRUDify action
Just a normal request from a link in a CRUDify list Sendt fra min iPhone Den 07/07/2009 kl. 18.49 skrev David Pollak feeder.of.the.be...@gmail.com : Are you doing this as part of an HTTP request or at some other point in the execution of your code (e.g., a background processing thread)? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, I get an Empty box when using the value of User.current when trying to populate the valid select values for use in a CRUDify edit form: I have this mapped object which I'm trying to edit using CRUDify: class Vehicle extends LongKeyedMapper[Vehicle] with IdPK { [...] object customCategory extends MappedLongForeignKey(this, CustomCategory) { override def validSelectValues = Full(CustomCategory.findMap {cc : CustomCategory = Full(cc.id.is, cc.description.is)}) } [...] I then have this, that uses the current user to populate the valid values: object CustomCategory extends CustomCategory with LongKeyedMetaMapper [CustomCategory] { def findMap[T](f: CustomCategory = Box[T]) : List[T] = { Log.info(User %s, id=%s.format(User.currentUser, User.currentUserId)) findMap(By(id, User.currentUser.open_!.account.is))(f) } When navigating to the edit page for Vehicle, I get this in the log: INFO - User Empty, id=Full(2) So it seems the user id is stored ok, but the RequestVar is not set. Any clues?? /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JTA Transaction Monad - Early Access Program
No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett timo...@getintheloop.eu: Jonas, Did you roll this into master? What's its status? Cheers, Tim On Jun 10, 4:46 pm, James Strachan james.strac...@gmail.com wrote: 2009/6/9 Jonas Bonér jbo...@gmail.com: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the Atomikos in any public library, putting them in lib will let the user easily install them in their local repo. Do you know if they are in any public repo? If its any help I added them here a while back for an integration test in ActiveMQhttp://repo.fusesource.com/maven2-all/com/atomikos/ the repo is:http://repo.fusesource.com/maven2-all/ you might wanna put more recent jars up on some public repo though. -- James ---http://macstrac.blogspot.com/ Open Source Integrationhttp://fusesource.com/ -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JTA Transaction Monad - Early Access Program
Jonas, i'm going to begin playing with it after i've finished the conversion of the DSL stuff to scala-query. The JTA monad should just fit with scala-query. Best wishes, --greg On Tue, Jul 7, 2009 at 10:18 AM, Jonas Bonér jbo...@gmail.com wrote: No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett timo...@getintheloop.eu: Jonas, Did you roll this into master? What's its status? Cheers, Tim On Jun 10, 4:46 pm, James Strachan james.strac...@gmail.com wrote: 2009/6/9 Jonas Bonér jbo...@gmail.com: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the Atomikos in any public library, putting them in lib will let the user easily install them in their local repo. Do you know if they are in any public repo? If its any help I added them here a while back for an integration test in ActiveMQhttp://repo.fusesource.com/maven2-all/com/atomikos/ the repo is:http://repo.fusesource.com/maven2-all/ you might wanna put more recent jars up on some public repo though. -- James ---http://macstrac.blogspot.com/ Open Source Integrationhttp://fusesource.com/ -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JTA Transaction Monad - Early Access Program
Hey Jonas, I have no real use case to test it out - I was just interested in its status as conceptually it was very very clever and wondered where you were too with it. I think Greg or Derek are most likely to be able to give you valuable feedback as I believe they are using JTA already. Cheers, Tim On 07/07/2009 18:18, Jonas Bonér jbo...@gmail.com wrote: No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett timo...@getintheloop.eu: Jonas, Did you roll this into master? What's its status? Cheers, Tim On Jun 10, 4:46 pm, James Strachan james.strac...@gmail.com wrote: 2009/6/9 Jonas Bonér jbo...@gmail.com: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the Atomikos in any public library, putting them in lib will let the user easily install them in their local repo. Do you know if they are in any public repo? If its any help I added them here a while back for an integration test in ActiveMQhttp://repo.fusesource.com/maven2-all/com/atomikos/ the repo is:http://repo.fusesource.com/maven2-all/ you might wanna put more recent jars up on some public repo though. -- James ---http://macstrac.blogspot.com/ Open Source Integrationhttp://fusesource.com/ --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JTA Transaction Monad - Early Access Program
Thanks Greg. I would love to get your feedback on it. 2009/7/7 Meredith Gregory lgreg.mered...@gmail.com: Jonas, i'm going to begin playing with it after i've finished the conversion of the DSL stuff to scala-query. The JTA monad should just fit with scala-query. Best wishes, --greg On Tue, Jul 7, 2009 at 10:18 AM, Jonas Bonér jbo...@gmail.com wrote: No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett timo...@getintheloop.eu: Jonas, Did you roll this into master? What's its status? Cheers, Tim On Jun 10, 4:46 pm, James Strachan james.strac...@gmail.com wrote: 2009/6/9 Jonas Bonér jbo...@gmail.com: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the Atomikos in any public library, putting them in lib will let the user easily install them in their local repo. Do you know if they are in any public repo? If its any help I added them here a while back for an integration test in ActiveMQhttp://repo.fusesource.com/maven2-all/com/atomikos/ the repo is:http://repo.fusesource.com/maven2-all/ you might wanna put more recent jars up on some public repo though. -- James ---http://macstrac.blogspot.com/ Open Source Integrationhttp://fusesource.com/ -- Jonas Bonér twitter: @jboner blog: http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JTA Transaction Monad - Early Access Program
Thanks Tim. Thanks for staying on top of it. Derek has already looked at it and seemed to like it. But I'll wait until I get Greg's feedback. 2009/7/7 Timothy Perrett timo...@getintheloop.eu: Hey Jonas, I have no real use case to test it out - I was just interested in its status as conceptually it was very very clever and wondered where you were too with it. I think Greg or Derek are most likely to be able to give you valuable feedback as I believe they are using JTA already. Cheers, Tim On 07/07/2009 18:18, Jonas Bonér jbo...@gmail.com wrote: No I haven't. Should I? Is everyone happy with it? Have anyone tried it? Is anyone using it? 2009/6/30 Timothy Perrett timo...@getintheloop.eu: Jonas, Did you roll this into master? What's its status? Cheers, Tim On Jun 10, 4:46 pm, James Strachan james.strac...@gmail.com wrote: 2009/6/9 Jonas Bonér jbo...@gmail.com: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the Atomikos in any public library, putting them in lib will let the user easily install them in their local repo. Do you know if they are in any public repo? If its any help I added them here a while back for an integration test in ActiveMQhttp://repo.fusesource.com/maven2-all/com/atomikos/ the repo is:http://repo.fusesource.com/maven2-all/ you might wanna put more recent jars up on some public repo though. -- James ---http://macstrac.blogspot.com/ Open Source Integrationhttp://fusesource.com/ -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Maven Lift archetype errors
Can you provide the exact line you typed on the command line? Are you Windows, Linux or Mac? I'll try to reproduce the problem in a clean VMWare instance. On Tue, Jul 7, 2009 at 11:33 AM, glenn gl...@exmbly.com wrote: Creating a lift project out of the latest lift-archetype-basic, versions 1.1-SNAPSHOT from the snapshot repo and 1.1-M3 from the releases, generates a number of compilation errors. Also, the stopPort and stopKey params for the maven jetty plugin have been removed. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Anyone out there using SBT?
Is there a Swedish Bikini Team? I had no idea. 2009/7/6 Kevin Wright kev.lee.wri...@googlemail.com: Single Bullet Theory, or Swedish Bikini Team ? On Mon, Jul 6, 2009 at 10:07 AM, Timothy Perrett timo...@getintheloop.eu wrote: Hey Guys, Is anyone out there using SBT for their lift projects? if so, how are you finding it? Cheers, Tim -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Anyone out there using SBT?
I looked at SBT 4-5 months ago. Was impressed but couldn't use it due to Java module dep. Don't know if it can build Java now. 2009/7/7 Jonas Bonér jbo...@gmail.com: Is there a Swedish Bikini Team? I had no idea. 2009/7/6 Kevin Wright kev.lee.wri...@googlemail.com: Single Bullet Theory, or Swedish Bikini Team ? On Mon, Jul 6, 2009 at 10:07 AM, Timothy Perrett timo...@getintheloop.eu wrote: Hey Guys, Is anyone out there using SBT for their lift projects? if so, how are you finding it? Cheers, Tim -- Jonas Bonér twitter: @jboner blog: http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner -- Jonas Bonér twitter: @jboner blog:http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: NPE Problem with User.current in CRUDify action
Okay... I see the code path that could cause this issue. Are you doing any re-writing? Are you accessing User.currentUser in your re-writes? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I get an Empty box when using the value of User.current when trying to populate the valid select values for use in a CRUDify edit form: I have this mapped object which I'm trying to edit using CRUDify: class Vehicle extends LongKeyedMapper[Vehicle] with IdPK { [...] object customCategory extends MappedLongForeignKey(this, CustomCategory) { override def validSelectValues = Full(CustomCategory.findMap{cc : CustomCategory = Full(cc.id.is, cc.description.is)}) } [...] I then have this, that uses the current user to populate the valid values: object CustomCategory extends CustomCategory with LongKeyedMetaMapper[CustomCategory] { def findMap[T](f: CustomCategory = Box[T]) : List[T] = { Log.info(User %s, id=%s.format(User.currentUser, User.currentUserId)) findMap(By(id, User.currentUser.open_!.account.is))(f) } When navigating to the edit page for Vehicle, I get this in the log: INFO - User Empty, id=Full(2) So it seems the user id is stored ok, but the RequestVar is not set. Any clues?? /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: MappedDecimal and nulls
Derek Chen-Becker dchenbec...@gmail.com writes: Done. Hudson should build it and have it in the repo soon. Thanks! /Jeppe --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Google Analytics
Thanks! I ran into this exact problem. Is there any way to get rid of it? Is there a lift:production tag? Thanks, Xavi On Tue, Mar 17, 2009 at 5:22 PM, Charles F. Munatc...@munat.com wrote: OK, I have to stop posting this crap when it's 5:30 AM, I've been working for 18 hours straight, and my brain is fried. The problem was that I was looking at it on my development machine, not the production server. The Google Analytics code is tied to the URL. If the URL is wrong, it doesn't serve the script, so Firebug reports the error. I are dumb. Hopefully, though, my posting this will save some other person a hassle and a little public embarrassment. Chas. Derek Chen-Becker wrote: Can you send the beginning of the XHTML output, up to and including the GA script? Derek On Tue, Mar 17, 2009 at 6:31 AM, Charles F. Munat c...@munat.com mailto:c...@munat.com wrote: Is anyone else using Google Analytics? I am getting this strange JavaScript error: operation is not supported code: 9 var pageTracker = _gat._getTracker(UA-5774043-2); The Google scripts are supposed to be placed right before the closing body tag, but Lift inserts its own script in there. I can't imagine how that would make a difference, but it is the only thing different from what Google recommends. Also, the analytics are not working. Any ideas? Chas. --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Maven Lift archetype errors
The command line I used is: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-SNAPSHOT -DremoteRepositories=http:// scala-tools.org/repo-snapshots -DgroupId=demo.helloworld - DartifactId=helloworld -Dversion=1.0-SNAPS HOT On Windows. On Jul 7, 11:57 am, David Pollak feeder.of.the.be...@gmail.com wrote: Can you provide the exact line you typed on the command line? Are you Windows, Linux or Mac? I'll try to reproduce the problem in a clean VMWare instance. On Tue, Jul 7, 2009 at 11:33 AM, glenn gl...@exmbly.com wrote: Creating a lift project out of the latest lift-archetype-basic, versions 1.1-SNAPSHOT from the snapshot repo and 1.1-M3 from the releases, generates a number of compilation errors. Also, the stopPort and stopKey params for the maven jetty plugin have been removed. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] organizing views of synchronous streams
All, Here's a blog posthttp://biosimilarity.blogspot.com/2009/07/scores-and-comics-and-views-of.htmloutlining a way to organize synchronous streams of information. i post it here to get an opinion regarding how much work you all think it might be to do in lift. Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: organizing views of synchronous streams
For what it's worth, the Business Process Modeling Notation (BPMN) uses a similar notation to convey concurrent events, actions, etc. http://www.scribd.com/doc/2334639/Introduction-to-BPMN (See pages 5, 7, 9 for diagrams with pools and lanes) http://www.eclipse.org/bpmn/images/screenshots/ Some company [cough cough] has already developed an open-source Eclipse plugin that can can be used to programmatically or interactively design diagrams and export them as SVG such that they can be displayed in a browser and manipulated via JavaScript. alex On Tue, Jul 7, 2009 at 2:44 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: All, Here's a blog posthttp://biosimilarity.blogspot.com/2009/07/scores-and-comics-and-views-of.htmloutlining a way to organize synchronous streams of information. i post it here to get an opinion regarding how much work you all think it might be to do in lift. Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: organizing views of synchronous streams
Maybe you should take a look at this: http://www.simile-widgets.org/timeline/ Ever since I discovered that widget I've wanted to use it for something... Cheers! --Andrew Meredith Gregory wrote: All, Here's a blog post outlining a way to organize synchronous streams of information. i post it here to get an opinion regarding how much work you all think it might be to do in lift. Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Your message will appear in Lift momentarily.
This has been bugging me for some time. When you make a post on the Google group, you get the message Your message will appear in Lift momentarily. The meaning of that sentence is that the message will appear for a brief period of time. I hope they didn't mean that! Perhaps they meant 'shortly'? --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Building from source - error importing _root_.org.specs
So, I switched to Sun's 1.6 JDK, and am getting the same errors. And yes, I changed the scala version from 2.7.4 to 2.7.5 in pom.xml. Interestingly, running mvn compile works correctly, and mvn test fails with the same errors that mvn install does. Unfortunately, I'm not familiar enough with maven to diagnose further than that. Any ideas? -Cale On Thu, Jul 2, 2009 at 10:39 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Jul 2, 2009 at 4:09 PM, Calen Pennington calen.penning...@gmail.com wrote: I'm running Ubuntu 9.04. The only difference between your setup and mine is that I'm using Sun's 1.6 JDK rather than OpenJDK. $ mvn -v Maven version: 2.0.9 Java version: 1.6.0_0 OS name: linux version: 2.6.28-13-generic arch: i386 Family: unix I get the same errors using scala 2.7.4 and 2.7.5 When you say using, do you mean that you changed the version of Scala in the pom.xml files? -Cale On Thu, Jul 2, 2009 at 12:24 AM, David Pollakfeeder.of.the.be...@gmail.com wrote: I've built Lift from source on Windows, Linux and Mac OS X within the last 2 days without incident. What OS are you running, what version of Maven and what version of Java? On Wed, Jul 1, 2009 at 8:00 PM, Calen Pennington calen.penning...@gmail.com wrote: Hi, I'm trying to build Lift from the source. I pulled the latest source from git, and ran cd liftweb mvn install as suggested in the wiki (http://wiki.liftweb.net/index.php/ Source_code) When I did this, I got a large number of warnings like the following: [WARNING] /home/cpenning/work/scala/lift/liftweb-cpenning/lift-util/ src/test/scala/net/liftweb/util/CombParserHelpersSpec.scala:18: error: value specs is not a member of package org [WARNING] import _root_.org.specs._ The lift-util/pom.xml includes the dependency dependency groupIdorg.scala-tools.testing/groupId artifactIdspecs/artifactId version1.5.0/version /dependency as expected, and looking at my ~/.m2/repository/org/scala-tools/ testing/specs/1.5.0/ contains a pom and a jar. Anyone know why lift-utils isn't able to import specs? Thanks -Cale -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype
2009/7/7 fbettag fr...@bett.ag Sorry this is giving me headaches. I don't even know what to look for.. :( The Problem is also described here: http://www.nabble.com/Namespace-failure-td21982365s27240.html Is there anyway i can spoof the content-type for a comet actor from application/xhtml+xml to something else? like text/html or only application/xhtml. That would fix the issue for now. I don't understand what the problem is. Please write some code that reproduces it so I can actually see *exactly* where the problem is happening for you. Only then can I debug it. best regards On 1 Jul., 04:58, David Pollak feeder.of.the.be...@gmail.com wrote: Please fork this projecthttp:// github.com/dpp/lift_1_1_sample/tree/masterand provide an example of the failure. I'll knock something together than overcomes the problem. 2009/6/30 fbettag fr...@bett.ag To describe it a little cleaner: in Safari 4, whenever i try to $('#foo').load('/some.html'), it fails with Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7 since the content-type is text/html+xml. described here: http://groups.google.com/group/jquery-en/browse_thread/thread/de95e8a. .. in Firefox there is a similar problem (error up at the first post) which happens because FF kinda sees an error on the lift-generated XHTML/XML which is caused because the doctype seems to be strict by default (i guess). described here: http://fitzsimmons.ca/jquery-xhtml-11-strict-and-ns_error_invalid_poi. .. I put up some really simple stuff in 'some.html' with 4 html tags, and it fails on Safari and on Firefox. When i try to set the Doctype to transitional, the Browser seems to ignore it somehow, i guess it's because of the ?xml? tag that occurs before the doctype. Is anyone else here using $(..).load('url') on a lift'ed project? On Jun 30, 11:48 pm, David Pollak feeder.of.the.be...@gmail.com wrote: What missing doctype? 2009/6/29 fbettag fr...@bett.ag On Safari i get Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7. This seems to be a safari 4 specific problem due to content-type text/ html+xml. See http://groups.google.com/group/jquery-en/browse_thread/thread/de95e8a. .. On Jun 30, 7:39 am, fbettag fr...@bett.ag wrote: Hey guys, i've been having troubles with jQuery and Firefox/Safari due to the missing Doctype all night long: Uncaught exception: [Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult: 0×80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: http://yourserver/include/jquery.js :: anonymous :: line 11″ data: no] The issue is described here, altho it kinda is somehow faulty xml on my part: http://fitzsimmons.ca/jquery-xhtml-11-strict-and-ns_error_invalid_poi. .. Is there any way to prepend a DocType? Searching the group didn't turn anything useful up. Best regards -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Building from source - error importing _root_.org.specs
On Tue, Jul 7, 2009 at 7:35 PM, Calen Pennington calen.penning...@gmail.com wrote: So, I switched to Sun's 1.6 JDK, and am getting the same errors. And yes, I changed the scala version from 2.7.4 to 2.7.5 in pom.xml. Interestingly, running mvn compile works correctly, and mvn test fails with the same errors that mvn install does. Unfortunately, I'm not familiar enough with maven to diagnose further than that. Any ideas? Please look at ~/.m2/repository/org/scala-tools/testing/specs/1.5.0/specs-1.5.0.jar Does it exist? Can you open it? Does it contain org.specs.BeforeAfter.class? -Cale On Thu, Jul 2, 2009 at 10:39 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: On Thu, Jul 2, 2009 at 4:09 PM, Calen Pennington calen.penning...@gmail.com wrote: I'm running Ubuntu 9.04. The only difference between your setup and mine is that I'm using Sun's 1.6 JDK rather than OpenJDK. $ mvn -v Maven version: 2.0.9 Java version: 1.6.0_0 OS name: linux version: 2.6.28-13-generic arch: i386 Family: unix I get the same errors using scala 2.7.4 and 2.7.5 When you say using, do you mean that you changed the version of Scala in the pom.xml files? -Cale On Thu, Jul 2, 2009 at 12:24 AM, David Pollakfeeder.of.the.be...@gmail.com wrote: I've built Lift from source on Windows, Linux and Mac OS X within the last 2 days without incident. What OS are you running, what version of Maven and what version of Java? On Wed, Jul 1, 2009 at 8:00 PM, Calen Pennington calen.penning...@gmail.com wrote: Hi, I'm trying to build Lift from the source. I pulled the latest source from git, and ran cd liftweb mvn install as suggested in the wiki (http://wiki.liftweb.net/index.php/ Source_code) When I did this, I got a large number of warnings like the following: [WARNING] /home/cpenning/work/scala/lift/liftweb-cpenning/lift-util/ src/test/scala/net/liftweb/util/CombParserHelpersSpec.scala:18: error: value specs is not a member of package org [WARNING] import _root_.org.specs._ The lift-util/pom.xml includes the dependency dependency groupIdorg.scala-tools.testing/groupId artifactIdspecs/artifactId version1.5.0/version /dependency as expected, and looking at my ~/.m2/repository/org/scala-tools/ testing/specs/1.5.0/ contains a pom and a jar. Anyone know why lift-utils isn't able to import specs? Thanks -Cale -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---