Re: [Lift] Exploring record and alternative backends

2009-11-24 Thread Timothy Perrett
Ok, so this is spawned from a comment made by DPP - Its true, I was working on an Akka Record implementation but I had to shelve the concept for now as im busy with work. I am however using a custom backend I wrote at work where we have a service based system and that is working absolutely

Re: [Lift] how does lift work with redis?

2009-11-24 Thread Timothy Perrett
There is no out of the box implementation. You could write a record back end though - it depends on the features you want I guess. Cheers, Tim Sent from my iPhone On 24 Nov 2009, at 22:00, surfman chinasmile...@gmail.com wrote: Is there anything I could learn on how lift works with redis

Re: [Lift] early execution of snippet

2009-11-23 Thread Timothy Perrett
Have a read of my article here: http://is.gd/wq4K Cheers, Tim On 23 Nov 2009, at 10:50, iboy wrote: I am developing an application in which i need to do url rewriting so that all the request of type /document/id gets directed to webpage display.html which calls a snippet in which i am

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Timothy Perrett
Interesting - this is something i've not actually thought about: If we were to compile a list of all the breaking changes in 1.1, perhaps that would give some focus to this discussion... as josh points out, there are most likely quite a few now and 1.0 - 1.1 is a fairly short jump. Loc and

Re: [Lift] Re: session variable question

2009-11-23 Thread Timothy Perrett
Jack, 1. object MyThing extends SessionVar[Box[String]](Empty) Im using Box[String] here, but you can use whatever types you want... 2. They can be anything (classes, actors, objects), provided they are in session scope (that is, S.init has been called) Cheers, Tim On 23 Nov 2009, at 13:15,

Re: [Lift] Re: session variable question

2009-11-23 Thread Timothy Perrett
, 2009 at 8:19 AM, Timothy Perrett timo...@getintheloop.eu wrote: Jack, 1. object MyThing extends SessionVar[Box[String]](Empty) Im using Box[String] here, but you can use whatever types you want... 2. They can be anything (classes, actors, objects), provided they are in session scope

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-23 Thread Timothy Perrett
and I have very little Maven experience. Can someone provide a POM for the Nginx + Jetty configuration? I think that I would find it quite helpful. Thanks. Jeremy 2009/11/20 Timothy Perrett timo...@getintheloop.eu Your missing a trick here - there is a fork of nginx done by Ezra

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Timothy Perrett
: The real question is could you still keep source compatibility if you made use of some interesting implict and @deprecated annotations? I believe those are acceptable. - Josh On Mon, Nov 23, 2009 at 6:05 AM, Timothy Perrett timo...@getintheloop.eu wrote: Interesting - this is something

[Lift] Lift archetypes broken

2009-11-23 Thread Timothy Perrett
Guys (IRC specifically), The archetypes in master are broken: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error:

[Lift] Re: Page flows in Lift

2009-11-22 Thread Timothy Perrett
Erwin, Interesting challenge - I think we could replicate this pretty easily using the lift-wizard: http://is.gd/516re Right now, the code in lift-wizard is really really first pass and its something that we plan on working on quite a bit before 1.1. However, would it be useful for me to put an

[Lift] Re: Page flows in Lift

2009-11-22 Thread Timothy Perrett
Erwin, Sorry, I just seen your picture on the blog link and it was indeed you who had this conversation with! Perhaps I miss communicated at the conference, but we can do this - as above, i'll put together an example of where we are up to right now. Cheers, Tim On Nov 22, 4:09 pm, Timothy

Re: [Lift] opening new window from snippet.

2009-11-22 Thread Timothy Perrett
Lift is not doing any magic - my advice would be to either use the target=_blank or just use some jquery to open certain links in some new window or whatever. If your not sure how to do this, google is your friend :-) Cheers, Tim Sent from my iPhone On 22 Nov 2009, at 21:24, Chris Lewis

Re: [Lift] Re: Call it Lift 2.0

2009-11-21 Thread Timothy Perrett
Heiko, Sounds pretty rational - couldn't agree more that we need a suitable policy in place. Cheers, Tim On 21 Nov 2009, at 08:27, Heiko Seeberger wrote: For me it is important that there is a version policy in place, such that everyone knows what's the difference between a change to 1.1

[Lift] Devoxx 2009

2009-11-21 Thread Timothy Perrett
Folks, I got back from Devoxx late last night and thought I would just post some thoughts and experiences from the event. Firstly, there was an awesome interest in Scala and Lift - my talk was really busy (~550 people) and the general Scala Enthusiast BOF right afterwards was packed. Myself,

[Lift] Re: Devoxx 2009

2009-11-21 Thread Timothy Perrett
By the way, the slide from my presentation can be found here: http://is.gd/50jVi Cheers, tim On Nov 21, 3:37 pm, Timothy Perrett timo...@getintheloop.eu wrote: Folks, I got back from Devoxx late last night and thought I would just post some thoughts and experiences from the event. Firstly

Re: [Lift] Devoxx 2009

2009-11-21 Thread Timothy Perrett
No worries David - it was a great event, and something im really proud of :-) Cheers, Tim On 21 Nov 2009, at 15:58, David Pollak wrote: Awesome write-up. Perfect way to start my day! Thanks for working hard to promote Scala and Lift and community the value of both to a broader audience.

[Lift] Re: InputStream to String

2009-11-21 Thread Timothy Perrett
HAHAHA. That is an awesome method name if ever i did see one. Little confused why readWholeInputStream was somehow not the obvious choice ;-) Cheers, Tim On Nov 21, 4:37 pm, Jack Widman jack.wid...@gmail.com wrote: I kind of like it. Says exactly what it does :) On Sat, Nov 21, 2009 at 9:56

Re: [Lift] NPE in S.?! if used outside a request

2009-11-21 Thread Timothy Perrett
Ross, Where in your code are you calling this method? What I'd the context that puts it outside of a request? Cheers, Tim Sent from my iPhone On 21 Nov 2009, at 23:03, Ross Mellgren dri...@gmail.com wrote: I'm poking around the LiftTicket codebase, and currently it suffers from an NPE

Re: [Lift] NPE in S.?! if used outside a request

2009-11-21 Thread Timothy Perrett
(unless you force one locale for the entire site, I guess), but the NPE seems uglier than providing an error log explaining the problem. -Ross On Nov 21, 2009, at 5:57 PM, Timothy Perrett wrote: Ross, Where in your code are you calling this method? What I'd the context that puts

Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-20 Thread Timothy Perrett
Welcome. What specificaly will you be working on? What are your goals? Where are you based? Cheers, Tim Sent from my iPhone On 20 Nov 2009, at 05:21, Indrajit Raychaudhuri indraj...@gmail.com wrote: Welcome Ross! Would look forward to more of those well thought out responses. Cheers,

Re: [Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-20 Thread Timothy Perrett
That would be: LiftRules.redirectAjaxOnSessionLoss = false Cheers, Tim On 20 Nov 2009, at 00:54, David Pollak wrote: If you don't like the feature, you can turn it off in LiftRules (I don't remember the property off hand, but I'm sure someone else can help me.) -- You received this

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-20 Thread Timothy Perrett
, monty chen montyc...@qq.com wrote: thanks Timothy Perrett! is it you say a fork of nginx done by Ezra Zygmuntowicz : http://github.com/gnosek/nginx-upstream-fair/ On 11月20日, 下午5时33分, Timothy Perrett timo...@getintheloop.eu wrote: Your missing a trick here - there is a fork of nginx

Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-20 Thread Timothy Perrett
working for is starting to use Lift, more will probably come up. I'm open to suggestions, if anyone has something niggling that they don't have the time for. I live in Cambridge, MA, and work in Waltham, MA for Paytronix Systems, Inc. -Ross On Nov 20, 2009, at 4:34 AM, Timothy Perrett

[Lift] Re: Lift 1.1-M7 and Terracotta

2009-11-20 Thread Timothy Perrett
HAHA - yup, thats exactly what I mean! There was work previously done on distributing with terracotta and it was fraught with problems and exception cases. What are your thoughts right now on serialisation (other than its a nightmare)? Cheers, Tim The only thing that is a little bit of a

Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-20 Thread Timothy Perrett
, 2009, at 6:35 PM, Timothy Perrett wrote: OK I see, cool. In that case, be sure to adhere to the processes we have in place and discuss any proposed change on the lift list ;-) Cheers, Tim On 20 Nov 2009, at 16:14, Ross Mellgren wrote: At least initially just bug fixes and cleanup as I can

Re: [Lift] Re: Ajax + Comet Chat across a Cluster

2009-11-19 Thread Timothy Perrett
What is it you were hoping to gain by using akka? The description below was pretty confussing - can you start a-fresh description of *exactly* what you want to achive, what you want the user to experience and what your cluster config will be. Cheers, Tim Sent from my iPhone On 19 Nov 2009,

Re: [Lift] Ajax + Comet Chat across a Cluster

2009-11-17 Thread Timothy Perrett
Considered Akka actors? Whatever you do, dont do database polling - that would be a hacky solution. On 17 Nov 2009, at 09:02, aw wrote: I am looking to add a Chat feature to my Lift app, demonstrating the Ajax + Comet whiz bang... However, I do need to persist my chat messages (to a

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Timothy Perrett
Whilst you may not see it as a big deal, proper use of the Box, Full, Empty idioms really save LOC over time and you can start to write code that is more functional in nature - for comprehensions are a neat example. I guess im saying try it, you might like it Cheers, Tim On Nov 16, 10:08 am,

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread Timothy Perrett
The command you need when your offline is: mvn -o scala:doc from the root pom.xml Doing this command on a fresh lift clone gives you docs for 1.1-SNAPSHOT, not 1.0. I would highly recommend using 1.1 now... a lot has changed since 1.0 Cheers, Tim On 16 Nov 2009, at 14:27, alux wrote:

[Lift] Re: API-Doc generation help, pls

2009-11-16 Thread Timothy Perrett
this 'org.apache.maven.plugins:maven- changes-plugin:pom' not found thing again. Thanks, alux On 16 Nov., 16:06, Timothy Perrett timo...@getintheloop.eu wrote: The command you need when your offline is: mvn -o scala:doc from the root pom.xml Doing this command on a fresh lift clone

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-15 Thread Timothy Perrett
, Neil On Nov 15, 1:50 am, Timothy Perrett timo...@getintheloop.eu wrote: Hmm, I guess you must be new to the JVM - you cant write a file inside a WAR file; it does not work like that. You'll need to write to a fully qualified path (as per my example). Cheers, tim On 14 Nov 2009, at 17

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-14 Thread Timothy Perrett
Neil, Try something like: var buff = new java.io.BufferedInputStream(input) try { var fos = new java.io.FileOutputStream(new File(/some/root/ filepath/ + image_hash_filename)) var in = 0 do { in = buff.read() if (in != -1){ fos.write(in) } } while((in != -1)) fos =

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-14 Thread Timothy Perrett
\webapp\images\ 003.jpg :) Cheers, Neil On Nov 15, 12:23 am, Timothy Perrett timo...@getintheloop.eu wrote: Neil, Try something like: var buff = new java.io.BufferedInputStream(input) try { var fos = new java.io.FileOutputStream(new File(/some/root/ filepath

[Lift] Re: How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-14 Thread Timothy Perrett
(the full path) of the app.   LiftRules.getResource(/images/).open_!.toString.substring(6) (The code is so redundant !)     - G:\project\demo\src\main\webapp\images\   :)   Thank you very much ! Cheers,   Neil On Nov 15, 1:50 am, Timothy Perrett timo...@getintheloop.eu wrote: Hmm, I guess

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Timothy Perrett
If you mean raw sql: DB.runQuery(SELECT * FROM abc) Cheers, Tim On 13 Nov 2009, at 17:35, Neil.Lv wrote: Is there a some simple code ~? Thanks very much! Cheers, Neil On Nov 13, 10:50 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: MetaMapper.findAllFields may work for

[Lift] Re: XmlResponse with cookies

2009-11-12 Thread Timothy Perrett
- otherwise its a case of sitting tight. Cheers, Tim On 12 Nov 2009, at 02:01, Atsuhiko Yamanaka wrote: Hi, On Wed, Nov 11, 2009 at 7:30 PM, Timothy Perrett timo...@getintheloop.eu wrote: Wouldn't a more appropriate idiom be to use overloaded apply methods in a companion object

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Timothy Perrett
Neil, Try this: import net.liftweb.http.js._ import net.liftweb.http.js.JE._ import net.liftweb.http.js.JsCmds._ val script = swfobject.embedSWF(' + flashSrc + ','myContent', '300', '120', '9.0.0', 'expressInstall.swf', ' + flashVar + '); def whatever(xhtml: NodeSeq): NodeSeq =

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Timothy Perrett
Its a string because you havent properly escapped it... note that the code i sent used the CONTENT markers, thus you need to escape them properly. Cheers, Tim On 12 Nov 2009, at 12:02, Neil.Lv wrote: Why the flashSrc is a string in the Script ? Maybe it should be / flash/test.swf ?

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Timothy Perrett
DPP has a local branch running a crippled version of lift that builds with 2.8 Is there any reason you could not work with 2.7.7 for your dev - it would get you most of the way there until 2.8 is released. Cheers, Tim On 12 Nov 2009, at 18:37, Francois Armand wrote: Hello guys, I'm on

[Lift] Re: Lift under 2.8 timeframe ?

2009-11-12 Thread Timothy Perrett
Its been a moving target since June ;-) Its gotta stop sometime, right? Cheers, Tim On 12 Nov 2009, at 19:16, Wilson MacGyver wrote: You feel this confident about Scala 2.8 release by Jan? I'm curious because Scala 2.8 schedule seem to be a fairly moving target. On Thu, Nov 12, 2009

[Lift] Re: XmlResponse with cookies

2009-11-11 Thread Timothy Perrett
Wouldn't a more appropriate idiom be to use overloaded apply methods in a companion object? That is: def apply(node: NodeSeq): XmlResponse def apply(node: NodeSeq, cookies: List[HTTPCookie]): XmlResponse Thoughts? Cheers, Tim On 11 Nov 2009, at 10:21, Atsuhiko Yamanaka wrote: Hi, I

[Lift] Re: ScalaTest in Lift archetypes

2009-11-11 Thread Timothy Perrett
Bill, can I propose you and I get together at devoxx and discuss the options? I belive my talk is not long after yours! Cheers, Tim Sent from my iPhone On 11 Nov 2009, at 21:50, Bill Venners b...@artima.com wrote: Hi, I was talking with David Pollak the other night about putting some

[Lift] Re: About the localization with lift:loc !

2009-11-10 Thread Timothy Perrett
Don't call Locale.setDefault - that is a global configuration for the JVM I would urge you to re-read my article -in it you'll see how I take a note of the requested locale, and then hold that in a cookie for later reference or use on a future visit. Study the locale calculator carefully

[Lift] Re: lift-wizard progress?

2009-11-10 Thread Timothy Perrett
that adds persistable abilities or something: val myWizard = new Wizard with SerilizableWizard { } Just throwing some ideas about :-) Cheers, Tim On Nov 7, 6:49 pm, Timothy Perrett timo...@getintheloop.eu wrote: Actually, just one other thing about this - sounds a bit like a   workflow

[Lift] Re: form input tag name values changed when moving from M6 to M7

2009-11-10 Thread Timothy Perrett
If Lift is running in test mode the element names should be static, right? Cheers, Tim On 10 Nov 2009, at 19:36, ben wrote: Hi, Bear in mind that I'm a newbie Lifter, so I won't have the knowledge of why certain choices were made or the knock on effects of changing how things work in

[Lift] Re: form input tag name values changed when moving from M6 to M7

2009-11-10 Thread Timothy Perrett
Sorry I should have read the rest of the thread rather than replying via email - just trying to help but should have kept quiet! Cheers, Tim On Nov 10, 8:33 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Timothy Perrett timo...@getintheloop.eu writes: If Lift is running in test mode

[Lift] Re: SiteMap: how to change order and text of menu items

2009-11-09 Thread Timothy Perrett
Ooo, thats my blog :-) What is it you dont feel to be straight forward in what I described? You will need to use a locale calculator at the very least, because otherwise Lift has no way of knowing what language is being requested. Cheers, Tim On 9 Nov 2009, at 12:51, hmelchander wrote:

[Lift] Re: Lift for a backend REST Server

2009-11-09 Thread Timothy Perrett
This is why Lift usually wins out in my decision making - its just a very well rounded tool and yes, its great for these kinds of task. I would also like to point out that if you wanted to mix Akka and Lift for the best of both worlds, then you can do that too. Rock on. Cheers, Tim On 9

[Lift] Re: Novell Pulse, front end by Lift

2009-11-08 Thread Timothy Perrett
Kudos everyone - the fact that organisations are building saleable products on Lift is a testament to the quality of the platform so early on in its life; as a team we should take real pride in this :-) Cheers, Tim On 8 Nov 2009, at 18:06, David Pollak wrote: Folks, Last week, Novell

[Lift] Re: Pretty Printed Output?

2009-11-07 Thread Timothy Perrett
Im not sure i understand the question - in what was it the current output not pretty printed? cheers, Tim On Nov 7, 9:01 am, aw anth...@whitford.com wrote: Is there a mode whereby I can turn on pretty printed output for my xhtml?  (I'm thinking of a LiftRule, I think?).  Preferably, I'd also

[Lift] Re: About the localization with lift:loc !

2009-11-07 Thread Timothy Perrett
. Cheers,   yk On Oct 26, 9:12 pm, Timothy Perrett timo...@getintheloop.eu wrote: The browser already knows the locale, you have it backward! Your   localeCalculator is so that the browser can get lift to return the   right content. Take a look at: http://scala-tools.org/mvnsites

[Lift] Re: lift-wizard progress?

2009-11-07 Thread Timothy Perrett
On Nov 7, 3:02 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Basically, I'm separating the field logic/flow logic from any UI.  This will allow for automated testing of the wizards without a front end (and if you trust the wizard state - UI translation, then there's no need to test

[Lift] Re: lift-wizard progress?

2009-11-07 Thread Timothy Perrett
Actually, just one other thing about this - sounds a bit like a workflow engine (to a degree its a specialised one) but JBoss Drools Flow has some interesting ideas in this area if your looking for some inspiration :-) Cheers, Tim On 7 Nov 2009, at 15:02, David Pollak wrote: Basically,

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Timothy Perrett
Looks to me like a javascript issue - if your rendering flash, use swfobject: http://code.google.com/p/swfobject/ Cheers, Tim On 7 Nov 2009, at 18:49, Neil.Lv wrote: Hi all, I have a silly question about the embeded flash in the Firefox . The code like this (in the

[Lift] Re: Error mvn install on lift-actor

2009-11-02 Thread Timothy Perrett
Sorry, but +1 Maven is a funny beast that needs some controlling but in my experience a little manual repo pruneing usually yeilds results :-) Cheers, Tim Sent from my iPhone On 2 Nov 2009, at 02:18, Josh Suereth joshua.suer...@gmail.com wrote: There's something just wrong about this

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Timothy Perrett
+1 On 2 Nov 2009, at 20:27, Jim Barrows wrote: Shouldn't the reader already be aware of Scala's list construction, since that is in fact the language we're using? If you think Scala's list construction is difficult to for a new reader, I think explaining a case class would be even more

[Lift] Re: View List content

2009-11-02 Thread Timothy Perrett
Any reason your not using eGit? Seems like it would be a lot better to make a scala wrapper around that rather than use exec. Cheers, Tim Sent from my iPhone On 2 Nov 2009, at 21:58, wapgui torsten.schm...@wapgui.com wrote: Hi, I'm playing a littlebit with Lift and git and the following

[Lift] Add getOrElseUpdate to SoftReferenceCache

2009-10-31 Thread Timothy Perrett
Guys, What do people think about adding a getOrElseUpdate method to SoftReferenceCache? Marius, you wrote this code initially, what do you think? I could do with this method in some production code im writing :-) Cheers, Tim --~--~-~--~~~---~--~~ You received

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-10-31 Thread Timothy Perrett
Have you set this in Boot.scala: LiftRules.passNotFoundToChain = true Without this Lift wont pass requests that it cant handle to other servlets. I would recommend upgrading to 1.1-M6 and Scala 2.7.5 - the API has changed *a lot* since 0.9 Cheers, Tim On Oct 31, 9:24 am, oshyshko

[Lift] Re: The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist

2009-10-30 Thread Timothy Perrett
the output of mvn goal with -X switch? Cheers, Indrajit On 26/10/09 2:23 PM, Timothy Perrett wrote: Hey Indrajit, No that branch does not work either - im trying to build from the very root of lift - this should work!! I have the maven plugin in my local repo and build lots of other scala

[Lift] Flawed JSONForm and ajaxForm ?

2009-10-30 Thread Timothy Perrett
Hey guys, So i was today doing some work with jsonform and wanted to style the button that submit the form - as i know that image submit buttons dont work with IE, i had to use an image with a JS submit or similar. All going well until I realise that onsubmit handler is not fired for

[Lift] Re: ajax-loader not showing?

2009-10-30 Thread Timothy Perrett
Jeppe, did you get any further with this? Cheers, Tim On Oct 29, 1:21 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, In boot I have  LiftRules.ajaxStart =       Full(() = LiftRules.jsArtifacts.show(ajax-loader).cmd)  LiftRules.ajaxEnd =       Full(() =

[Lift] Re: global exception page

2009-10-28 Thread Timothy Perrett
Jack, LiftRules.exceptionHandler.prepend { case (Props.RunModes.Production, r, e) = { Log.error(IMPORTANT IMPORTANT IMPORTANT: Unhandeled error occoured!!,e) // your LiftResponse here RedirectResponse(/error) } } Does that clear it up for

[Lift] Re: Changes in 1.1 production mode?

2009-10-28 Thread Timothy Perrett
Looking at the definition: val stripComments: FactoryMaker[() = Boolean] = new FactoryMaker(() = {() = { if (Props.devMode) false else true }}) {} try doing: LiftRules.stripComments(false){} Cheers, Tim On 28 Oct 2009, at 13:22, Yousry Abdallah wrote:

[Lift] Re: record support redis?

2009-10-27 Thread Timothy Perrett
It's not on our road map so unless one of the commiters wants to take this on for a particular reason youll probally get a faster solution by implementing it yourself. Redis has a fairly simple interface so overlaying the record stuff should be easy. Was this a general ask or have you

[Lift] Re: About the rewrite and dispatch in the LiftRules ?

2009-10-26 Thread Timothy Perrett
Hi Niel, Please see: http://blog.getintheloop.eu/2009/5/3/url-rewriting-with-the-lift-framework Have a read, that will explain rewriting for you. Dispatching is quite different; one would use it where you want to supply a response without a HTML file (for instance, with a json api) Does

[Lift] Re: About the localization with lift:loc !

2009-10-26 Thread Timothy Perrett
! lift:loc locid=log.inLog in/lift:loc lift:loc id=log.inLog in/lift:loc ### Cheers, Neil On Oct 25, 6:27 pm, Timothy Perrett timo...@getintheloop.eu wrote: Neil, This is normal practice with java localisation - the best thing is do write all your strings then use native2ascii or similar tooling

[Lift] Re: How to use the many-to-many relationship in the lift Model ?

2009-10-26 Thread Timothy Perrett
Neil, If you found this useful we would very much appreciate it if you could put something on the wiki about it to help people who follow. Cheers, Tim On Oct 26, 8:22 am, Neil.Lv anim...@gmail.com wrote:   Thanks guys!   Maybe i should look at this thread first!  

[Lift] Re: About the localization with lift:loc !

2009-10-26 Thread Timothy Perrett
in 111, Log in 222). Has anything will be config ? Cheers,   Neil On Oct 26, 4:17 pm, Timothy Perrett timo...@getintheloop.eu wrote: Neil, Can you zip and send me an example? It's quite likley your missing something and without seeing the code it's difficult to say. Cheers, Tim

[Lift] Re: The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist

2009-10-26 Thread Timothy Perrett
irc_wip_restruct_stage and see if it happens there too? If it still persists for you I'll take a look later in the day. Cheers, Indrajit On 26/10/09 12:42 AM, Timothy Perrett wrote: Guys, Im getting the below when building a fresh pull of lift - It doesnt even appear to be looking at scala-tools

[Lift] Re: About the localization with lift:loc !

2009-10-26 Thread Timothy Perrett
, what's the tryo ? is try ? tryo () match {} What's the changes about the HTTP container providers? Thanks very much! Cheers, Neil On Oct 26, 4:44 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hmm - you posted a link to my article at the begining of this thread; in that article I

[Lift] Re: About the localization with lift:loc !

2009-10-26 Thread Timothy Perrett
the package located. src\main\scala\bootstrap\liftweb\Boot.scala:63: error: not found: value setLocale setLocale(selectedLocale) :) Cheers, Neil On Oct 26, 5:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: Yes, your template code is right - your just seeing the default value because you

[Lift] Re: About the localization with lift:loc !

2009-10-26 Thread Timothy Perrett
! Cheers, Neil On Oct 26, 7:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: setLocale was a method created by me, specific to my application - it does not exist in Lift... hence why I removed it in my simplified example. Cheers, Tim On 26 Oct 2009, at 11:45, Neil.Lv wrote: I

[Lift] Re: compatible versions

2009-10-26 Thread Timothy Perrett
Bob, This is not right. Dispatch can use 2.7.5... I have a lift project running on 1.1-SNAPSHOT that works seamlessly with dispatch and lift within the same lift app. Cheers, Tim On 26 Oct 2009, at 16:05, bob wrote: Dispatch requires 2.7.6, but Josh Suereth told me not to use 2.7.6

[Lift] Re: compatible versions

2009-10-26 Thread Timothy Perrett
Further to my last email, checkout the numerous versions of dispatch latest: http://scala-tools.org/repo-releases/net/databinder/ n8han makes sure that he is 2.7.5 compatible. Cheers, Tim On 26 Oct 2009, at 16:05, bob wrote: Dispatch requires 2.7.6, but Josh Suereth told me not to use

[Lift] Re: Is there a built-with-lift list?

2009-10-25 Thread Timothy Perrett
My latest lift app: http://mediapro09.xmpie.com A technical breakdown can be found on my blog :-) Cheers, Tim Sent from my iPhone On 25 Oct 2009, at 09:57, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: A quick list of public sites (there

[Lift] Re: About the localization with lift:loc !

2009-10-25 Thread Timothy Perrett
Neil, This is normal practice with java localisation - the best thing is do write all your strings then use native2ascii or similar tooling to convert it into the unicode representation. Glad you found my article helpful. Cheers, Tim On Oct 25, 5:02 am, Neil.Lv anim...@gmail.com wrote:    if

[Lift] Re: 1.1

2009-10-25 Thread Timothy Perrett
Jack, This question has been asked quite a number of times recently on list. Change: version1.0/version on the liftweb dependencies in your pom.xml to be: version1.1-SNAPSHOT/version That will give you the latest HEAD build. If you want a known point in time, use M6: version1.1-M6/version

[Lift] Re: 1.1

2009-10-25 Thread Timothy Perrett
Your welcome Jack. Have fun. Cheers, Tim On 25 Oct 2009, at 18:28, Jack Widman wrote: Thanks Tim. And next time I will search more before asking. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To

[Lift] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist

2009-10-25 Thread Timothy Perrett
Guys, Im getting the below when building a fresh pull of lift - It doesnt even appear to be looking at scala-tools, despite it being defined. Very odd, any ideas? Cheers, Tim [INFO] Searching repository for plugin with prefix: 'scala'. [INFO] org.apache.maven.plugins: checking for updates

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
Chris, SiteMap deals with what pages you are saying should be visible. Here, I term page as the physical xhtml file that represents the stuff the users sees - its a file on your system. Rewritten URLs dont need to feature in SiteMap because lift is clever enough to know that the page you

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
by Jeppe, and I had thought that way might work. It doesn't seem to, b/c Lift doesn't appear to fire the rewriters on URLs mapped in SiteMap. I'm not married to the idea of rewrites to solve this problem, I just need a non-snippet way to solve it. -chris Timothy Perrett wrote: Chris

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Timothy Perrett
Ahhh sorry I didn't see this before - I'm using lift mapper with SQL server at work. I can test this no worries. Just let me know what I should try ;-) Cheers, Tim Sent from my iPhone On 23 Oct 2009, at 21:18, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm pretty much 100% linux at

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Guys, Im confused - Scala is not Java. This my friends, is a very good thing. You cant expect to start a language and be able to use all the advanced features right away I doubt you were a meta-programming ninja when learning ruby! Getting back on topic, I read the original link and

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Timothy Perrett
Guys,   Prior to the changes, I had a function def registerActor(act: Actor) which could handle both scala Actor as well as CometActor,; now if I change this to def registerActor(act: GenericActor) it throws compilation error asking to a type to be specified for the GenericActor. What

[Lift] Re: Fwd: Build failed in Hudson: Lift #1307

2009-10-22 Thread Timothy Perrett
Hmm how strange - it builds fine locally? Cheers, Tim On Oct 22, 10:56 am, David Pollak feeder.of.the.be...@gmail.com wrote: Anyone have a clue as to why the JTA stuff in Lift is unstable on Hudson? -- Forwarded message -- From: ad...@scala-tools.org Date: Thu, Oct 22,

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Well said that man! Couldn't agree more with this statement. Cheers, Tim On Oct 22, 9:43 am, Marius marius.dan...@gmail.com wrote: I accept that many people think that MVC is the Holly Grail, but I don't believe that ... and I think most people really using Lift don't believe that either.

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
I think this is a bit of a running joke in the scala comunity right now - your right, underscore really does have a number of meanings; I think this will be changed in some future Scala release. Your also forgetting: import some.package._ Cheers, Tim On 22 Oct 2009, at 12:57, tiro wrote:

[Lift] Re: New update changed something?

2009-10-22 Thread Timothy Perrett
Sure, just go to options on the web interface at the top of the thread and as moderator you should see a whole bunch of options. Cheers, Tim On 22 Oct 2009, at 16:22, David Pollak wrote: On Thu, Oct 22, 2009 at 7:03 AM, TylerWeir tyler.w...@gmail.com wrote: Umm,

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
David, I think your response was well measured and appropriate. The analogy of linguistics is a good one :-) Without wanting to diverge this thread, can I ask why it is your unhappy with Record? Its been fairly fun to use so far and appears to work well. Cheers, Tim On 22 Oct 2009, at

[Lift] Re: A Critique On Lift

2009-10-22 Thread Timothy Perrett
Right, no one likes mutable anything :-) I kinda wondered why you haven't pushed forward any more with the current record implementation... can one assume that is why - because it didn't feel right? Some of this stuff is going to be fundamental to how we move forward - id love to perhaps

[Lift] Re: Record is the default db interface in the Lift1.1 ?

2009-10-21 Thread Timothy Perrett
Neil, Record is not yet the default - please use mapper unless you want a custom backend for some other (non-rdbms) service. Cheers, Tim On 21 Oct 2009, at 08:42, Neil.Lv wrote: Hi all, Record is the default db interface in the Lift1.1 ? Is there anybody who know some examples about

[Lift] Re: Rolling out the new Lift Actors code

2009-10-21 Thread Timothy Perrett
I think when the changes are merged to master there should be some kind of announcement to the list explaining the ramifications and the things that will break (along with solutions) Cheers, Tim On 21 Oct 2009, at 17:54, David Pollak wrote: On Wed, Oct 21, 2009 at 9:34 AM, Indrajit

[Lift] Re: How to disable a textfield

2009-10-20 Thread Timothy Perrett
Change - to -% Doing this preserves any element attributes, for example: disabled=disabled Cheers, Tim On Oct 20, 6:30 am, sunanda sunanda.pa...@gmail.com wrote: Hi, I need to disable all the textfield and then want to enable the fields for editing on click of a button. How can i do this

[Lift] Re: Why the liftweb doesn't use mysql as the default database ?

2009-10-19 Thread Timothy Perrett
Because MySQL is not embedable - with derby its a true out of the box experience. Switching to mysql is easy and in the examples... Cheers, Tim On 19 Oct 2009, at 09:10, Neil.Lv wrote: Hi all, Why the liftweb doesn't use MySQL as the default database ? Thanks very much ! Cheers,

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Timothy Perrett
Neil, You do not need to download the scala distro ahead of time - maven will automatically download the right jars for you if they don't exist in your local repo. Lift does not and will not work with 2.7.6 - that was a broken scala release. Cheers, Tim Sent from my iPhone On 18 Oct

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Just remove ~/.m2 The next time you make a maven call it'll then download all the new JAR files. Cheers, Tim On 16 Oct 2009, at 09:35, GA wrote: Is there any way to reset maven's repository? I think there is something corrupt because the behavior is really strange. I think this is the

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
, Timothy Perrett wrote: Just remove ~/.m2 The next time you make a maven call it'll then download all the new JAR files. Cheers, Tim On 16 Oct 2009, at 09:35, GA wrote: Is there any way to reset maven's repository? I think there is something corrupt because the behavior is really

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Timothy Perrett
I thought we had this discussion in some other thread and because scala-time wasn't 1.0 there was a general reluctancy to use it? We could cherry pick some of the code however; im sure Jorge wouldn't mind :-) Cheers, Tim On 16 Oct 2009, at 11:30, Charles F. Munat wrote: You have looked

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
://scala-tools.org/repo-releases/url /pluginRepository /pluginRepositories It is ok? Cheers, GA On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote: You must be missing the correct repository tag. Check that you have: repositories repository idscala-tools/id

<    1   2   3   4   5   6   7   8   9   10   >