[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 Trac

[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" wrote: > > lift localization is going very smoothly -- thank you all for your > efforts put into this. Does anyone know if it is possible to localize > a

[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: . --~--~-

[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 wrote: > I've never seen a case where locale calculation is much more than > dereferencing an object and never thought to cache it.  Typicall

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 wrote: > I've been trying to at least provide an object name for any methods like >

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 wrote: > >

[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 kn

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

2009-05-01 Thread Miles Sabin
On Fri, May 1, 2009 at 2:27 PM, Andrew Scherpbier wrote: > In eclipse, I'm used to having imports resolved and organized > automatically when I save a file.  Unfortunately, this same > functionality doesn't appear to work in the eclipse scala plugin. Not yet ... maybe for 2.8.0 ... Cheers, Mi

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: 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 mailin

[Lift] Re: Building lift on Windows

2009-05-01 Thread sailormoo...@gmail.com
I have no problem building in on XP --~--~-~--~~~---~--~~ 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 email to liftweb+u

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread Timothy Perrett
Admittedly I've seen this before and also wondered - presumably its something to do with the way its resolving the strings internally. On 01/05/2009 13:55, "bradford" wrote: > > Yeah, I would think so too. I made one request and received 21 "test" > messages. In my template I only have two

[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 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 wrote: > On Fri, May 1, 2009 at 9:26 AM, marius d. wrote: >

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread Viktor Klang
On Fri, May 1, 2009 at 9:26 AM, marius d. wrote: > > Well it is called every time a call to S.locale is made, inherently > each time an internationalized string is needed. Shouldn't that be once per request? > > > Br's, > Marius > > On May 1, 5:05 am, bradford wrote: > > I added Log.info("te

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread marius d.
Well it is called every time a call to S.locale is made, inherently each time an internationalized string is needed. Br's, Marius On May 1, 5:05 am, bradford wrote: > I added Log.info("test") to my LiftRules.localeCalculator and saw test > being printed 21 times.  Is this expected? > >   LiftRu