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

2009-11-04 Thread YING-KWANG TU
Neil, 1. I've tried creating life-core_th_TH.utf-8 by copying from life-core_en_US.properties file. 2. Open the th_TH file in notepad and overwritten as "UTF-8" 3. I've copied some thai characters from the internet and replaced login=ที่อยู่ปัจจุบัน and saved. 3. native2ascii comes with java, so I

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-04 Thread Naftoli Gugenheim
Okay. Unit test are now on Review Board too (and they pass). I'm hoping someone will be able to confirm my work so that my client, a medical assistance volunteer-based charity organization, will have email working properly along with the rest of Lift's great features, so that the volunteer dispatch

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

2009-11-04 Thread yk
Neil, 1. I've copied life-core_en_US.properties from lift-webkit.jar to src/ main/resources/i18n like u did n renamed to life- core_ms_MY.properties. 2. I've changed the login=Login (BM) for in file life- core_ms_MY.properties for testing 3. I am able to test localization on the fly successfully

[Lift] Re: Lift's servlet/filter chain when handling non-Lift resources

2009-11-04 Thread David Pollak
What about: LiftRules.liftRequest.append { case Req("other_stuff" :: _, _, _) => false } If you've got a bunch of different paths: LiftRules.liftRequest.append { case Req("other_stuff" :: _, _, _) => false case Req("other_path" :: _, _, _) => false case Req("api_stuff" :: _, _, _) => fal

[Lift] Re: ModalDialog not working

2009-11-04 Thread Michał Szyszka
sorry for dumb question, I didn't notice that I don't have a in default.html W dniu 4 listopada 2009 22:09 użytkownik Michał Szyszka napisał: > Hi, > > I need a button which show modal dialog, so I try this code: > > SHtml.ajaxForm( >           bind("user",notLoggedInXHTML, >          "login

[Lift] ModalDialog not working

2009-11-04 Thread Michał Szyszka
Hi, I need a button which show modal dialog, so I try this code: SHtml.ajaxForm( bind("user",notLoggedInXHTML, "login" -> SHtml.text(email, email = _), "pass" -> SHtml.password(pass, pass = _), "submit" -> SHtml.submit("Login", login _), "register

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-04 Thread ben
Vesa, Maybe I'm way off, but is there a problem with using Ruby tools like rack or cucumber to test webapps written in Lift ? I've got a webapp written in Lift, with all the web acceptance tests written in cucumber+webrat, and all the "code" level tests written in scala-test+specs - ie the classi

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-04 Thread Vesa
Anybody aware of any examples using testkit? - Vesa On 2 marras, 18:02, Vesa wrote: > Hi, > > I'm aware of Selenium, but it operates on higher level than Rack::Test > and is slower although testing mimics real world situations better as > it drives a real browser. Can I find some examples oftes

[Lift] Re: Lift's servlet/filter chain when handling non-Lift resources

2009-11-04 Thread ben
Just a note to the committers if they read this : I did find it really hard to work out how to get this working, just couldn't find anything on google. I also looked at the LIftRules source code, and just couldn't see anything obvious. I just altered LiftRules.scala on my local version of 1.1-M6

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread David Pollak
On Wed, Nov 4, 2009 at 11:04 AM, jon wrote: > > Wow, congrats! > No... not that way... I've got 5 year old twins... but our nanny's on vacation and my wife is way too busy on a huge case, so I'm primary childcare. > > On Nov 4, 1:46 pm, David P

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread jon
Wow, congrats! On Nov 4, 1:46 pm, David Pollak wrote: > On Wed, Nov 4, 2009 at 10:36 AM, jon wrote: > > > That would be great.  Would it also be published to the scala-tools > > repo? > > Dunno.  Got to figure out how to get it published.  But we can work on that > tomorrow (today's release day

[Lift] Re: Lift's servlet/filter chain when handling non-Lift resources

2009-11-04 Thread ben
Thanks for the reply Andew. That does indeed work, cheers. I googled and googled and googled, and then thought bx to it, I can get around this. Good waste of an afternoon ! My Google skills - 0 Liftweb group list - 1 ! --~--~-~--~~~---~--~~ You received this mes

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread David Pollak
On Wed, Nov 4, 2009 at 10:36 AM, jon wrote: > > That would be great. Would it also be published to the scala-tools > repo? > Dunno. Got to figure out how to get it published. But we can work on that tomorrow (today's release day, plus I turn into a dad @ 1pm PST) > > On Nov 4, 1:18 pm, Davi

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread jon
That would be great. Would it also be published to the scala-tools repo? On Nov 4, 1:18 pm, David Pollak wrote: > On Wed, Nov 4, 2009 at 10:02 AM, jon wrote: > > > Hi, > > > I just noticed OrderBy statements cause Inner selects to break in h2: > > > I query such as: User.findAll(In(User.id, Do

[Lift] Re: Lift's servlet/filter chain when handling non-Lift resources

2009-11-04 Thread AndrewM
Hi, I went through some similar troubles when integrating an Axis2 based web service in my Lift app. Adding the following to Boot.scala seemed to get things working (for requests to /services/*): // allow requests for Axis2 to pass straight through the LiftFilter LiftRules.liftRequest.app

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread David Pollak
On Wed, Nov 4, 2009 at 10:02 AM, jon wrote: > > Hi, > > I just noticed OrderBy statements cause Inner selects to break in h2: > > I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name, > Ascending)), MaxRows(5)) > > Produces: > > Message: org.h2.jdbc.JdbcSQLException: Order by exp

[Lift] Lift's servlet/filter chain when handling non-Lift resources

2009-11-04 Thread ben
Hi, I'm not sure if I was just "doing it wrong" or whether its a problem with Lift's chain handling. I suspect its my problem, but you never know ! So, don't ask why, but I wrote a servlet that I need to be able to call which is not part of Lift. I defined my servlet in the normal manner. I then

[Lift] 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-04 Thread jon
Hi, I just noticed OrderBy statements cause Inner selects to break in h2: I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name, Ascending)), MaxRows(5)) Produces: Message: org.h2.jdbc.JdbcSQLException: Order by expression NAME must be in the result list in this case; SQL state

[Lift] Re: JUnit test on Eclipse

2009-11-04 Thread Troy Noble
Hi Sunanda. This is a question that you are more likely to get answered on the scalatest mailing list or forum... as this topic is not directly related to lift. http://www.scalatest.org/community Here is a tutorial for getting started with junit and scala, look at the section where they define

[Lift] Re: Question about megaprotouser S.error

2009-11-04 Thread David Pollak
On Wed, Nov 4, 2009 at 12:04 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > 2009/11/4 DFectuoso > > >> well that seems great! I use the snapshot so if you finish that and >> want to make someone very happy, you can send me an example of how it >> ended up working and i will be ver

[Lift] record framework questions

2009-11-04 Thread Tim Nelson
I have been working on a back end implementation for Record that uses MongoDB and I have a couple of quick questions; Is there a reason that valMinLen and valMaxLen were not copied into StringField? TimeZoneField has a companion object that has a list of the available time zones, it would be nic