[Lift] Re: Lift and Cappuccino integration... a first step

2009-09-04 Thread Heiko Seeberger
Very exciting! 2009/9/4 David Pollak feeder.of.the.be...@gmail.com Folks, Hearkening back to my NextStep days, I took a dive into Cappuccino today. Yep... Obj-J is just like Obj-C and Cappuccino faithfully captures AppKit goodness. I've integrated Lift with Cappuccino. The integration

[Lift] Re: Lift and Cappuccino integration... a first step

2009-09-04 Thread Indrajit Raychaudhuri
Great stuff. Now how about an archetype for this? Cheers, Indrajit On Sep 4, 3:10 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Hearkening back to my NextStep days, I took a dive into Cappuccino today. Yep... Obj-J is just like Obj-C and Cappuccino faithfully captures AppKit

[Lift] Re: May I know websites powered by Lift?

2009-09-04 Thread Yousry Abdallah
Try: http://www.kungle.de/ It's a news aggregator. On 3 Sep., 16:07, surfman chinasmile...@gmail.com wrote: I tried searching websites powered by Lift but failed. Any one knows any? I suggest that David should edit a page list all websites powered by Lift on Liftweb Project. It will be

[Lift] There's a typo in ProtoUser.scala

2009-09-04 Thread Johannes Rudolph
See http://github.com/jrudolph/liftweb/commit/3882fd0217ccd2ecb17e652b429d6dcd894801af --~--~-~--~~~---~--~~ 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

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Bjarte Stien Karlsen
I think this is a very nice post Peter. Some other issues that would be nice to discuss related to menus are - submenus that are shown when you open the parent menu element - example on how to only see some items when logged in - example on how to only see some items if you are a admin level

[Lift] Re: This is the official support channel for Lift

2009-09-04 Thread Johannes Rudolph
Just to let you know: This policy (and the form it is stated) seems overly strict to me when we are talking about small fixes/typos and instantly discourages me from sending in any more of them (i.e. perhaps I will do it anyway but with a bad feeling). I know and understand: It is your project

[Lift] Re: May I know websites powered by Lift?

2009-09-04 Thread David Pollak
On Fri, Sep 4, 2009 at 1:16 AM, Yousry Abdallah yous...@gmail.com wrote: Try: http://www.kungle.de/ Very cool. It's a news aggregator. On 3 Sep., 16:07, surfman chinasmile...@gmail.com wrote: I tried searching websites powered by Lift but failed. Any one knows any? I suggest that

[Lift] Re: There's a typo in ProtoUser.scala

2009-09-04 Thread David Pollak
Thanks. Fixed. On Fri, Sep 4, 2009 at 1:55 AM, Johannes Rudolph johannes.rudo...@googlemail.com wrote: See http://github.com/jrudolph/liftweb/commit/3882fd0217ccd2ecb17e652b429d6dcd894801af -- Lift, the simply functional web framework http://liftweb.net Beginning Scala

[Lift] Re: This is the official support channel for Lift

2009-09-04 Thread David Pollak
On Fri, Sep 4, 2009 at 2:35 AM, Johannes Rudolph johannes.rudo...@googlemail.com wrote: Just to let you know: This policy (and the form it is stated) seems overly strict to me when we are talking about small fixes/typos and instantly discourages me from sending in any more of them (i.e.

[Lift] Logging sql queries generated by Mapper

2009-09-04 Thread José María
Hi, I'm new to JAVA as platform, I want to see the sql queries generated by Mapper queries. I've been reading the LiftWeb book but logging appears only as an appendix at the end and it doesn't tell you how to configure the Log system. Should I use Log4J config? Where should I put the

[Lift] Re: Logging sql queries generated by Mapper

2009-09-04 Thread José María
I found it after writing the original mail. I always search in liftweb, I didn't know there was a wiki in github. Where can I find the api doc for 1.1-SNAPSHOT? Cheers. On Sep 4, 3:00 pm, marius d. marius.dan...@gmail.com wrote: Please see this thread:

[Lift] Re: Logging sql queries generated by Mapper

2009-09-04 Thread marius d.
Please see this thread: http://groups.google.com/group/liftweb/browse_thread/thread/7d5daf78a7e52275/ff9b6f80e19a999b?lnk=gstq=addLogFunc#ff9b6f80e19a999b Br's, Marius On Sep 4, 5:03 pm, José María josemariar...@gmail.com wrote: Hi, I'm new to JAVA as platform, I want to see the sql queries

[Lift] Re: Logging sql queries generated by Mapper

2009-09-04 Thread Tim Nelson
Someone recently posted this to the wiki: http://wiki.github.com/dpp/liftweb/how-to-configure-logging On Fri, Sep 4, 2009 at 9:03 AM, José María josemariar...@gmail.com wrote: Hi, I'm new to JAVA as platform, I want to see the sql queries generated by Mapper queries. I've been reading the

[Lift] Subquerys Mapper?

2009-09-04 Thread José María
Hi, Is it possible to do subqueries with Mapper? If I have something like: Product.findAll(...) How can I use it as subquery for another query? What I'm trying to do is: Select * from Table order by random() limit 6 But this doesn't works in modern SQL implementations (Oracle, PG 8.4) so

[Lift] how to schedule a job?

2009-09-04 Thread george
If I needed to schedule a job say for example to do a database query that returned a set of users matching some criteria and send them an email. How would I do that in Lift? I started looking through the API and noticed that we have net.liftweb.util.Scheduled in ActorPing.scala is this what I

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
Thanks, Bjarte. I'm actually working on some role code right now, so I'll update the post once I've got some decent working code. Peter On Sep 4, 2:52 am, Bjarte Stien Karlsen bjarte.stien.karl...@gmail.com wrote: I think this is a very nice post Peter. Some other issues that would be nice to

[Lift] Re: Mastering SiteMap

2009-09-04 Thread Peter Robinett
Thanks, Charles. I had totally forgotten about the book and only looked at it after I wrote the post only to discover that they cover all these topics quite well. Peter On Sep 4, 11:29 am, Charles F. Munat c...@munat.com wrote: I've never used Views, but they are Scala code (.scala), whereas

[Lift] RequestVar not Persisting

2009-09-04 Thread Peter Robinett
I'm trying to use a RequestVar to keep the Mapper model that I'm editing throughout the lifetime of a simple form. Specifically, I'm adding Users to a Role. The problem is, the RequestVar seems to get recreated at every step and, I must admit, it's driving me crazy and I'd appreciate some help.

[Lift] Re: Lift and Cappuccino integration... a first step

2009-09-04 Thread Timothy Perrett
Right now there is *a lot* of deep changes going on in the capp codebase... IMHO, lets wait until 0.8 is released then make an archetype against that. Cheers, Tim On 4 Sep 2009, at 09:39, Indrajit Raychaudhuri wrote: Great stuff. Now how about an archetype for this? Cheers, Indrajit

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Kris Nuttycombe
While your updated list will be modified by the loadUsers closure, the for comprehension will only be executed on the initial rendering of the snippet, not as part of the execution of your loadUsers or processUsers callbacks. So the state of the RequestVar will never be reset. Kris On Fri,

[Lift] Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
I'm looking for direction on the best pattern for implementing basic authentication and authorization in Lift. For example, if I already have a Role mapper to store roles in the database, to what do I attach the Role trait in the net.liftweb.http.auth package? 1) The mapper. You would have to

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread David Pollak
On Fri, Sep 4, 2009 at 1:01 PM, Peter Robinett pe...@bubblefoundry.comwrote: I'm trying to use a RequestVar to keep the Mapper model that I'm editing throughout the lifetime of a simple form. Specifically, I'm adding Users to a Role. The problem is, the RequestVar seems to get recreated at

[Lift] Lift 1.1-SNAPSHOT under Scala 2.8 with NetBeans and the Scala plugin

2009-09-04 Thread Stuart Roebuck
Being on the bleeding edge again, I'm trying to do some Lift stuff using the nice new Scala plugin for NetBeans. However, this appears to require me to be working under the latest Scala 2.8 release. So, I have downloaded the Lift sources and built 1.1-SNAPSHOT under Scala 2.8. Everything

[Lift] Re: Lift 1.1-SNAPSHOT under Scala 2.8 with NetBeans and the Scala plugin

2009-09-04 Thread David Pollak
Lift does not yet compile under 2.8. I just had lunch with PaulP and will be working on a Lift branch that does work under 2.8, but it's going to be a little while before it all works (we need to get ScalaCheck working first and that's on one of Paul's branches). So, please use Lift with Scala

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-04 Thread Timothy Perrett
Glenn, If Marius doesn't beat ne to it, I'll reply tomorrow morning. The system we implemented for auth was not meant to be composed with matter per-say, not in the way you think however... Presumably you've looked at the http Auth example in the github repo? I'm not sure why on earth you

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
Thanks guys, I knew I was missing something simple. So how do I then do I make it so I have the Role id at the end of the form submission process? Thanks, Peter On Sep 4, 2:58 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: While your updated list will be modified by the loadUsers

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
Tim, I tend to agree with you that the Role trait is not a good mixin for a role mapper, which is why I raise the question. Maybe I'm looking in the wrong place, but the http-authentication example in liftweb.sites on github doesn't have much code. The LiftBook is a more complete example. And

[Lift] Re: RequestVar not Persisting

2009-09-04 Thread Peter Robinett
Ok, it was quite easy once I thought about it some more. For anyone who comes along this later, here is my solution: def addUsers(xhtml: NodeSeq): NodeSeq = { val possible = User.findAll().map(user = (user.id.toString, user.name)) val current = role.users.map(user = user.id.toString)

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-04 Thread Charles F. Munat
There is a big difference between authentication (making sure someone is who they claim to be) and authorization (making sure that now that we know who they are, they have permission to do what they're trying to do). It seems to me that what you're referring to is a Role-Based Access Control