[Lift] Re: Potential LiftRules dispatch issue.

2009-01-28 Thread Joachim A.
Hi, I'd be interested to have a look at the code :) I was about to do the same. I'd planned to use a simple cache (by uuid) in a concurrent, weak map but EHCache might be the better solution, I guess. Thanks a lot, Joachim On this note, I wrote an image cache for use in conjunction with

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-28 Thread David Pollak
IMHO, a third party cache is a huge waste. Lift has net.liftweb.util.LRU for this purpose. On Wed, Jan 28, 2009 at 11:33 AM, Joachim A. wallaby.po...@googlemail.comwrote: Hi, I'd be interested to have a look at the code :) I was about to do the same. I'd planned to use a simple cache (by

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-28 Thread Tim Perrett
Oh I really wasn't aware of that... I'll take a look at it - I use ehcache for a lot in general, so in that sense it's less if a waste for me :-) Sent from my iPhone On 28 Jan 2009, at 19:35, David Pollak feeder.of.the.be...@gmail.com wrote: IMHO, a third party cache is a huge waste.

[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] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Thanks chaps, can't believe i didn't spot 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 allilis...@gmail.com

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Is it possible to make the extension a wild card somehow, e.g. if i want jpg,png,gif,bmp ? On Jan 27, 11:50 pm, Alli allilis...@gmail.com wrote: Thanks chaps, can't believe i didn't spot it :). Cheers, Alfred On Jan 27, 11:48 pm, Tim Perrett he...@timperrett.com wrote: Change the req to

[Lift] Re: Potential LiftRules dispatch issue.

2009-01-27 Thread Alli
Thanks, will definitely order a PDF or your book when it's out. Cheers, Alli On Jan 27, 11:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jan 27, 2009 at 3:53 PM, Alli allilis...@gmail.com wrote: Is it possible to make the extension a wild card somehow, e.g. if i want