[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread bradford
Yeah, I would think so too. I made one request and received 21 test messages. In my template I only have two lift:loc / tags. In my properties file, I have 5 keys added. Still not sure what's going on here. On May 1, 5:46 am, Viktor Klang viktor.kl...@gmail.com wrote: On Fri, May 1, 2009 at

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

2009-05-01 Thread Andrew Scherpbier
The Getting Started document got me hooked on Lift. :-) I guess I'll report my struggles from there. I don't know if what I did is typical. After actually running the two examples from the Getting Started docs, I looked and found some other examples, did some looking around in the mailing

Static imports considered evil? (was: Re: [Lift] Re: how to add object into session scope in lift)

2009-05-01 Thread Andrew Scherpbier
I just realized another issue I keep running into... Since I don't have the full liftweb API in my head, yet, I am having trouble with some of the examples because of the use of ._ for imports (and this is why I never let my developers use static or wildcard imports in our own java code) For

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread David Pollak
I've never seen a case where locale calculation is much more than dereferencing an object and never thought to cache it. Typically, it's something like: User.currentUser.map(_.locale) openOr browserSuppliedLocale If it's important to have it cached on a request-by-request basis, please let me

Re: Static imports considered evil? (was: Re: [Lift] Re: how to add object into session scope in lift)

2009-05-01 Thread Derek Chen-Becker
I've been trying to at least provide an object name for any methods like this in the example code as I work on feedback, but if you find any in the book that aren't clear please give me a listing # and I'll work on them. Thanks! Derek On Fri, May 1, 2009 at 7:27 AM, Andrew Scherpbier

Re: Static imports considered evil? (was: Re: [Lift] Re: how to add object into session scope in lift)

2009-05-01 Thread Derek Chen-Becker
And yes, I consider wildcards to be not great style. They were done here for expediency, but I'll see about going back and reworking the code at some point. Derek On Fri, May 1, 2009 at 8:57 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: I've been trying to at least provide an object name

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread bradford
Hi David, That's not necessary for my particular use case. I just wanted to make sure there wasn't some underlying bug. On May 1, 10:45 am, David Pollak feeder.of.the.be...@gmail.com wrote: I've never seen a case where locale calculation is much more than dereferencing an object and never

[Lift] Localize an image

2009-05-01 Thread bradford
lift localization is going very smoothly -- thank you all for your efforts put into this. Does anyone know if it is possible to localize an image, for example have search.gif and search_fr_FR.gif? My template should be the same for all languages except for this one button image: f:submit

[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] Debugging with Firebug

2009-05-01 Thread glenn
I often find it convenient to trace what's happening with snippets by inspecting the html produced in Firebug. Currently, I'm using a short snippet that logs event output to the Firebug console. It doesn't cover all the bases but it's quick and dirty. Anyone doing something similar??? class