Re: [Lift] Happy 3rd Anniversary to Lift

2010-02-27 Thread Tim Perrett
Wow, three years already! Man, what an adventure its been!! David I think you also need a big thank you from both the rest of the team and the community - thanks for fostering a community where newbies are welcome and production support is a primary concern. Its been a hell of a ride so

[Lift] lift-amqp, RabbitMQ and Subscriptions?

2009-04-22 Thread Tim Perrett
Guys, Im just starting to look at RabbitMQ and lift-amqp. I have a situation where by I have a central pot of information and a bunch of different consumers that want to keep up to date with changes to things they are interested in (specifically, we'll call the things they are interested in

[Lift] Moving to streaming upload API

2009-04-21 Thread Tim Perrett
Guys, I've been taking a close look at the way lift handles uploads. Right now were putting the entire thing (upload) into memory. This, IMO, is not a good look. I managed to crash my whole laptop as Jetty scrabbled for memory to store a massive upload I was trying. Looking at the commons

[Lift] Blog post about lifts binding system

2009-04-13 Thread Tim Perrett
Hey guys, There has been a bunch of questions lately about bind(..) and how to use it etc, so i thought id just write a blog post about it discussing ways to use it and cover some of the other funky stuff it can do. Check it out here: http://is.gd/sfyT Cheers, Tim

[Lift] Thread safe configuration without abusing the session?

2009-04-06 Thread Tim Perrett
Guys, Im working on a system where by there is a bunch of configuration options that should exist for a given application, and are application wide... Im handling this right now in a similar way to LiftRules. However, I also have some configuration that can be done on a per user / per session

[Lift] Who did the hungarian translation?

2009-04-04 Thread Tim Perrett
Hey guys, Who did the hungarian translations of lift core? I want to make an addition that needs adding to lift core properties files but I don't speak hungarian! Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Proposed URL Shortening widget

2009-04-02 Thread Tim Perrett
Guys, I've been contemplating doing this for a while and am now finding myself with a bunch of free time tomorrow and a need to write some code. So, I want to make a widget that shortens URL's in an extendable way... Im thinking of having something like: trait URLReductionProvider { ... }

[Lift] Need for lightweight JPA archetype

2009-04-01 Thread Tim Perrett
Guys, Do people see room for a blank JPA archetype just like we have blank and basic of normal lift archetypes? IMO, whilst its great having the basic one for learning and examples, having something thats a workable starting point without having to remove code etc would be helpful. I

[Lift] Form action URI's

2009-03-26 Thread Tim Perrett
Guys, I have a catalogue of products that essentially have a bunch of meta- data attached to them and the user can dynamically drill down into to get a relevant list of products. Because of this query type operation, im using the query string like so: /catalogue?filter=marin I know some people

[Lift] Portable components of logic?

2009-03-23 Thread Tim Perrett
Guys, Has anyone got a good strategy for packaging up components of logic within lift? At our company we have a particular application that im writing some really nice logic for inside lift and im wondering how I can package that up and re-use it (short of copy and paste snippet files and the

[Lift] Decoupling Lifts Template System

2009-03-19 Thread Tim Perrett
Guys, What would it take to decouple Lifts template system? Specifically, im interested in reusing a bunch of the localization and view componentry. I know that wa back there was talk of doing this. For instance, lets say that you wanted filesystem view storage, rather than views being held

[Lift] Explicitly shutting down comet actor in a single session

2009-03-18 Thread Tim Perrett
Guys, I have a situation where by im using comet actors to watch something on a 3rd party system. Now, when the monitoring needs to stop, I want to explicitly shutdown that comet actor and redirect some to place else. However, when I pass the comet actor the ShutDown message, the page redirects

[Lift] Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Tim Perrett
Guys, I think i might have just found a bug in the defaultLocaleCalculator... By simply adding S.?(mykey) to a comet actor, it bombs in spectacular style. I worked the bug back as it was originally getting an NPE from my code, so I shoved everything into boxes - that appears to have now moved

[Lift] SQL Server Errors

2009-03-09 Thread Tim Perrett
Guys, Just logged a couple of bugs for SQL Server drivers: http://liftweb.lighthouseapp.com/projects/26102/tickets/18-sql-server-error-with-timestamp-col-type#ticket-18-1 http://liftweb.lighthouseapp.com/projects/26102/tickets/17-mappedtext-sql-server-clob#ticket-17-1 Can someone take a look?

[Lift] Proposed localization change to S

2009-03-06 Thread Tim Perrett
Guys, I have a situation where I want to localize a bunch of dynamic texts, however the current behavior of S.? is to return the input text if its found in a resource bundle. Whilst I see the rational for this, I have another situation where I want to pass a key, and if it doesn't find it,

[Lift] Proposed addition to LRU

2009-03-05 Thread Tim Perrett
Guys, I have a situation where I need to retrive all the keys in my KeyedCache - however, KeyedCache extends LRU, which it turn uses apache commons LRUMap internally. The LRU class has a private val map: LRUMap Is there any objections to me adding a method to LRU to return all the keys from

[Lift] Re: Locale and languages

2009-03-02 Thread Tim Perrett
strictly. Of course, you could use the raw SQL queries on DB to fetch things with one join. Derek On Sun, Mar 1, 2009 at 2:54 PM, Tim Perrett timo...@getintheloop.eu wrote: Guys, Just working something through and would like a bit of input from lifted :-) Im debating how im

[Lift] Configurable JQuery Version?

2009-02-28 Thread Tim Perrett
Guys, I have a lift app that since our 1.3.2 update has broken a bunch of stuff. Id imagine im not the only person in this pickle and wonder if there is a way we could possibly make JQuery a configurable version? Perhaps LiftRules.jqueryVersion ? Thoughts? Cheers, Tim

[Lift] Re: Issue with http://liftweb.net site design (IE7 / Opera 9.63)

2009-02-27 Thread Tim Perrett
Jean-Luc, thanks for pointing these out - the site is brand brand new, so were still working out the bugs. Cheers, Tim On Feb 27, 4:15 pm, Jean-Luc jlcane...@gmail.com wrote: Sorry if I sent the message to the wrong list (in this case would you please reply with the right list or email

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread Tim Perrett
Ok, excellent. I know have a working implementation! Rock. Any objections to submitting this into master? Im guessing the code freeze is now off. Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread Tim Perrett
Marius and I have just chatted this over on IM - I've altered the code to use NamedPF... The code now reads: /** * Get the resource bundle for the current locale */ def resourceBundles: List[ResourceBundle] = { _resBundle.value match { case Nil = {

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread Tim Perrett
Its now committed into 1.1-SNAPSHOT Cheers, Tim On Feb 27, 6:56 pm, marius d. marius.dan...@gmail.com wrote: I am :) ... nice work ! On Feb 27, 8:38 pm, Tim Perrett timo...@getintheloop.eu wrote: Marius and I have just chatted this over on IM - I've altered the code to use NamedPF

[Lift] Re: Sanity Check...

2009-02-25 Thread Tim Perrett
...@gmail.com wrote: On Feb 24, 10:16 pm, Tim Perrett he...@timperrett.com wrote: Guys, Just looking for a sanity check. Im planning out some database localization stuff that I need to implement to localize a system... Im not concerned with currency or other such fun localization problems, simply

[Lift] Sanity Check...

2009-02-24 Thread Tim Perrett
Guys, Just looking for a sanity check. Im planning out some database localization stuff that I need to implement to localize a system... Im not concerned with currency or other such fun localization problems, simply localizing text in my database. Right now, im thinking of just creating a

[Lift] Re: Windows installer

2009-02-19 Thread Tim Perrett
WOW no link, I must have left my brain someplace else http://scala-tools.org/liftweb_windows_0_11.exe On Feb 19, 5:34 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Where is it? On Fri, Feb 13, 2009 at 11:38 AM, Tim Perrett he...@timperrett.com wrote: Guys, Just uploaded

[Lift] Re: Build problems...

2009-02-18 Thread Tim Perrett
Hey Marc, This is very curious, as I too have the exact same OSX install with the same versions of maven and java. I just ran: mvn clean package install scala:doc and it processed the build no problem at all. I also tried: mvn -U clean install and that too worked. Have you got your maven

[Lift] Re: Getting the file out of a Put Request..

2009-02-18 Thread Tim Perrett
Out of interest, can you elaborate on the bug? 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: uh, oh... can't find classes

2009-02-18 Thread Tim Perrett
? On Wed, Feb 18, 2009 at 1:13 PM, Tim Perrett he...@timperrett.com wrote: This appears to be a trade off between marginal code verbosity and compile time checking... Viktor's solution could be the way to go however - this would be a massive breaking change though, as this would screw every lift

[Lift] Re: Getting the file out of a Put Request..

2009-02-18 Thread Tim Perrett
Thanks for the explanation David. On Feb 18, 3:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Feb 18, 2009 at 1:44 AM, Tim Perrett he...@timperrett.com wrote: Out of interest, can you elaborate on the bug? Req lazily builds a bunch of stuff the lazy parameter building

[Lift] Truncate?

2009-02-18 Thread Tim Perrett
Guys, Just a quick one... looking for a similar method to: http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001711 I know i could knock one up, but just wanted to check nothing like this exists already as it seems like a fairly util type task. I had a look but couldn't see

[Lift] Re: repo for mysql jars for jpa?

2009-02-18 Thread Tim Perrett
Errmm, the drivers for mysql are the same if your using JPA or mapper. Can you elaborate on what your after? Do you need to know what goes in persistance.xml or such? Cheers Tim On Feb 19, 12:34 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Lifted, Does anyone know the mvn mojo for

[Lift] Re: Build problems...

2009-02-17 Thread Tim Perrett
I'm not at my mac right now, but as of last night it was compilling fine on mac with the very latest master. What version of maven are you using? Might be a stupid question, but you have done a git pull to check your fully up to date? Cheers, Tim On Feb 17, 8:34 am, David Bernard

[Lift] Re: JSON stack overflow issue

2009-02-16 Thread Tim Perrett
In wireshark you'll be looking to use a normal HTTP rule as the JSON will just be passed as entity body in the request. Doing a filter for HTTP port 80 should be sufficient. Cheers Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: Fwd: [jquery-dev] Re: Namespace failure

2009-02-16 Thread Tim Perrett
What's the impact overall? Is this a result of upgrade to JQuery 1.3.1? Thanks, Tim On Feb 16, 4:51 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, It turns out that there are issues with jQuery's methods that insert/replace HTML and using XHTML on Firefox.  Sigh. We should be

[Lift] Re: Getting the file out of a Put Request..

2009-02-16 Thread Tim Perrett
Would it not be because of: ServletFileUpload.isMultipartContent(request) // Req.scala line 79 If you then reference the commons lib, the source of that method looks like: public static final boolean isMultipartContent( HttpServletRequest request) { if

[Lift] Re: lift for cloud computing

2009-02-16 Thread Tim Perrett
What kind of deployment scripts did you have in mind? Also, I run lift in EC2 with no problems and its actually really really great :-) Cheers, Tim * Deployment: perhaps lift should release deployment scripts, or even EC2 VM instances? Food for thought.

[Lift] Re: Getting the file out of a Put Request..

2009-02-16 Thread Tim Perrett
the Lift code to do this?  Is there an extension point to make that happen?  (like set request builder here or something and a class I can extend) Alan On Feb 16, 2:25 pm, Tim Perrett he...@timperrett.com wrote: Would it not be because of: ServletFileUpload.isMultipartContent(request

[Lift] Re: Getting the file out of a Put Request..

2009-02-16 Thread Tim Perrett
that happen?  (like set request builder here or something and a class I can extend) Alan On Feb 16, 2:25 pm, Tim Perrett he...@timperrett.com wrote: Would it not be because of: ServletFileUpload.isMultipartContent(request) // Req.scala line 79 If you then reference the commons lib

[Lift] Re: Getting the file out of a Put Request..

2009-02-16 Thread Tim Perrett
It appears that DPP is solving your issue now :-) However, for the record, I do exactly what you describe in terms of PUT / POST - this is a fairly normal ROA (but with objective-c clients, not javascript). FYI... if you have xml messages, you can access the xml automagically in your

[Lift] Re: use of deprecated functions

2009-02-15 Thread Tim Perrett
Good point - were also using xbind(...) quite a bit too which is deprecated. Cheers, Tim On Feb 15, 12:34 pm, Marius marius.dan...@gmail.com wrote: Hi, Building latest code I'm getting [WARNING] /media/WORK/marius/repository/github/liftweb/lift/src/main/

[Lift] Re: Lift SalesForce?

2009-02-15 Thread Tim Perrett
Hey Pete, I did not realise that the enterprise WSDL is org specific - can you elaborate in which ways it is specific? Ideally, the enterprise one is most useful for me (and I would imagine other users). Can you explain how plugins such as http://activesfdc.rubyforge.org/ achieve organization

[Lift] Re: [ANN] some jar on maven central repository

2009-02-13 Thread Tim Perrett
David this is simply brilliant - kudos. On Feb 13, 9:04 am, Josh Suereth joshua.suer...@gmail.com wrote: Great News! and Great work getting this all set up! On Fri, Feb 13, 2009 at 3:30 AM, David Bernard david.bernard...@gmail.comwrote: Hi, just to inform you that the following groupId

[Lift] Lift SalesForce?

2009-02-13 Thread Tim Perrett
Guys, Just thinking about making a lift-salesforce module... this would be pretty useful for me and im sure others, however im not sure where we would stand from a licensing point of view? It appears the force.com WSDL is out on a CDDL ( http://www.sun.com/cddl/ ) license - is that compatible

[Lift] Complex Localization (6 months later)

2009-02-13 Thread Tim Perrett
Hey all, Some of you may remember than 6 months ago or so, we had the longest thread in lift list history: http://groups.google.com/group/liftweb/browse_thread/thread/77d5a7dcb96ad2ab The community has nearly doubled in size since that conversation and I wonder if there is now any more appetite

[Lift] Windows installer

2009-02-13 Thread Tim Perrett
Guys, Just uploaded a new windows installer - Id appreciate some feedback - as Im a mac head I have little access to test this stuff on the dows' If their are problems with it - please let me know as im keen to fix any issues before 1.0 release Cheers Tim

[Lift] Re: new JDBC support in lift-mapper

2009-02-12 Thread Tim Perrett
Just found a bug with the MSSQL drivers... Looks like its all working fine, but on boot I see this with the schemifier: Like I say, it works (the app that is) but having this stack trace on boot is not nice. Any ideas? INFO - CREATE TABLE modifiers (name VARCHAR(100) , id BIGINT IDENTITY NOT

[Lift] Re: confusion about lift-archetype-version versus lift version

2009-02-12 Thread Tim Perrett
Sorry my bad - I should have pointed that out. On Feb 12, 12:31 pm, David Bernard david.bernard...@gmail.com wrote: 0.11 isn't released the correct version number is 0.11-SNAPSHOT --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: lift jetty configuration question

2009-02-12 Thread Tim Perrett
:8080to start up a new session. This should force login each time. Best wishes, --greg On Thu, Feb 12, 2009 at 3:30 AM, Tim Perrett he...@timperrett.comwrote: Can you clarify what you mean by instance? You mean run jetty on another TCP port other than 8080? And by other browser do

[Lift] Re: IMPORTANT: Library Upgrades

2009-02-12 Thread Tim Perrett
Jesus! You have been busy Jorge! Kudos my good man :-) --~--~-~--~~~---~--~~ 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 group, send

[Lift] Re: IMPORTANT: Library Upgrades

2009-02-12 Thread Tim Perrett
Oh by the way, the Jquery update bring speed improvements im guessing - has anyone tested / tried the comet stuff with 1.31? Just wondering if we'll see any noticeable speed improvement? Cheers Tim --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: IMPORTANT: Library Upgrades

2009-02-12 Thread Tim Perrett
I thought their had been a cull of all IE5 users? ;-) On Feb 12, 7:58 pm, Jorge Ortiz jorge.or...@gmail.com wrote: Although it seems like the latest version of Blueprint still has issues with Opera, IE 6, and IE 5.5 (!!!).

[Lift] Re: new JDBC support in lift-mapper

2009-02-11 Thread Tim Perrett
Al, It would be usefull if you could just post an example of the needed connection object that people will need to put in boot.scala Cheers Tim On Feb 11, 8:59 pm, alm4x1...@gmail.com alm4x1...@gmail.com wrote: Hi All: I've added support for Microsoft SQL Server and Oracle 10g JDBC driver

[Lift] Re: lift with MS Sequel

2009-02-10 Thread Tim Perrett
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 Tim Perrett print application architect t: +44 (0) 78144 34 791 e: he...@timperrett.com w: timperrett.com

[Lift] Re: lift with MS Sequel

2009-02-09 Thread Tim Perrett
There are mixed reports about that driver - personally I didn't get on very well with and would go for JTDS :-) On 09/02/2009 16:52, Derek Chen-Becker dchenbec...@gmail.com wrote: The MS provided JDBC driver is actually pretty high quality in my experience. In particular, make sure you get

[Lift] Re: Serving text/html to IE

2009-02-07 Thread Tim Perrett
Agreed - there is no issue using XHTML strict with lift and IE (outside of IE's usual crapness!) Cheers, Tim On 07/02/2009 08:53, Marius marius.dan...@gmail.com wrote: You can change the docType by calling S.setDocType... but I wouldn't trade XHTML for HTML. So far I did not have any

[Lift] Re: Changing scope of RulesSeq[T] toList

2009-02-04 Thread Tim Perrett
Yes... this mutates the state of the underlying object, thus needs to be done privately and correctly. private[http] def toList = rules How does this mutate state? Its just returning the list isn't it (as its def not val/var)? It appears to me that the prepend and append methods mutate the

[Lift] Re: submit and redirect

2009-02-02 Thread Tim Perrett
Lift will still indeed notify you of an error invoking a snippet. On 02/02/2009 15:01, Derek Chen-Becker dchenbec...@gmail.com wrote: Also, if the class for the snippet couldn't be found, Lift should have output a message to that effect on the console. If it didn't, then that's a bug.

[Lift] Re: migration tools?

2009-02-02 Thread Tim Perrett
Hey Greg, I have taken great pleasure in porting several leaking like a rusty bucket rails applications... Whilst there is no direct migration, once you understand exactly how lift works, it becomes simple. When you say db stuff squirted out from ActiveRecord? - what exactly do you mean?

[Lift] Re: Suggested breaking changes for XMLApiHelper

2009-02-01 Thread Tim Perrett
to nested lists. It's more verbose (though some duplication could be eliminated), but it provides me with the information I need to do the conversion and format the results. Just a thought... Chas. Tim Perrett wrote: Guys, Just doing some work with the XMLApiHelper and im finding some

[Lift] Re: Suggested breaking changes for XMLApiHelper

2009-02-01 Thread Tim Perrett
Hmmm. Looks like I'll have to learn more about this WADL. Both WADL and WSDL2 can describe REST services. The latter is some time away, and WADL, whilst young, is here right now: https://wadl.dev.java.net/ I was approaching it from the XSLT side. Should've thought about the web service

[Lift] Re: [SOLVED] Req lazy val xml not working

2009-01-31 Thread Tim Perrett
:-) Best wishes, --greg On Fri, Jan 30, 2009 at 3:14 PM, Tim Perrett he...@timperrett.com wrote: Ok, found the problem. Req.scala needed a patch, which I have applied and committed into master. XML request processing should not work perfectly Cheers, Tim On Jan 30, 10:48 pm, Tim Perrett

[Lift] Re: Suggested breaking changes for XMLApiHelper

2009-01-31 Thread Tim Perrett
with lots of alternatives will be important. I'm planning another alternative that will returns failures as different HTTP codes to make things more RESTful. Thanks, David On Sat, Jan 31, 2009 at 3:07 AM, Tim Perrett he...@timperrett.com wrote: Guys, Just doing some work

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Tim Perrett
Happy birthday Jorge!! On Jan 30, 8:34 am, Viktor Klang viktor.kl...@gmail.com wrote: Grattis på födelsedagen! On Fri, Jan 30, 2009 at 9:30 AM, David Bernard david.bernard...@gmail.comwrote: Bon Anniversaire On Fri, Jan 30, 2009 at 08:48, Marius marius.dan...@gmail.com wrote: If

[Lift] Added HTTP Auth example to sites directory

2009-01-30 Thread Tim Perrett
Guys, Its been ages, and im sorry its taken so long, but please now find an example of how to use the HTTP Auth stuff in the sites directory. Respect to Marius who's been chipping away on this keeping it up-to- date with the RulesSeq stuff etc as the lift API has moved forward. For an example

[Lift] Re: Jorge's birthday ...

2009-01-30 Thread Tim Perrett
lol! This is like the most global happy birthday greeting ever! ;-) On Jan 30, 4:04 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: ¡Feliz cumpleaños, señor! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Req lazy val xml not working

2009-01-30 Thread Tim Perrett
Guys, Just writing a little rest service, and I want to process the incoming XML... The Req class has the following methods: xml_? : Boolean xml: Box[Elem] Now then, xml_? is returning true, and the content-length header is the correct length, but req.xml always, always returns Empty. FYI,

[Lift] Re: Req lazy val xml not working

2009-01-30 Thread Tim Perrett
Try: user emailsdfsdfsdf/email /user I'd already tried before, that and still no luck. I've also tried just getting it to print something out that was passed. Even param1=badger type post requests, but no luck. Thoughts? Cheers, Tim

[Lift] Re: Pulling in http data from a web service

2009-01-29 Thread Tim Perrett
Hey Chas, You might also be interested to see how the pay-pal stuff handles it's remote HTTP calls for transaction verification and validation: http://github.com/dpp/liftweb/blob/01473f94b1cb7beafb7ed41a860c2144e153b7d7/lift-paypal/src/main/scala/net/liftweb/paypal/Paypal.scala#L446 Cheers

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-28 Thread Tim Perrett
it :). Cheers, Alfred On Jan 27, 11:48 pm, Tim Perrett he...@timperrett.com wrote: Change the req to this: Req(picture :: fileName :: Nil, jpg, GetRequest) That should then work for you Cheers, Tim On Jan 27, 11:39 pm, Alli

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Tim Perrett
Change the req to this: Req(picture :: fileName :: Nil, jpg, GetRequest) That should then work for you Cheers, Tim On Jan 27, 11:39 pm, Alli allilis...@gmail.com wrote: LiftRules.dispatch.append {   case r @ Req(picture :: fileName :: Nil, , GetRequest) = () =      ... }

[Lift] Passing list URL parameters to snippets

2009-01-25 Thread Tim Perrett
Hey guys, I have a situation where I want to do something like: LiftRules.rewrite.prepend(NamedPF(catalougeBind) { case RewriteRequest(path @ ParsePath(catalouge :: groups, _, _,_), _, _) = RewriteResponse(catalouge :: Nil, Map(groups - groups)) } However, this is

[Lift] Re: Still confused about redirects

2009-01-24 Thread Tim Perrett
Chas, As it happens, I need to do this also. For me, im porting a rails app, so dont have the .html issues and im doing case by case redirects. So, I have something like: LiftRules.dispatch.prepend { case r @ Req(about :: Nil, , _) = () = Full (PermRedirectResponse(/about-us,r)) } However,

[Lift] Re: Still confused about redirects

2009-01-24 Thread Tim Perrett
When you say all your pages are index.html, how do you mean? if your file is index.html, in lift the URI would be /index right? Anyway, this helps a lot. So if I want to redirect thebook.html to /the_book/ I would do this: LiftRules.dispatch.prepend {    case r @ Req(thebook :: Nil, html,

[Lift] Re: Reading BLOB (images) from database with Mapper

2009-01-22 Thread Tim Perrett
. Thanks, David On Thu, Jan 22, 2009 at 11:08 AM, Tim Perrett he...@timperrett.com wrote: Hey guys, I usually use JPA for my persistence, but have a small project that I just need to bang out, so I thought id give Mapper a go. Before I get started, does anyone know how one would go about

[Lift] Bug in with-param ?

2009-01-22 Thread Tim Perrett
Guys, I think I might have just found a bug in the with-param use in layouts... If I do: lift:with-param name=topimage img src=/images/generic_top.jpg alt=Some image / /lift:with-param The bind doesn't actually work, and the img tag gets inserted just above the main content bind

[Lift] Re: Bug in with-param ?

2009-01-22 Thread Tim Perrett
The lift:with-param/ tag has to be a child of the lift:surround/ tag. I'm in the process of checking in a change to relax this constraint, but it will have a negative impact on the ability to do nested lift:surround/ tags. It being a child of lift:surround is not directly the problem.

[Lift] Re: jQuery 1.3

2009-01-19 Thread Tim Perrett
Awesome Viktor, What is the impact on the lift API if we upgraded? Cheers, Tim Sent from my iPhone On 19 Jan 2009, at 10:19, Viktor Klang viktor.kl...@gmail.com wrote: Hey guys! After upgrading from 1.2.3 to jQuery 1.3 on the company system, I can really recommend lift to upgrade.

[Lift] Re: Lift Installers

2009-01-18 Thread Tim Perrett
://scala-tools.org/; gets you 0.9. Matt On Sun, Jan 18, 2009 at 9:50 AM, Matt Harrington mbh.li...@gmail.com wrote: An updated catalog would certainly be helpful.  I believe it still has Lift 0.8, and it's broken. Matt On Fri, Jan 16, 2009 at 3:37 PM, Tim Perrett he...@timperrett.com

[Lift] Re: Workflow web-app on Lift

2009-01-16 Thread Tim Perrett
Right now, Machine is tied to Mapper.  Perhaps I'll relax things when we migrate Mapper - Record/Field code. If Machine is a priority for a publicly deployable project, let's talk about making things a little higher priority. Thought as much :-) Its less a priority, and more of general

[Lift] Lift Installers

2009-01-16 Thread Tim Perrett
People, I'm going to finish the lift installers this weekend and I just got to thinking about writing some shell scripts to include as well. However, I then got to think about previous conversations had on this list and im wondering if we even need shell scripts to wrap the maven commands? I

[Lift] Re: Workflow web-app on Lift

2009-01-16 Thread Tim Perrett
Mapper is going to be deprecated as of Lift 1.1 (but fully supported for a very long time). Of course - that makes perfect sense. We're in a crunch to get 1.0 out the door.  Once 1.0 is out, we'll turn our efforts to 1.1 and Record/Field stuff. Sure, everyone is working like mad :-) I

[Lift] Re: Lift Installers

2009-01-16 Thread Tim Perrett
, 2009 at 10:54 AM, Tim Perrett he...@timperrett.com wrote: People, I'm going to finish the lift installers this weekend and I just got to thinking about writing some shell scripts to include as well. However, I then got to think about previous conversations had on this list and im

[Lift] Re: was there a breaking change to lift?

2009-01-14 Thread Tim Perrett
To be fair there was a much larger gap than usual between master and release... We missed a couple of release cycles for 0.10. So in theory, 0.9 was the latest bonified release - it that sense, it wasn't wrong, just miles out of date ;-) Sent from my iPhone On 14 Jan 2009, at 23:51,

[Lift] Re: 2.7.3-RC2 looks good to me

2009-01-13 Thread Tim Perrett
I belive the IDE plugins to be 3rd party... they are not maintained by scala-core, nore should they be. IDE's dont make the language, the features do. Docs... hmm, thats a tricky one - what docs are you referring to? I think you probably mean how-to type documentation right (as opposed to this

[Lift] Re: Writing data to the HttpServletResponse

2009-01-11 Thread Tim Perrett
Alli, Mark is correct - I'd create a LiftResponse sublass and handle that request with a DispatchPF. If your not familiar, check out prependDispatch in Boot.scala of the demo site. If you can supply a bit more information about what exacty you want to do (I'm guessing you want to force downlod

[Lift] Re: Redirects/new site

2009-01-11 Thread Tim Perrett
You do gain portability I agree - it just depends on your setup as to whats best for you, if that means doing the rewrites in lift, then go for it :-) FYI, rewrites with jetty are done like so: http://docs.codehaus.org/display/JETTY/RewriteHandler Cheers, Tim On Jan 11, 7:00 pm, Charles F.

[Lift] Missing from Lift textile parser

2009-01-01 Thread Tim Perrett
Hey guys, From a few small trials i've ran, lifts textile parser does not honour notextile tags within the markup? It also doesnt appear to let you intermingle HTML and Textile? Can / should these be changed? Or am i better off just using a java textile parsing lib? Cheers Tim

[Lift] Re: *** Minor breaking change *** - Lift HTTP authentication

2008-12-29 Thread Tim Perrett
Excellent stuff Marius - I hope to add an example from the http-auth branch to master this week so will certainly include this Cheers, Tim On Dec 29, 1:33 pm, Marius marius.dan...@gmail.com wrote: Hi, If you use so far the HTTP authentication support in Lift, you code would likely break. So

[Lift] unsecured form post from flash

2008-12-28 Thread Tim Perrett
Guys, seeing as lift binds the html form elements to server side functions, how can one post a flash based form (or any other non-lift powered form) to a lift back-end and, process the response in the normal manner? Would it be some hacky S.param stuff? Thoughts / ideas on how to handle this

[Lift] Re: Can or Box or something else

2008-12-28 Thread Tim Perrett
I think this debate could go on for some time ;-) Being pragmatic, we have to look at the impact on the lift code base and its users. Would a change to Box[MyClass] really improve user understanding and lower the learning curve to a point where making such a fundamental change in the lift API

[Lift] Re: unsecured form post from flash

2008-12-28 Thread Tim Perrett
Thanks Marius + David, I hadn't thought of using a for comprehension - thats nice Dave, I think id rather go with a solution such as that :-) Using JSON / Javascript flash bridge with lift seems like overkill for such a simple operation - If i had a client side / 3rd party application that was

[Lift] Re: Can or Box or something else

2008-12-28 Thread Tim Perrett
lol - am I missing something josh? How does the Box has x semantic differ? (if its a joke, my apologies! Its been a long day!!) On 28/12/2008 15:46, Josh Suereth joshua.suer...@gmail.com wrote: And all my hopes for Can has x are gone... Perhaps I'll make my own change in my lift app. :

[Lift] Re: versions out of whack?

2008-12-26 Thread Tim Perrett
Chas, Do you have the scala-tools.org snapshot repo defined in your pom.xml? If not, you'll need to add it. then maven will grab it automatically for you. The other alternative is to build locally from src. If your not working on the lift codebase, IMO, use the maven snapshots as it's the

[Lift] Re: error message tag

2008-12-23 Thread Tim Perrett
Wow, thats pretty impressive! To not even work in the worst-bit-of- software-enginering-know-to-man (aka IE 6) is a serious feat in itself! Kudos! lol On 23 Dec 2008, at 15:39, Derek Chen-Becker wrote: There's nothing else out there like IE for job security. We still have an app in-house

[Lift] Re: error message tag

2008-12-23 Thread Tim Perrett
Ha! Well I remember IE on mac, that truly was awful... I also remember dialing up to the internet from a 14.4k modem with windows 3.1, and browsing on some ancient version of netscape! As for my age, I was born in 86' :-D Cheers, Tim On 23 Dec 2008, at 20:41, Charles F. Munat wrote:

[Lift] Re: url handling

2008-12-20 Thread Tim Perrett
Oliver, Lift will only create these types of URL when you pass params when creating a link. There is a very sophisticated rewriting engine in lift, so a better question would be what do you want your URL to look like? Thanks, Tim Sent from my iPhone On 20 Dec 2008, at 03:26, Oliver

[Lift] Re: Can or Box or something else

2008-12-20 Thread Tim Perrett
Speaking from personal experience, what I didn't realize to begin with was that the can was what we in England call a tin, and the connotation of you can do something is conceptually very different to a can (tin) contains x if you follow my meaning... I think the problem can be solved by

[Lift] Re: Fwd: [scala-user] Is there a memory leak in 2.7.2 Actors?

2008-12-12 Thread Tim Perrett
Do you know why they decided to go for another 2.7.xx release - I thought they were going to 2.8 next...? Cheers, Tim On Dec 12, 6:26 pm, jorge.or...@gmail.com wrote: Can do On 12/12/08, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Who has time to do testing, etc. with

[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.

2008-12-11 Thread Tim Perrett
I think Josh meant to say defined in your pom.xml On Dec 11, 12:14 pm, Josh Suereth [EMAIL PROTECTED] wrote: Make sure the scala-tools snapshot repository is defined in your ppm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Expiring pages via HTTP headers

2008-12-10 Thread Tim Perrett
Chas, Look in HttpResppnse.scala - you'll see the LiftResponse subclasses that are setting custom headers and things. Also see TextResponse etc for more examples ( all in net.liftweb.http ) I'm guessing you need this for some API or such? Cheers Tim Sent from my iPhone On 10 Dec 2008,

  1   2   3   >