[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
sounds good to me On Apr 14, 10:58 pm, Timothy Perrett wrote: > Perhaps we could couple this with Hudson? Hudson has an API (see > here:http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API) so > perhaps we could serve stuff up on the fly through that? Just > spitballing here > > Cheer

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Timothy Perrett
Good name! I started writing a bunch of code for a small CMS / publishing platform, then got completely distracted and moved onto something else! Its just too big for one man to attempt (unless you have some serious time to put into it) Cheers, Tim On 14/04/2009 20:59, "Viktor Klang" wrote: >

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Viktor Klang
On Tue, Apr 14, 2009 at 5:53 PM, TylerWeir wrote: > > >Btw, is there a good CMS module??? > > Not currently. I would *love* to rewrite Wordpress+WordpressMU > +Buddypress. > > I have been talking about it for more than a year though. :( > I've been gnawing on this idea for a while aswell, unti

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread Timothy Perrett
Perhaps we could couple this with Hudson? Hudson has an API (see here: http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API ) so perhaps we could serve stuff up on the fly through that? Just spitballing here Cheers, Tim On Apr 14, 8:46 pm, João Pereira wrote: > yeah. nice service. may

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread João Pereira
yeah. nice service. maybe built with lift? On Tue, Apr 14, 2009 at 7:58 PM, marius d. wrote: > > > > On Apr 14, 2:40 pm, Viktor Klang wrote: >> On Tue, Apr 14, 2009 at 1:38 PM, marius d. wrote: >> >> > Even if I find maven quite helpful for Lift there are people that just >> > want to stay awa

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Charles F. Munat
I'd be interested in anything you're doing with CMS... Chas. David Pollak wrote: > > > On Tue, Apr 14, 2009 at 8:23 AM, Mick Delaney > wrote: > > > sorry guys. i didnt realise it was moderated (doh!!). > > > Yeah... we are now getting about 10 spam messag

[Lift] Re: JPA: putting persistence Id into trait

2009-04-14 Thread Charles F. Munat
Tim, Where does one find these UserTypes? I'm really interested in switching to JodaTime. Chas. Tim P wrote: > If I start working with scala & jpa (decision still to be made) I'm > likely to need to use quite a lot of UserTypes - for example jodatime > and geometry/spatial (Hibernate usertypes

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Charles F. Munat
So many ideas, so little time... TylerWeir wrote: >> Btw, is there a good CMS module??? > > Not currently. I would *love* to rewrite Wordpress+WordpressMU > +Buddypress. > > I have been talking about it for more than a year though. :( > > On Apr 14, 11:23 am, Mick Delaney wrote: >> sorry g

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread marius d.
Perhaps lift-widgets project will shed some light for you. Widgets are in many respects self contained in terms of dependencies and you just use the exposed functions in your snippets. Br's, Marius On Apr 14, 3:44 pm, Mick Delaney wrote: > Hi, > i'm currently having a look at lift. i've looked

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
On Apr 14, 2:40 pm, Viktor Klang wrote: > On Tue, Apr 14, 2009 at 1:38 PM, marius d. wrote: > > > Even if I find maven quite helpful for Lift there are people that just > > want to stay away from maven. I can understand that. Perhaps it would > > be helpful to also have some ant script to buil

[Lift] Re: Proposed URL Shortening widget

2009-04-14 Thread Timothy Perrett
Hey Jorge, I reflected on the uses of this - your actually right, this would be super useful. I know your into your math algorithms and stuff... any thoughts on a system to keep URL's short? Cheers, Tim On Apr 2, 8:48 pm, Jorge Ortiz wrote: > What about easily turning any lift app into a url s

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-14 Thread Derek Chen-Becker
Doh. There are my Hibernate roots showing through. HQL doesn't require the select (it's implicit if you only have one class to select from). I don't like inconsistent behavior, so that's a little strang about find working again. Derek On Tue, Apr 14, 2009 at 10:14 AM, Atsuhiko Yamanaka < atsuhiko

[Lift] Re: JPA: putting persistence Id into trait

2009-04-14 Thread Derek Chen-Becker
There is existing code that defines user types in the JPA demo site (under sites in GitHub), so feel free to copy it. I'm going to be very busy until the end of the month, but I can look at including the enum type in Scala JPA. As for JodaTime and HibernateSpatial, perhaps I could add new modules t

[Lift] Re: Automatically change Language (Locale)

2009-04-14 Thread João Pereira
Ok, I get it for now: lift:LanguageUtils.changeLanguage form="post" lift:id="lang_change_form"> My Language is: def changeLanguage(xhtml: Group): NodeSeq = bind("languageSelecction", xhtml, "language" -> locale.getDisplayLanguage(locale), "changeLanguage" -> S

[Lift] The Lift Wiki is back online

2009-04-14 Thread David Pollak
Folks, http://wiki.liftweb.net is back online. Thanks, David -- 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] Re: JPA: putting persistence Id into trait

2009-04-14 Thread Tim P
If I start working with scala & jpa (decision still to be made) I'm likely to need to use quite a lot of UserTypes - for example jodatime and geometry/spatial (Hibernate usertypes for these already exist). If these can benefit from scala wrappers/traits I'm happy to contribute. Tim --~--~

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread David Pollak
On Tue, Apr 14, 2009 at 8:23 AM, Mick Delaney wrote: > > sorry guys. i didnt realise it was moderated (doh!!). Yeah... we are now getting about 10 spam messages a day, so new members are moderated. > > it's been almost 5 years since i did any java at all but i know how > JAR's work > and i've

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread TylerWeir
>Btw, is there a good CMS module??? Not currently. I would *love* to rewrite Wordpress+WordpressMU +Buddypress. I have been talking about it for more than a year though. :( On Apr 14, 11:23 am, Mick Delaney wrote: > sorry guys. i didnt realise it was moderated (doh!!). > it's been almost 5

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
sorry guys. i didnt realise it was moderated (doh!!). it's been almost 5 years since i did any java at all but i know how JAR's work and i've looked into maven. i think i'll probably just go and create a sample app fully, i was going to create a personal task manager website in lift so perhaps tha

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-14 Thread Atsuhiko Yamanaka
Hi, On Tue, Apr 14, 2009 at 11:35 PM, Derek Chen-Becker wrote: > Hmmm. I wonder if the following would work: > > Model.createQuery[Author]("from Author a where a.id = > :id").setParameter("id", id).findOne > > If that works it would be more efficient since you would be doing the filter > on id

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Timothy Perrett
Mick, The list is moderated - please be patient for your messages to come through rather than repeat posting :-) Using your openID example - we already have modules for that which work out of the box! So you can just drop that in by adding a maven dependency and hooking up in Lifts boot process

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-14 Thread Derek Chen-Becker
Hmmm. I wonder if the following would work: Model.createQuery[Author]("from Author a where a.id = :id").setParameter("id", id).findOne If that works it would be more efficient since you would be doing the filter on id in the query instead of after pulling the whole table :) Derek On Tue, Apr 14

[Lift] Re: JPA Run Modes

2009-04-14 Thread Derek Chen-Becker
I'm not sure if you could use different xml files based on the file name because that's part of the standard, but you could probably use different ones based on the persistence unit name defined within the xml file. I think that you could have a persistence.xml file in your src/test/resources/META-

[Lift] re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift).

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for ex

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for ex

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for ex

[Lift] Re: Automatically change Language (Locale)

2009-04-14 Thread João Pereira
Thank you, it's working. Another (newbie) question: How do I submit the form automatically when the user change the value in ? I have: My Language is: Snippet: def changeLanguage(xhtml: Group): NodeSeq = bind("languageSelecction", xhtml, "language" -> locale.ge

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
i was just evaluating lift in general in the extensibility area. lets say for example u wanted to drop in openid authentication or something. i guess most of this is more around scala & traits etc, rather than lift. what about something like dropping in a pluggable CMS. in rails for example there'

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Timothy Perrett
You can just write normal JAR's and add them as dependencies. Everything about Lift is extensible :-) What specifically do you want from a "plugin"? Cheers, Tim On 14/04/2009 13:44, "Mick Delaney" wrote: > > Hi, > i'm currently having a look at lift. i've looked through the getting > starte

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread David Pollak
Lift doesn't have a formal plugin definition because none is necessary. In order to add modules to your application, you specify the modules in your Maven pom file (the only XML you'll have to touch to use Lift.) This makes sure that the module is available to your app. Next, you'll put one or tw

[Lift] lift plugins/extensibility?

2009-04-14 Thread Mick Delaney
Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net & rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the sam

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread TylerWeir
> expected output. I don't want to bother with Maven at this time. Can You'll have a better experience if you take the time to learn how maven works. On Apr 14, 7:11 am, tk050305cnx wrote: > I am new to Liftweb. Unfortunately, the example app in the "getting > started" doc did not work. That is

[Lift] Re: In-built services & documentation.

2009-04-14 Thread David Pollak
The wiki should be online today or tomorrow at the latest. We had a nasty DoS attack on our machine and we're working to restore services but we're also being a lot more careful about security this time and that means manually rebuilding the services rather than copying the old files. On Mon, Apr

[Lift] Re: Eclipse tooling for Lift?

2009-04-14 Thread David Pollak
On Tue, Apr 14, 2009 at 4:46 AM, Miles Sabin wrote: > > I'm about to start putting together a Lift-based website for my Scala > consulting business, and it struck me that it might be helpful if > there were support for Lift applications, either as part of the main > Scala IDE or as an extension.

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread Timothy Perrett
Didn't Eric make some ant scripts ages ago... I certainly remember someone making them prior to this discussion. Tim On 14/04/2009 12:38, "marius d." wrote: > > Even if I find maven quite helpful for Lift there are people that just > want to stay away from maven. I can understand that. Perh

[Lift] Eclipse tooling for Lift?

2009-04-14 Thread Miles Sabin
I'm about to start putting together a Lift-based website for my Scala consulting business, and it struck me that it might be helpful if there were support for Lift applications, either as part of the main Scala IDE or as an extension. Would there be any interest? What would people like to see? C

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread tk050305cnx
Thanks for your comments, João. I am using Ant (or respectively the Eclipse built-in Ant-based dependency management) for my Java and Scala work. I am on Vista. Maven sputtered a number of different error messages on several trials. I don't want to learn Maven and get to the bottom of this. Busy

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread Viktor Klang
On Tue, Apr 14, 2009 at 1:38 PM, marius d. wrote: > > Even if I find maven quite helpful for Lift there are people that just > want to stay away from maven. I can understand that. Perhaps it would > be helpful to also have some ant script to build a lift project? ... > or perhaps have a downloada

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient proj

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread João Pereira
Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with al

[Lift] Re: Need Help with the RuntimeException

2009-04-14 Thread David Pollak
It's likely that you saved your file with the wrong encoding. All XML and HTML files in Lift must be saved with a UTF-8 encoding. On Mon, Apr 13, 2009 at 8:47 PM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > Thanks > > but the mvn test still gives ambigulous exceptions. A file

[Lift] Liftweb without Maven?

2009-04-14 Thread tk050305cnx
I am new to Liftweb. Unfortunately, the example app in the "getting started" doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually a

[Lift] Re: tag for generated

2009-04-14 Thread Dmitry Lipovoi
I know it, but I prefer to leave original mark-up in template, so html-coder can update it later. On Tue, Apr 14, 2009 at 1:32 AM, Timothy Perrett wrote: > > > Errrmm, I think your mistaken in your example. I think you mean: > > >   >    Username >     >     >   >   > > > You don't need to man

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-14 Thread Atsuhiko Yamanaka
Hi, On Mon, Apr 13, 2009 at 6:08 AM, Derek Chen-Becker wrote: > Cool, so the ScalaJPA stuff works fine under GAE? I have some problems. For example, in some cases, ScalaEtityManager#find could not find the object. I mean that it could not find an object, Model.find[Author](classOf[Author], i

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-14 Thread Atsuhiko Yamanaka
Hi, On Sat, Apr 11, 2009 at 10:43 PM, David Pollak wrote: > GAE supports JPA and there's a lot of Lift JPA support... so maybe we can > update the example code to use JPA and we'll have persistence via BigTable. I have integrated to JPADemo to lift_example, and everybody can try it at http://

[Lift] Re: Need Help with the RuntimeException

2009-04-14 Thread sailormoo...@gmail.com
And need help with this too... BufferUnderFlowException?? java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:398) at java.nio.HeapCharBuffer.get(HeapCharBuffer.java:117) at scala.io.BufferedSource$$anon$2.(BufferedSource.scala:77) at scal