[Lift] Re: How do you submit a post request to an external url

2009-05-05 Thread Timothy Perrett
wraps HttpServlet. Aren't there some method calls I can use to do the job? Glenn... On May 5, 5:45 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, If you are posting to an external URL im not sure there is a good case for using bind(...) as that binds served HTML

[Lift] Re: How do you submit a post request to an external url

2009-05-05 Thread Timothy Perrett
it from the beginning and not use lift at all. By the way,I thought lift already wraps HttpServlet. Aren't there some method calls I can use to do the job? Glenn... On May 5, 5:45 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, If you are posting to an external URL im

[Lift] Lift + Google Map issue

2009-05-05 Thread Timothy Perrett
Guys, got a very strange problem with lift serving a google map page I tore things back to the bear metal example from google, and with working code in a static html page served by apache, it works fine. I then paste it into a lift served page, and I get a JS error in the FF console:

[Lift] Re: Lift + Google Map issue

2009-05-05 Thread Timothy Perrett
is detected is application/xhtml+xml If you want to disable service as XHTML, set: LiftRules.useXhtmlMimeType = false Thanks, David On Tue, May 5, 2009 at 1:04 PM, Timothy Perrett timo...@getintheloop.euwrote: Guys, got a very strange problem with lift serving a google map page

[Lift] Re: Lift + Google Map issue

2009-05-05 Thread Timothy Perrett
On Tue, May 5, 2009 at 2:51 PM, Timothy Perrett timo...@getintheloop.eu wrote: LOL!! Thanks David, after 2 years of Lift its nice to know there is still stuff to catch me out :-D You rock. Cheers, Tim On May 5, 9:36 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Tim, You

[Lift] Re: Is there a bulk update function ?

2009-05-04 Thread Timothy Perrett
Hi there, we dont have a bulkUpdate function right now - however you could just run some SQL directly: DB.runQuery(SQL GOES HERE) Is that of any help? Cheers, Tim On May 4, 1:53 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi :   From the Lift Book, there is a bulk delete

[Lift] Re: Article about URL rewriting in Lift

2009-05-04 Thread Timothy Perrett
Hey Andrew, Glad you found this useful - sure, feel free to link to it from the wiki. Cheers, Tim On May 4, 12:37 am, Andrew Scherpbier and...@scherpbier.org wrote: Wow, this is awesome!  Can a link to this be provided from the wiki/getting started guide/api docs? --Andrew

[Lift] Re: How would I call a template from another template?

2009-05-04 Thread Timothy Perrett
Do you mean: lift:embed what=/path/to/template / Thanks, Tim On May 3, 7:45 pm, EmEhRKay emehr...@gmail.com wrote: Very simple idea - I have a tags template that I put in the templates- hidden directory, it creates a list of tags. In one of my public templates I want to be able to call that

[Lift] Re: how to hide /display div tag in lift

2009-05-04 Thread Timothy Perrett
Just my two pence, but id got for chooseTemplate. If it helps, I discuss using chooseTemplate in this article: http://is.gd/sfyT Cheers, Tim On May 4, 3:33 pm, marius d. marius.dan...@gmail.com wrote: There are so many ways ... 1. Use chooseTemplate technique. I think the examples

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-03 Thread Timothy Perrett
Wow! Too lazy to register?! IMO, registration is a one-time event and is needed to combat spam / bot activity. Rather than having a system where people complain / suggest alterations, we prefer people to just get on and change them... Power to the people! On 03/05/2009 14:33, Axel Rose

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-03 Thread Timothy Perrett
Richard, its a shame you feel like that. Your comments about examples are noted, however you must bear in mind that both scala and lift are young (relatively speaking) and a lot of the applications that are out there, are behind corporate firewalls (including mine) - so don't be fooled into

[Lift] Re: Do you guys ever use lift:a key=... ... in your templates?

2009-05-03 Thread Timothy Perrett
Marius, To clarify, your saying that you'd like to get rid of lift:a and move the functionality into SHtml or something? Thanks, Tim On May 3, 11:51 am, Marius marius.dan...@gmail.com wrote: Hi, I'm asking this because SHtml.a is a bit a-typical in the sense of producing lift:a that will

[Lift] Re: Do you guys ever use lift:a key=... ... in your templates?

2009-05-03 Thread Timothy Perrett
So your trying to asscertain if people use lift:a directly in there template code? On May 3, 9:35 pm, marius d. marius.dan...@gmail.com wrote: Well SHtml.a yields a lift:a and processed in its own snippet now. I guess I'm only challenging the need for lift:a ... and try to understand in what

[Lift] Article about URL rewriting in Lift

2009-05-03 Thread Timothy Perrett
Guys, Thought people might find this an interesting article about lift's URL rewriting system and help out some newbies :-) http://is.gd/wq4K Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group.

[Lift] Re: Logging Exception

2009-05-03 Thread Timothy Perrett
Have you configured your dependencies? Perhaps this will help: http://scala-tools.org/mvnsites-snapshots/liftweb/lift-util/scaladocs/net/liftweb/util/Slf4jLogBoot$object.html Cheers, Tim On May 3, 3:35 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hello: I got an exception

[Lift] Re: Where to add demos/examples

2009-05-02 Thread Timothy Perrett
Heiko, Please see here: http://is.gd/w5SB We've talked before on the committers list about renaming sites to examples or such, so I see no reason why putting any working example you want in there. POC would probably be a different matter... If its not working code, host it on your own github

[Lift] Re: Where to add demos/examples

2009-05-02 Thread Timothy Perrett
With that being said, we're a very vocal bunch... the top posters to this list on any given month are committers... so we just can't shut up :-) Guilty as charged! lol. I think thats a real positive thing though - it means lots of community members get lots of help / talk / general

[Lift] objet vs class for snippets

2009-05-02 Thread Timothy Perrett
Guys, I noticed that the internal lift snippets (msgs et al) have been moved to objects rather than classes - there are obvious benefits performance wise for this, but what should we be supplying to new- comers as the de-facto snippet implementation style? I know the answer is unlikely to be

[Lift] Re: Lift 1.1 M1 question

2009-05-02 Thread Timothy Perrett
Tim, .m1 is indeed stable to use, go right ahead :) Cheers, Timothy On 02/05/2009 16:50, TSP tim.pig...@optrak.co.uk wrote: I'm at early stages of a fairly big project at the moment and mainly working in my domain model. Is M1 safe to use, since I doubt we'll get onto serious UI stuff

[Lift] Re: Localize an image

2009-05-01 Thread Timothy Perrett
Can you not just apply a CSS class dynamically to that element and write the appropriate CSS? Thanks, Tim On 01/05/2009 16:42, bradford fingerm...@gmail.com wrote: lift localization is going very smoothly -- thank you all for your efforts put into this. Does anyone know if it is possible

[Lift] [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
Guys, Maven just pulled the latest jars from hudson and ooops, now my project is broken! lol. The changes to the string helpers etc to move to double quotes not single quotes has broken my entire application which is due to go out tomorrow. For instance: {'useJSToGetCustomizationValues':

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
David, Thanks for your reply - so what your saying is that if I wrap it in a CDATA block then issues will go away? Thanks, Tim On Apr 30, 1:02 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Apr 30, 2009 at 3:26 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
Yeah of course - im already familiar with the Script object. My code looks like: def show(xhtml: NodeSeq): NodeSeq = bind(uedit, xhtml, application - Script(Run(script)) ) And the rendered html looks like: script type=text/javascript // ![CDATA[ swfobject.embedSWF(

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The items with ‘item’ single quotes are just concatenated strings as they are fixed paths etc. Its not those which are causing the problem – its the serialization of JsObj that appears to be the issue here. If you remember some time ago I was asking about JsObj and Map [String,String], anyway I

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The items with Œitem¹ single quotes are just concatenated strings as they are fixed paths etc. Its not those which are causing the problem ­ its the serialization of JsObj that appears to be the issue here. If you remember some time ago I was asking about JsObj and Map[String,String], anyway I

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread Timothy Perrett
The latter, its a toString Are you doing a toJsCmd on the JsObj that you're creating or a toString? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: how to add object into session scope in lift

2009-04-29 Thread Timothy Perrett
1. Object is like a static class in Java ­ but better. 2. Its not instantionation in that sense, so by proxy not creation 3. Scala objects have an apply method, of which, MyObject() is a shortcut to. Think of it as being the same as MyObject.apply(...) etc. 4. It is indeed a subtype similar to

[Lift] Re: how to add object into session scope in lift

2009-04-28 Thread Timothy Perrett
Try: // this gets you whatever is in the session object so add to it here SessionObj.is Do you specifically need to use Java HashMap? If not, seems like List[(String,Int)] would be more lift-esq. Cheers, Tim On 28/04/2009 13:30, pravin pravinka...@gmail.com wrote: Hi guys, I want to add

[Lift] Re: 1.1-SNAPSHOT API docs

2009-04-28 Thread Timothy Perrett
The webkit docs are here: http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/inde x.html If you want to generate them locally, just download the lift src and run this from the top level directory: mvn install scala:doc Cheers, Tim On 28/04/2009 17:08, Andrew Scherpbier

[Lift] Re: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett
Was only just looking at this the other day... I really only wanted an ajax uploader with progress bar and for that I need streaming uploads (which we don¹t have) so right now it was a non-starter. Cheers, Tim On 29/04/2009 00:07, David Pollak feeder.of.the.be...@gmail.com wrote: ?

[Lift] Re: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett
Yeah there is a really great little lib I found for it... 5 mins and I¹ll dig it out On 29/04/2009 00:43, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Apr 28, 2009 at 4:17 PM, Timothy Perrett timo...@getintheloop.eu wrote: Was only just looking at this the other day... I

[Lift] Re: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread Timothy Perrett
This is the one: http://github.com/drogus/jquery-upload-progress/tree/master Cheers, Tim On Apr 29, 12:54 am, Timothy Perrett timo...@getintheloop.eu wrote: Yeah there is a really great little lib I found for it... 5 mins and I¹ll dig it out On 29/04/2009 00:43, David Pollak

[Lift] Re: lift and background processing

2009-04-28 Thread Timothy Perrett
Nice example David - very illustrative for newbies :) Just wondering if having somthing like this in either sites or sites/ example is worthwhile? Cheers, Tim On Apr 29, 1:15 am, David Pollak feeder.of.the.be...@gmail.com wrote: Howdy, Here's an example of using an actor to do background

[Lift] Re: Upgrade to 2.7.4 breaks with-param?

2009-04-27 Thread Timothy Perrett
Ah right, so your thinking that lift:bind will go, and be replaced with something similar that uses our existing snippet infrastructure? Cheers, Tim On 27/04/2009 07:28, marius d. marius.dan...@gmail.com wrote: BTW ... there were previous discussions that for 1.1 we'll deprecate lift:bind,

[Lift] Re: Upgrade to 2.7.4 breaks with-param?

2009-04-27 Thread Timothy Perrett
Can you be specific about which other lift artefacts you want to replace lift:bind with? Im not fighting lift:binds corner or anything, rather, just interested to know what will supersede it because this kind of functionality is key in our template strategy. Cheers, Tim On 27/04/2009 10:13,

[Lift] Re: from where can i get lifts sample examples

2009-04-27 Thread Timothy Perrett
Check out these: http://is.gd/uTbj Cheers, Tim On 27/04/2009 13:32, pravin pravinka...@gmail.com wrote: Hi guys, i want sample examples of lift from where i will get these sample examples? --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Upgrade to 2.7.4 breaks with-param?

2009-04-27 Thread Timothy Perrett
Sounds great gents! Looking forward to the update. Cheers, Tim --~--~-~--~~~---~--~~ 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

[Lift] Re: Javascript confirm(..) dialog with ajaxButton

2009-04-27 Thread Timothy Perrett
Hey, Seems like you have a couple of options... 1. you could just write normal javascript irrespective of lift and just put that in a JS file like normal. Something like: $('#mybutton').click(function(e){ confirm... //blah blah code here }); 2. If you *really* want to use the on-click

[Lift] Upgrade to 2.7.4 breaks with-param?

2009-04-26 Thread Timothy Perrett
Guys, Just pulled the latest lift codebase and finding that an existing project im working on now has problems with the syntax: lift:with-param name=top_image . /lift:with-param I see this on the console of jetty: WARN - Snippet Failure: SnippetFailure(/ - ParsePath(List

[Lift] with-param now appears to be broken?

2009-04-26 Thread Timothy Perrett
Correction, it appears this commit broke the snippet code: http://github.com/dpp/liftweb/commit/c27d8497cf671d250c55370e4407c15bd8e3dd0f#diff-8 Cheers, Tim On Apr 26, 8:06 pm, Timothy Perrett timo...@getintheloop.eu wrote: Guys, Just pulled the latest lift codebase and finding

[Lift] Re: how to serve html fragments

2009-04-26 Thread Timothy Perrett
George, To tell lift what doctype you want to use see my blog post here: http://is.gd/uJ4L Also, you'll want to read another one of my posts in which I discuss the bind(...) method and how you can stop putting markup into your snippets: http://is.gd/sfyT Cheers, Tim On Apr 26, 1:02 pm, george

[Lift] Re: with-param now appears to be broken?

2009-04-26 Thread Timothy Perrett
Thanking you kind sir! Cheers, Tim On 26/04/2009 20:51, marius d. marius.dan...@gmail.com wrote: Yup the snippets stuff ... I'll fix it now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: Upgrade to 2.7.4 breaks with-param?

2009-04-26 Thread Timothy Perrett
Things changed with this code 2 days ago... independent of the 2.7.4 update.  Marius moved the various lift:xxx / tags into snippets. Yeah I realized that once I trawled the commits. I think he checked in a fix a few minutes ago. Indeed he has and its now working once more. Cheers, Tim

[Lift] Re: **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread Timothy Perrett
Sweet! Well done Jorge / David for getting this out so quickly with the announcement of 2.7.4 --~--~-~--~~~---~--~~ 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

[Lift] Re: Binding Radio Button

2009-04-25 Thread Timothy Perrett
Glad you got it working :-) Cheers, Tim On Apr 25, 7:38 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Oh...I think I found the reason...Thanks for the help The reason is in my code The binding to submit button is previous to binding to checkbox. if the order is

[Lift] Re: Feedback on screen cast, please

2009-04-25 Thread Timothy Perrett
Awesome - there are a couple of casts I wanna do so perhaps mash them all into the same channel... Cheers, Tim On Apr 25, 2:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I've posted it at blip.tv: http://liftweb.blip.tv It seems to have good audio synchronization. On Sat, Apr

[Lift] Re: **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread Timothy Perrett
to it. --j On Sat, Apr 25, 2009 at 11:34 AM, Timothy Perrett timo...@getintheloop.eu wrote: Sweet! Well done Jorge / David for getting this out so quickly with the announcement of 2.7.4 --~--~-~--~~~---~--~~ You received this message because you

[Lift] Re: Binding Radio Button

2009-04-24 Thread Timothy Perrett
A checkbox should look like this: var booleanThing: Boolean = false def another(xhtml: NodeSeq): NodeSeq = { bind(c,xhtml, checkbox - SHtml.checkbox(booleanThing, booleanThing = _) % (class - myCSSclass) ) } Cheers, Tim On Apr 24, 2:16 am, sailormoo...@gmail.com

[Lift] Re: Question from a newbie: how to get a pdf document via submit button

2009-04-24 Thread Timothy Perrett
Your confussing things I think. InMemoryResponse is a HTTP response designed for use in conjunction with DispatchPF. If your getting the PDF dynamically then you'll need to read the PDF either into memory and return it from a url or do a streaming response - checkout my blog post here about

[Lift] Re: Question from a newbie: how to get a pdf document via submit button

2009-04-24 Thread Timothy Perrett
would write to HttpServletResponse -- ... response.getOutputStream().write(bytes); TIA Regards, Martin On Apr 24, 11:29 am, Timothy Perrett timo...@getintheloop.eu wrote: Your confussing things I think. InMemoryResponse is a HTTP response designed for use in conjunction with DispatchPF

[Lift] Re: Question from a newbie: how to get a pdf document via submit button

2009-04-24 Thread Timothy Perrett
the bytes directly to my HttpServletResponse. And my main question is: how can I do this from the snippet. Regards, Martin On 24 Apr., 20:20, Timothy Perrett timo...@getintheloop.eu wrote: Martin, You need to write a DispatchPF and put that in your boot.scala file. e.g

[Lift] Re: Question from a newbie: how to get a pdf document via submit button

2009-04-24 Thread Timothy Perrett
Apr., 20:20, Timothy Perrett timo...@getintheloop.eu wrote: Martin, You need to write a DispatchPF and put that in your boot.scala file. e.g LiftRules.dispatch.append {   case Req(my :: path :: Nil, pdf, GetRequest) = // do steaming response stuff here } Does

[Lift] Re: Feedback on screen cast, please

2009-04-24 Thread Timothy Perrett
Or better still, just make a channel on Blip... then we could have a whole series of Lift related screen casts in a single channel done by various committers. http://blip.tv/ Thoughts? Cheers, Tim On Apr 24, 8:48 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Very nice. I don't think it

[Lift] Re: Binding Radio Button

2009-04-23 Thread Timothy Perrett
You might find this helpful: http://is.gd/sfyT Cheers, Tim On Apr 23, 4:28 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hello:   And about the checkbox..  bind(entry, xhtml,       test_mode         - SHtml.checkbox(false, if (_) option_list = option_list :::

[Lift] Re: http://demo.liftweb.net/ no navigation on left

2009-04-23 Thread Timothy Perrett
Were using blueprint CSS so its an issue with blueprint rather than a with lift... Either that or its just some new general crapness brought to market by Microsoft in the package that is IE8 and blueprint is yet to account for it. On Apr 23, 2:44 am, allen allenrle...@yahoo.com wrote: Running

[Lift] Re: lift:surround with multiple content elements

2009-04-22 Thread Timothy Perrett
You need to use the with-param style. Check this: // templates-hidden/default.html div id=flight-plan lift:bind name=flightplan/ /div div id=content lift:bind name=content / /div // somepage.html lift:surround with=default at=content lift:with-param name=flightplan img

[Lift] Re: Netbeans 6.5 Out of Memory Error with 4MB file forces Eclipse for me

2009-04-22 Thread Timothy Perrett
What on earth do you mean by this? Tim. On 22/04/2009 06:15, jsm2prof jsm2p...@googlemail.com wrote: Would someone please kick Lift up to the status of playing with the heavy weight? --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Binding Radio Button

2009-04-22 Thread Timothy Perrett
Hey, this is a classic mistake as its not well documented - radio is unlike any other bind, check out my example here: http://gist.github.com/99713 Cheers, Tim On Apr 22, 2:43 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hello:     var sex         = M     val sex_map =

[Lift] Re: Lift and Bespin... a new way to develop web apps...

2009-04-22 Thread Timothy Perrett
+1 - Thunderhead sounds especially amazing... Could really use a canvas based framework that was as sick as that! Cheers, Tim On 22/04/2009 01:23, TylerWeir tyler.w...@gmail.com wrote: o m g. This is going to be sick! On Apr 21, 7:07 pm, David Pollak feeder.of.the.be...@gmail.com

[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?

2009-04-22 Thread Timothy Perrett
Just to emphasise this: I tried to decouple some of the templating stuff previously and it was difficult to the point that I stopped bothering (jorge was helping too) By all means, id love to see this work, but it would be a quite a task and one that involves knowing exactly how lift template

[Lift] Re: lift and background processing

2009-04-22 Thread Timothy Perrett
I do indeed have a system like this - unfortunately there is no way I can share the code (corporate rules and its highly specific for our environment). Essentially I have a bunch of Actors that co-operate to get the jobs done - I have a master actor that handles all the queuing etc then it

[Lift] Re: Why no BLOB for Derby?

2009-04-22 Thread Timothy Perrett
Id imagine that's why its not implemented then ;-) On 22/04/2009 23:20, Derek Chen-Becker dchenbec...@gmail.com wrote: Derby is very unhappy if you send an Array[Byte] to a BLOB column. --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: How to create dynamic table in response

2009-04-21 Thread Timothy Perrett
Hi there, Read my article here: http://is.gd/sfyT Lift does not use any html based iteration - read the binding article and it will all make sense (just ask if it doesnt) Cheers, Tim On Apr 21, 7:19 am, pravin pravinka...@gmail.com wrote: i have already done with this, But this is static

[Lift] Re: id# based pages

2009-04-21 Thread Timothy Perrett
You want to do something like this: http://gist.github.com/99026 Tim On Apr 21, 5:43 am, harryh har...@gmail.com wrote: I want the URLs for user profile pages on my site to be in the following form: http://mydomain.com/user/123 Where 123 is the user id. I'm having trouble figuring out

[Lift] Re: Minimal Authorization API for Lift

2009-04-21 Thread Timothy Perrett
Brett, You are confusing things here - HttpAuthentication is just for Basic and Digest auth, nothing else. MetaMegaProtoUser is a base class that saves time when implementing mapper backed user systems. You are free to use whatever you want of course... SiteMap controls URL access and is wired

[Lift] Re: id# based pages

2009-04-21 Thread Timothy Perrett
Personal preference, but I dont like that zip map style... id always use specific paramaters as per my exampe - they you know exactly what your going to get when you call S.param(thing) in your snippet code. Tim On Apr 21, 12:22 pm, Charles F. Munat c...@munat.com wrote: Put this in your

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Timothy Perrett
Can you try with maven 2.0.9... Also, I think your java version would be 6 for the JRE, but 1.5.0 for the JDK that ships with OSX? Cheers, Tim On 21/04/2009 11:29, Julian Howarth howar...@freenet.co.uk wrote: I'm getting started with Lift and am trying to run the examples from the

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread Timothy Perrett
: hi, Can you run (and report the output) : mvn compile -Dmaven.scala.displayCmd=true /davidB On Tue, Apr 21, 2009 at 14:22, Julian Howarth howar...@freenet.co.uk wrote: On Apr 21, 12:56 pm, Timothy Perrett timo...@getintheloop.eu wrote: Can you try with maven 2.0.9... I've now

[Lift] Re: Moving to streaming upload API

2009-04-21 Thread Timothy Perrett
+1, having the choice would be good. Seems like it would be simple to add it to LiftRules for user configuration. @dpp What other re-factoring of Req did you have in mind? Id have a poke about with the streaming stuff but I get the impression it might be a bit wasted depending on what you have

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-21 Thread Timothy Perrett
The main one i've come across is that whole jetty WebAppContext which I dont seem to be able to get rid of did anyone find a solution for that? Cheers, Tim On Apr 21, 8:45 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Eclipse has been on and off with me. The new version definitely

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Timothy Perrett
I too used to do a lot of rails dev... Granted my lift apps take me *slightly* longer to produce, but only by a bit. However, they do take a lot less time to deploy and maintain because my platform is not leaking like the proverbial rusty bucket ;-) Cheers, Tim On 21/04/2009 20:15, Jeppe

[Lift] Re: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext

2009-04-21 Thread Timothy Perrett
Just pushed this change - archetypes now work seamlessly. Cheers, Tim On Apr 21, 9:30 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Please make it so. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)

2009-04-20 Thread Timothy Perrett
I renamed it that because this is about making it easier for newbies to get up and running with eclipse - its not a problem per-say, as everything compiles just fine without it, but this will no doubt save a lot of head scratching which can only be a good thing :-) On Apr 20, 1:07 am, Miles

[Lift] Re: Lift helloworld on App Engine: java.lang.NoClassDefFoundError: Could not initialize class net.liftweb.http.LiftRules$

2009-04-20 Thread Timothy Perrett
Thats odd - I added: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version6.1.16/version scopeprovided/scope /dependency to my pom.xml, but still eclipse cannot find the appropriate class? Cheers, Tim On Apr 20, 8:27 am, Timothy Perrett

[Lift] Re: Lift helloworld on App Engine: java.lang.NoClassDefFoundError: Could not initialize class net.liftweb.http.LiftRules$

2009-04-20 Thread Timothy Perrett
Ooops!! Just realized i posted this in the wrong place. Sorry guys. On Apr 20, 8:56 am, Timothy Perrett timo...@getintheloop.eu wrote: Thats odd - I added:     dependency       groupIdorg.mortbay.jetty/groupId       artifactIdjetty/artifactId       version6.1.16/version

[Lift] Re: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)

2009-04-20 Thread Timothy Perrett
Thats odd - I added: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version6.1.16/version scopeprovided/scope /dependency to my pom.xml, but still eclipse cannot find the appropriate class? Cheers, Tim

[Lift] Re: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext

2009-04-19 Thread Timothy Perrett
Hey Heiko, This was my feeling - im aware that class does not exist in version 7... I guess my point was do we need to change the lift-archetype so that it explicitly defines jetty 6? It seems that this would smooth the curve for newbies :-) Cheers, Tim On Apr 19, 9:50 pm, Heiko Seeberger

[Lift] Re: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)

2009-04-19 Thread Timothy Perrett
Hmm im inclined to agree - lets wait and see what the general consensus is. If its positive, then I'll update the archetypes tomorrow. Cheers, Tim On 19/04/2009 22:12, Heiko Seeberger heiko.seeber...@googlemail.com wrote: +1 for changing. Am 19.04.2009 um 22:59 schrieb Timothy Perrett

[Lift] Re: Object typecast to Mapper

2009-04-18 Thread Timothy Perrett
So your talking about reflection right? Take a look at scala Manifests (which aide getting round type erasure) - other than that scala supports all the normal reflection tooling that Java does. Tim On 18/04/2009 06:56, Amit Kumar Verma cdac.a...@gmail.com wrote: Scala is a static language,

[Lift] Re: Liftweb without Maven?

2009-04-15 Thread Timothy Perrett
Perhaps David B can help on the feasibility of this with our current hudson install / services. Cheers, Tim On 15/04/2009 06:40, marius d. marius.dan...@gmail.com wrote: sounds good to me On Apr 14, 10:58 pm, Timothy Perrett timo...@getintheloop.eu wrote: Perhaps we could couple

[Lift] Re: Rewrite to URL

2009-04-15 Thread Timothy Perrett
Take a look at: // Your boot.scala LiftRules.dispatch.append { case Req(.) } Do a dispatch call and yeild a Box[RedirectResponse] (subtype of LiftResponse) and this will do what you need. Cheers, Tim On 15/04/2009 12:53, wapgui torsten.schm...@wapgui.com wrote: Hi, I want to

[Lift] Re: Liftweb without Maven?

2009-04-15 Thread Timothy Perrett
Alex, We could do something like this, but it would still need to use maven to start the server (mvn jetty:run). Unfortunately, you'll need to have a local maven repo, that's a) part of how maven works and b) the legal implications of us redistributing a bunch of other peoples code to make it

[Lift] Re: Updates to Menu-related stuff

2009-04-15 Thread Timothy Perrett
Awesome - thanks David Sent from my iPhone On 15 Apr 2009, at 22:15, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I just checked in new code for menu-related snippet stuff (note that this will only be available for local builds... our Hudson server is still not up): For

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

2009-04-13 Thread Timothy Perrett
If you want 5 items a line, you can use nested binds - checkout the chooseTemplate(...) method. Any pagination or limiting you need to do, just do that in your snippet however you want to page your result set :-) On Apr 13, 7:18 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: I

[Lift] Re: TemplateCache

2009-04-13 Thread Timothy Perrett
Just checked out the code Marius... this is good stuff! So one could use the SoftReferenceCache generically as a thread safe replacement for KeyedCache right? The template cache is pretty sweet also. Cheers, Tim On Apr 13, 7:20 am, marius d. marius.dan...@gmail.com wrote: Yes by using

[Lift] Re: Simple config for Log4J

2009-04-13 Thread Timothy Perrett
You can set different run mode logging configurations, try calling the file ³default.log4j.xml². For more information, see here: http://github.com/dpp/liftweb/blob/29f44b91e28eaceaa784322eaad8f2bb909fa9aa/ lift-util/src/main/scala/net/liftweb/util/Log.scala#L85 Thanks Tim On 13/04/2009

[Lift] Re: convention how to name classes in snippet package

2009-04-13 Thread Timothy Perrett
Tobias, There is no need to have a direct relation between snippets and model classes - why would you need to have a relationship? Snippets usually encompass a small element of functionality that might be related to one or more models - mapper or otherwise. Personally, I like that fact there

[Lift] Re: Automatically change Language (Locale)

2009-04-13 Thread Timothy Perrett
FYI - if you want an example, check this out: http://github.com/dpp/liftweb/blob/29f44b91e28eaceaa784322eaad8f2bb909fa9aa/ sites/JPADemo/JPADemo-web/src/main/scala/bootstrap/liftweb/Boot.scala#L67 Cheers, Tim --~--~-~--~~~---~--~~ You received this message

[Lift] Re: label tag for generated input

2009-04-13 Thread Timothy Perrett
Errrmm, I think your mistaken in your example. I think you mean: lift:someSnippet form=post p label for=usernameUsername/label br/ f:username f:id=username / /p pf:submit //p /lift:someSnippet You don't need to manually populate content inside the bind placeholders - its

[Lift] Re: Need for lightweight JPA archetype

2009-04-13 Thread Timothy Perrett
... Timothy Perrett wrote: Are you eyeing up for your first commit Chas? ;-) The src of the JPA archetype is here: http://github.com/dpp/liftweb/tree/4a5d4530b407782a2f0e0e99b277432dbb. .. Cheers, Tim On Apr 2, 6:02 pm, Charles F. Munat c...@munat.com

[Lift] Re: TemplateCache

2009-04-12 Thread Timothy Perrett
is that we can get these orthogonal behaviors through composition. Derek On Sun, Apr 5, 2009 at 2:21 PM, Timothy Perrett timo...@getintheloop.euwrote: Just taken a look over the code - looks pretty cool! I like your ideas for ConcurrentHashMap - all sounds pretty awesome

[Lift] Re: Rails - Lift

2009-04-10 Thread Timothy Perrett
I think a lot of people coming to scala from ruby are more familiar with the terminal and textmate style combination... using large IDE's with boat loads of features is more for people coming from a traditional java background. Thats not to say they don't have merit, of course they do, but I

[Lift] Re: Small archetype bug?

2009-04-10 Thread Timothy Perrett
Ignore me... im being dumb! Basic archetype has lib but the blank one doesnt. I'll add a lib dir to blank archetype tomorrow. Cheers, Tim On Apr 10, 12:22 pm, Tim Perrett timo...@getintheloop.eu wrote: Just looked at the blank archetype because im wanting to build another one for my own

[Lift] Re: Small archetype bug?

2009-04-10 Thread Timothy Perrett
Agreed - this is exactly what I think most people do. On 10/04/2009 20:25, David Pollak feeder.of.the.be...@gmail.com wrote: I put non-Lift related logic stuff in lib. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Rails - Lift

2009-04-09 Thread Timothy Perrett
On the contrary... Im coding in TextMate right now: it works perfect! I run scala:cc in a terminal window and just code away in TextMate. Job done. Tim On 09/04/2009 10:38, Alexander Kellett lypa...@gmail.com wrote: in the rails/osx world its easy: use textmate unless you have a

[Lift] Re: Google App Engine

2009-04-08 Thread Timothy Perrett
Awesome! Hell yeah, i'll give this a try! On Apr 8, 8:40 am, Jorge Ortiz jorge.or...@gmail.com wrote: Google App Engine just released support for Java/Scala. I just sent in my laptop for repairs and won't get it back for a while. Anyone want to try Lift on GAE and report back? --j

[Lift] Re: Google App Engine

2009-04-08 Thread Timothy Perrett
Can you fwd to the lift list for those of us not on the main scala mailing lists? Thanks, Tim On Apr 8, 3:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: See my response on the scala list --~--~-~--~~~---~--~~ You received this message because you are

<    5   6   7   8   9   10   11   >