[Lift] Write javascript code in the Snippet ?

2009-11-07 Thread Neil.Lv
Hi all, Is there a easy way to write javascript code (dynamic for caculating flashvars )in the Snippet ? To write javascript code directly just like the raw js code and merge it into the head tag . Cheers, Neil --~--~-~--~~~---~--~~ You received this messag

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Neil.Lv
It works well in the firefox, but not in IE. Result: swfobject.embedSWF("/flash/test.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf"); ### "flash" -> Text("""swfobject.embedSWF("/flash/test.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf");"""), ### It works well

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Neil.Lv
I use this code to achieve the purpose. Maybe there is some another better way to do it. ### ### class HelloWorld { lazy val date:

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Neil.Lv
Tim, How can i use the lift to generate the dynamic flashvars ? In the snippet ? In the rails we can use the <%= %> to get the value that from the server. Cheers, Neil On Nov 8, 12:48 pm, "Neil.Lv" wrote: >   Thank you very much! > >   This is very cool!  :) > > Cheers, >   Neil > > On

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Neil.Lv
Thank you very much! This is very cool! :) Cheers, Neil On Nov 8, 2:52 am, Timothy Perrett wrote: > Looks to me like a javascript issue - if your rendering flash, use   > swfobject: > > http://code.google.com/p/swfobject/ > > Cheers, Tim > > On 7 Nov 2009, at 18:49, Neil.Lv wrote: > > >

[Lift] Select multiple values

2009-11-07 Thread suls
Hi, How can I access all the selected values from a select box? I am using the following code to generate the select box itself: "availableManagers"-> SHtml.selectObj[User]( User.findAvailableManagers.map(v => (v, v.email)), Empty,

[Lift] Re: A little emacs help please

2009-11-07 Thread Derek Williams
On Sat, Nov 7, 2009 at 3:29 PM, Marius wrote: > > (add-hook 'scala-mode-hook > > '(lambda () > > (yas/minor-mode-on) > Not sure if this is just an incomplete copy/paste, but looks like you are missing some closing parenthesis there -- Derek Williams --~--~-~--~-

[Lift] Re: A little emacs help please

2009-11-07 Thread Ross Mellgren
Looks like you're missing two close parens at the end of file (matching add-hook and lambda) -Ross On Nov 7, 2009, at 5:29 PM, Marius wrote: > > Ok I got the answer for #2 and #3. > > For #1 I'm still not sure what it complains about but it seems to work > though. ALso sometime the Yasnippet

[Lift] Re: A little emacs help please

2009-11-07 Thread Marius
Ok I got the answer for #2 and #3. For #1 I'm still not sure what it complains about but it seems to work though. ALso sometime the Yasnippet menu is disappearing or when clicking it, it has no sub-menus ... weird. Br's Marius On Nov 7, 11:20 pm, Marius wrote: > Hi, > > Today I got real frustr

[Lift] A little emacs help please

2009-11-07 Thread Marius
Hi, Today I got real frustrated with Eclipse scala plugin (2.7.7) on Ubuntu 9.10. Out of the sudden it interprets reads Scala files as Java source ... I tried disabling the JDT weaver, I disabled it, but nothing the same thing. Ok ... time to try emacs .. which I'm starting to like more and more

[Lift] Re: Flash can't displayed in Firefox ?

2009-11-07 Thread Timothy Perrett
Looks to me like a javascript issue - if your rendering flash, use swfobject: http://code.google.com/p/swfobject/ Cheers, Tim On 7 Nov 2009, at 18:49, Neil.Lv wrote: > > Hi all, > > I have a silly question about the embeded flash in the Firefox . > > The code like this (in the main/webapp

[Lift] Re: lift-wizard progress?

2009-11-07 Thread Timothy Perrett
Actually, just one other thing about this - sounds a bit like a workflow engine (to a degree its a specialised one) but JBoss Drools Flow has some interesting ideas in this area if your looking for some inspiration :-) Cheers, Tim On 7 Nov 2009, at 15:02, David Pollak wrote: > Basically,

[Lift] Flash can't displayed in Firefox ?

2009-11-07 Thread Neil.Lv
Hi all, I have a silly question about the embeded flash in the Firefox . The code like this (in the main/webapp/index.html page), and i added the /* */ ### Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message bec

[Lift] Re: Build Broken?

2009-11-07 Thread Joni Freeman
Thanks for the test results. It looked like a charset problem in unit test. I changed the assertion in test to use more robust case class comparison instead of String comparison. Please let us know if this fixes the build on your machine. Committers, I pushed this small fix directly into master,

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-07 Thread oshyshko
Removing BlazeDS servlet from LiftFilter coverage is a bad idea: If it is done so, lift-mapper creates separate transactions for all operations. http://groups.google.com/group/liftweb/browse_thread/thread/e2c0dd2c5dcc458b This means LiftFilter and BlazeDS servlet should become friends. "LiftRul

[Lift] Re: Database transactions with Mapper

2009-11-07 Thread oshyshko
I have found the problem. This is what I have in web.xml: LiftFilter *.html By default it should be like this: LiftFilter /* "S.addAround(DB.buildLoanWrapper)" does work, if the request path is covered by LiftFilter. And it does not work, if

[Lift] Re: Removing entities from DB after X mins...

2009-11-07 Thread Emil
Thanks! this pointed me in the right direction, I think. Adding a LiftActor that removes my Peer entity to sessionWatchers would solve part of the problem I suppose. However, a corner case is when a single peer changes it's ip for some reason and connects from the new IP address. This would creat

[Lift] Re: lift-wizard progress?

2009-11-07 Thread Timothy Perrett
On Nov 7, 3:02 pm, David Pollak wrote: > Basically, I'm separating the field logic/flow logic from any UI.  This will > allow for automated testing of the wizards without a front end (and if you > trust the wizard state <-> UI translation, then there's no need to test the > stuff in a browser).

[Lift] Re: Database transactions with Mapper

2009-11-07 Thread David Pollak
On Fri, Nov 6, 2009 at 10:14 PM, oshyshko wrote: > > Looks like "S.addAround(DB.buildLoanWrapper)" has no effect. > What code are you using to make the query? Please create a fully running example (making a GitHub project is the best way to do this) so that I can see exactly what is happening.

[Lift] Re: Pretty Printed Output?

2009-11-07 Thread David Pollak
On Sat, Nov 7, 2009 at 1:01 AM, aw wrote: > > Is there a mode whereby I can turn on pretty printed output for my > xhtml? (I'm thinking of a LiftRule, I think?). Preferably, I'd also > like to control some details like indentation size. > No mode for that... sorry. > > > -- Lift, the simp

[Lift] Re: lift-wizard progress?

2009-11-07 Thread David Pollak
On Fri, Nov 6, 2009 at 3:55 PM, Timothy Perrett wrote: > > Guys, > > I've noticed that the lift-wizard hasn't had any commits for ages - > where is this too in terms of usability etc? > I'm presenting it at Bay Area Scala Enthusiasts on Monday... although I've written almost no new code... but I

[Lift] Re: About the localization with lift:loc !

2009-11-07 Thread Jeppe Nejsum Madsen
Timothy Perrett writes: > You should always be working with UTF-8 files for properties / > localisation - I think the encoding reported by jetty is something > different (that it reads from the system)... ensure your props files > are UTF-8 and go from there. Careful now :-) Property files that

[Lift] Re: About the localization with lift:loc !

2009-11-07 Thread Neil.Lv
yk, I use the code that you write. 1:) I use this link to test the i18n http://localhost:8080/?locale=ms_MY S.??("login") => it works well ! 2:) But this code in the html page, it always doesn't work too, just show the "Default value" Default value Thanks very much! Cheers,

[Lift] Re: About the localization with lift:loc !

2009-11-07 Thread Timothy Perrett
You should always be working with UTF-8 files for properties / localisation - I think the encoding reported by jetty is something different (that it reads from the system)... ensure your props files are UTF-8 and go from there. Cheers, Tim On Nov 7, 12:48 am, yk wrote: > Hi Tim, > > I've develo

[Lift] Re: Pretty Printed Output?

2009-11-07 Thread Timothy Perrett
Im not sure i understand the question - in what was it the current output not pretty printed? cheers, Tim On Nov 7, 9:01 am, aw wrote: > Is there a mode whereby I can turn on pretty printed output for my > xhtml?  (I'm thinking of a LiftRule, I think?).  Preferably, I'd also > like to control s

[Lift] Re: Latest API Documentation

2009-11-07 Thread night_stalker
I think crawling all pages under http://scala-tools.org/mvnsites-snapshots/liftweb/ is a better option, which costs less band-width and less time, and is very much easier than building documentation from source. On Nov 6, 6:45 am, Jonathan Ferguson wrote: > Is it practical to build the snapshot

[Lift] Re: HttpServletRequest getRemoteUser()

2009-11-07 Thread Marius
Try this: S.containerRequest.map(r => (r.asInstanceOf[HTTPRequestServlet]).req) req is an HttpServletRequest when you run into a JEE web container. Br's, Marius On Nov 7, 5:51 am, aw wrote: > I am using 1.1-M7...  I have a Servlet Filter that performs > Authentication.  As far the other laye

[Lift] Re: Build Broken?

2009-11-07 Thread Joni Freeman
Hi, Can you send me surefire test result file at: lift-base/lift-json/target/surefire-reports/TEST- net.liftweb.json.XmlExamplesTest.xml All tests pass on my machine (Ubuntu 8.10, jdk1.6.0_10, Maven 2.0.9), but I will investigate why it fails on your setup. You can send the file directly to me,

[Lift] Pretty Printed Output?

2009-11-07 Thread aw
Is there a mode whereby I can turn on pretty printed output for my xhtml? (I'm thinking of a LiftRule, I think?). Preferably, I'd also like to control some details like indentation size. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Lift] Re: About the localization with lift:loc !

2009-11-07 Thread Neil.Lv
yk, Nice job! It's so cool and very useful to us. Thank you very much! :) Cheers, Neil On Nov 7, 8:48 am, yk wrote: > Hi Tim, > > I've developed n tested localization on windows and it worked > perfectly. however, localization of the same project placed on ubuntu > server 9.10 did n