[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.init(BufferedSource.scala:77) at

[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 feeder.of.the.be...@gmail.com 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

[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 dchenbec...@gmail.com 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,

[Lift] Re: label tag for generated input

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 timo...@getintheloop.eu wrote: Errrmm, I think your mistaken in your example. I think you mean: lift:someSnippet form=post  p    label

[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

[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 filename

[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

[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

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread Viktor Klang
On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com 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

[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 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. marius.dan...@gmail.com wrote: Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can

[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,

[Lift] Re: Eclipse tooling for Lift?

2009-04-14 Thread David Pollak
On Tue, Apr 14, 2009 at 4:46 AM, Miles Sabin mi...@milessabin.com 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

[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?

[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 tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did

[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

[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

[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

[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 select? I have: lift:LanguageUtils.changeLanguage form=post My Language is: languageSelecction:language/ languageSelecction:changeLanguage/

[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

[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

[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

[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: 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

[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: 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

[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 mickdela...@gmail.com wrote: sorry guys. i didnt realise it was moderated (doh!!).

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread David Pollak
On Tue, Apr 14, 2009 at 8:23 AM, Mick Delaney mickdela...@gmail.com 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

[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 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

[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

[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 jorge.or...@gmail.com wrote: What about easily turning any

[Lift] Re: Liftweb without Maven?

2009-04-14 Thread marius d.
On Apr 14, 2:40 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com 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

[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 mickdela...@gmail.com wrote: Hi, i'm currently having a look

[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: 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 joaomiguel.pere...@gmail.com

[Lift] Re: lift plugins/extensibility?

2009-04-14 Thread Viktor Klang
On Tue, Apr 14, 2009 at 5:53 PM, TylerWeir tyler.w...@gmail.com 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