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

2009-10-24 Thread Neil.Lv
Yeah, it's saved as U8-UNIX encoding by the Ultraedit. My IE's default language is zh_CN, but i get the same garbled in the browser. Like this in the browser. ### 555å Ž ### Cheers, Neil On Oct 25, 7:19 am, David Pollak wrote: > Please make sure your lift-core_zh_CN.properties was saved a

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

2009-10-24 Thread Neil.Lv
if i use this code and it works correctly ! Code: ### login = \u52a8\u4f5c ### But it's so difficult to write code ! I don't know what happens with it . Cheers, Neil On Oct 25, 7:19 am, David Pollak wrote: > Please make sure your lift-core_zh_CN.properties was saved as UTF

[Lift] TextileParser

2009-10-24 Thread jack
I am trying to use TextileParser and so I am importing it but I'm getting the error. value textile is not a member of package net.liftweb What am I missing? Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Li

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Randinn
Seems to be a good idea, Glen is working on one... http://github.com/glennSilverman/democritus his could be folded over and fleshed out... On Oct 25, 2:17 pm, Naftoli Gugenheim wrote: > How about we integrate the wiki, blog, forum, and issue tracker into the CMS? > ;) > Seriously, maybe it wo

[Lift] Lift Actor names

2009-10-24 Thread Naftoli Gugenheim
I was looking at Actor.scala, which contains SimpleActor, SimplestActor, TypedActor, GenericActor, and ForwardableActor. Some people will say, once you know what something does, who cares what it's called? But names can really make a difference in learning curve, memorization, and code readabil

[Lift] Re: Testing for SQL Server drivers

2009-10-24 Thread Naftoli Gugenheim
Kmo b'ivrit, l'dugma? ;) - Derek Chen-Becker wrote: The ticket is for Unicode text fields, so if you could try having a Lift app schemify a new table and enter some unicode text that should test it. Derek On Fri, Oct 23, 2009 at 4:11 PM, Timothy Perrett wrot

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread Naftoli Gugenheim
Just want to mention that m2eclipse also had a problem. Thanks for addressing it. - Indrajit Raychaudhuri wrote: Plugin and extension versions are optional in Maven pom. Not providing the version has a small advantage - it defaults to RELEASE and pulls up

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-24 Thread Naftoli Gugenheim
Well if users would, for at least one release, explicitly say which time library they want to use, this kind of bug would not occur. It's not 'jt' per se; rather, as Derek said, it's having names that indicate the implementation detail rather than simply what it does. It makes code less readabl

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Naftoli Gugenheim
How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community project, with lots of feedback to Lift.

[Lift] Re: Is there a built-with-lift list?

2009-10-24 Thread jlist9
Cool sites! Thanks. I hope someday the list will show up on leftweb.net :) On Sat, Oct 24, 2009 at 4:15 PM, David Pollak wrote: > A quick list of public sites (there are a fair number behind the firewall at > places like SAP and Seimens): > > http://foursquare.com > http://nofouls.com/ > http://

[Lift] Re: Playing around with Loc

2009-10-24 Thread Kris Nuttycombe
On Sat, Oct 24, 2009 at 5:18 PM, David Pollak wrote: > In general, it all sounds very good to me. > What was your motivation (other than pure aesthetics)? > If there are breaking changes to code, will they be super-obvious > (compilation failures)? > Oh... and yeah, replacing NullLocParams with

[Lift] Re: confusing error on missing bind

2009-10-24 Thread Kris Nuttycombe
You'll notice if you look at the page source that the error you saw is actually generously provided by Firefox, not by Lift. There is an overload of bind that you could use that allow you to provide a default for any unbound value, although of course this can obscure errors. For a while there was

[Lift] Re: Playing around with Loc

2009-10-24 Thread Kris Nuttycombe
My motivation was twofold: first, I wanted to be able to control access to a Loc based upon the data in the Loc itself (hence the new IfValue and UnlessValue) and in the process I realized that there was a disconnect in type safety between for example the Title LocParam and the Loc itself because

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
is that for Scala or Perl? :) On Oct 24, 4:49 pm, Randinn wrote: > This may not be it, but you can at least print out this list :) > > http://jim-mcbeath.blogspot.com/2008/12/scala-operator-cheat-sheet.html > > On Oct 24, 6:47 am, bob wrote: > > > > > >I'll repeat: there are no operators in sca

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
seriously, if you're suggesting that since function/method names don't have to have any relationship to the algorithm therein, so using punctuation should be fine, then why not just use single letters, followed by an optional digit, and be done. `When I use a word,' Humpty Dumpty said, in rather

[Lift] confusing error on missing bind

2009-10-24 Thread bob
the following error was the result of a bug in my app: i had an element () in the template which I had forgotten to bind in the snippet >This page contains the following errors: >error on line 18 at column 48: Namespace prefix queries on service is not >defined in a big red box first, there is

[Lift] Re: newbie: liftweb + Oracle 10g + dhtmlx TreeGrid... am I asking for trouble?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 1:14 PM, Troy Noble wrote: > > I guess I need a little advice. I want to make sure we're on the > right track. > > I lead a team of 3 folks and we are liftweb newbies... been doing > things the hard way with mod_python & cheetah & hand-written AJAX + > JavaScript with dht

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

2009-10-24 Thread David Pollak
Please make sure your lift-core_zh_CN.properties was saved as UTF-8 On Sat, Oct 24, 2009 at 11:31 AM, Neil.Lv wrote: > > Hi all, > > I create a props file in the resources folder /src/main/resources/ > i18n/lift-core_zh_CN.properties > > And i changed the "log.in" text value. > > Now i us

[Lift] Re: Playing around with Loc

2009-10-24 Thread David Pollak
In general, it all sounds very good to me. What was your motivation (other than pure aesthetics)? If there are breaking changes to code, will they be super-obvious (compilation failures)? On Fri, Oct 23, 2009 at 5:04 PM, Kris Nuttycombe wrote: > > Hi, all, > > I've been messing around with Loc

[Lift] Re: Is there a built-with-lift list?

2009-10-24 Thread David Pollak
A quick list of public sites (there are a fair number behind the firewall at places like SAP and Seimens): - http://foursquare.com - http://nofouls.com/ - http://innovationgames.ocm - http://udorse.com/ On Sat, Oct 24, 2009 at 11:24 AM, jlist9 wrote: > > Oh I think it'll be very h

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread David Pollak
Derek, I'd love to see your excellent talents pointed toward a ticketing system. Think the idea of a ticketing system that's less modal and a lot more ajaxy (and comety with live updates) would be a stellar thing to show off Lift's goodies... plus I think it would lead to improving/enhancing Lift

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
Everywhere that Lift converts String -> Array[Byte], it uses "UTF-8" for encoding. That happens when XML and Strings are converted to HTTP responses. On Sat, Oct 24, 2009 at 11:15 AM, jlist9 wrote: > > I've had problems with system/JVM default locale before. > When no encoding/charset is specif

[Lift] newbie: liftweb + Oracle 10g + dhtmlx TreeGrid... am I asking for trouble?

2009-10-24 Thread Troy Noble
I guess I need a little advice. I want to make sure we're on the right track. I lead a team of 3 folks and we are liftweb newbies... been doing things the hard way with mod_python & cheetah & hand-written AJAX + JavaScript with dhtmlx components with no web framework (no django or rails). Crazy

[Lift] Re: A Critique On Lift

2009-10-24 Thread Randinn
This may not be it, but you can at least print out this list :) http://jim-mcbeath.blogspot.com/2008/12/scala-operator-cheat-sheet.html On Oct 24, 6:47 am, bob wrote: > >I'll repeat: there are no operators in scala > > s/operators/methods-with-operator-like-names/ > > anywhere, here's a typical

[Lift] Re: A Critique On Lift

2009-10-24 Thread Randinn
> > Scala is not like, for example, BASIC, where you can look up FOR, IF/ > THEN/ELSE. there's lots of individual and compound punctuation marks > that are very difficult to search for online and in PDFs (try > searching for "!"). > This is where I am coming from, coding after a 16 or so year h

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
I have added the characterEncoding in the DB url, and it works now. ### db.driver=com.mysql.jdbc.Driver db.url=jdbc:mysql://localhost/hello?characterEncoding=gbk db.user=root db.password= ### Thanks very much ! :) Cheers, Neil On Oct 25, 2:09 am, David Pollak wrot

[Lift] Proposal: Lift-unstable branch (was "Are we willing to make a breaking change for Joda Time?")

2009-10-24 Thread Kris Nuttycombe
This brings to mind something I've been thinking about for a while - what would folks think about the possibility of creating a "lift-unstable" branch? Lift is only a couple of years old, and it seems to me like it would be unfortunate to start stagnating development due to concerns about backward

[Lift] About the localization with lift:loc !

2009-10-24 Thread Neil.Lv
Hi all, I create a props file in the resources folder /src/main/resources/ i18n/lift-core_zh_CN.properties And i changed the "log.in" text value. Now i use this code in my index.html page, and it doesn't corretly. (garbled) ### it doesn't work Log in ### This informatio

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread David Bernard
At work, I configure the root pom.xml with (increase size of parent pom.xml but define the rules for every children (idem for dependencies)) org.scala-tools maven-scala-plugin 2.12.2 org.codehaus.mojo buildnu

[Lift] Re: A Critique On Lift

2009-10-24 Thread Viktor Klang
On Sat, Oct 24, 2009 at 8:18 PM, bob wrote: > > why, it reformats your hard drive > oh snap > > On Oct 23, 6:17 pm, Viktor Klang wrote: > > But if you name your method: "ashiuahsdyasdasd" what does it do? > > > > > > > > > > > > On Fri, Oct 23, 2009 at 9:47 PM, bob wrote: > > > > > >I'll rep

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Jim Barrows
ERP systen or parts, which is what I'm working over on sourceforge. Ill post a link when I get home. The models are built and just need apps in front of them. Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: jlist9 Date: Sat, 24 Oct 2009 11:20:43 To: Subj

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Derek Chen-Becker
Feel free to suggest other ideas or vote on the ones proposed so far :) On Sat, Oct 24, 2009 at 12:20 PM, jlist9 wrote: > > CMS, wiki, blog, forum also sound more interesting than bug tracking > system to me :-) > > On Sat, Oct 24, 2009 at 11:13 AM, aw wrote: > > > > I don't mean to be negative

[Lift] Re: Is there a built-with-lift list?

2009-10-24 Thread jlist9
Oh I think it'll be very helpful to have one, from the perspective of someone new to Lift. People would want to see the capability of a framework before they adopt it. The demo is very nice but real sites are more convincing. On Sat, Oct 24, 2009 at 10:47 AM, David Pollak wrote: >> I'd like to

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread jlist9
CMS, wiki, blog, forum also sound more interesting than bug tracking system to me :-) On Sat, Oct 24, 2009 at 11:13 AM, aw wrote: > > I don't mean to be negative, but are other options being considered > besides a ticketing system?  I kind of wonder if the effort is worth > it when excellent alt

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
why, it reformats your hard drive On Oct 23, 6:17 pm, Viktor Klang wrote: > But if you name your method: "ashiuahsdyasdasd" what does it do? > > > > > > On Fri, Oct 23, 2009 at 9:47 PM, bob wrote: > > > >I'll repeat: there are no operators in scala > > > s/operators/methods-with-operator-like-n

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9
I've had problems with system/JVM default locale before. When no encoding/charset is specified in new String(bytes[] data) or String getBytes(), it uses the default locale. When the default locale is not UTF-8, there will be a problem. I'm not sure where the problem is, though. You can capture th

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread aw
I don't mean to be negative, but are other options being considered besides a ticketing system? I kind of wonder if the effort is worth it when excellent alternatives exist (like JIRA -- their Git integration may interest you: https://plugins.atlassian.com/plugin/details/4984 -- I have used thei

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 11:03 AM, Neil.Lv wrote: > > Yeah, i using the mysql to test my app. > > The is in my props file. > ## >db.driver=com.mysql.jdbc.Driver >db.url=jdbc:mysql://localhost/hello > The above line is the problem. You're not telling the JDBC driver to convert Stri

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
Yeah, i using the mysql to test my app. The is in my props file. ## db.driver=com.mysql.jdbc.Driver db.url=jdbc:mysql://localhost/hello db.user=root db.password= # Cheers, Neil On Oct 25, 1:51 am, jlist9 wrote: > I'm not familiar with how Lift handles strings

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
In my page the Charset is UTF-8, and thisi is my platform information. Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800) Java version: 1.6.0_05 Java home: C:\Java\jdk1.6.0_05\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 11:01 AM, jlist9 wrote: > > Does Lift assume that it gets text from browser in UTF-8? > Lift relies on the container to convert bytes to String correctly. All containers except Tomcat do it right (using the encoding in the Content-Type, and if that's absent defaulting to

[Lift] Re: Problem to process a PUT request in a lift API

2009-10-24 Thread GA
Thanks David. You were right. I added this line: conn.addRequestProperty("content-type", "text/xml") and it works perfectly. Thanks again. GA On Oct 23, 2009, at 7:36 PM, David Pollak wrote: > In order to trigger XML parsing, you have to set the Content-Type to > text/xml > > On Fri, Oct

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 3:05 AM, Jeppe Nejsum Madsen wrote: > > Derek Chen-Becker writes: > > > [...] > > > It's entirely subjective, but I just strongly dislike the idea of > > using method names like jtNow, etc. > > I couldn't agree morecode just doesn't read nice anymore. > I'm cool with

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9
Does Lift assume that it gets text from browser in UTF-8? On Sat, Oct 24, 2009 at 10:57 AM, David Pollak wrote: > > > On Sat, Oct 24, 2009 at 10:51 AM, jlist9 wrote: >> >> I'm not familiar with how Lift handles strings but if the encoding >> conversion >> is what's missing, check out the Java S

[Lift] Re: How to use DependencyFactory.inject ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 6:03 AM, Xuefeng Wu wrote: > > Hello, > > I create now lift project from M6 and find > DependencyFactory.inject[Date] in HelloWorld.scala, but it don't work. > > I can not find the date at page, did I miss something? > This particular issue is fixed in SNAPSHOT. The obje

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 10:51 AM, jlist9 wrote: > > I'm not familiar with how Lift handles strings but if the encoding > conversion > is what's missing, check out the Java String class, look for work encoding > or charset in java doc. Basically you can create a String with a specified > encoding

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv wrote: > > I just use the User's edit method that the ProtoUser ? > > What's method that i can do for conventing GBK to UTF-8 before > saving ? > All Strings in Scala (and JVM) should render themselves correctly (e.g., carry around enough information t

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9
I'm not familiar with how Lift handles strings but if the encoding conversion is what's missing, check out the Java String class, look for work encoding or charset in java doc. Basically you can create a String with a specified encoding and use getBytes() to convert it to a different encoding. Yo

[Lift] Re: Is there a built-with-lift list?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 9:54 AM, jlist9 wrote: > > Hi all, > > I'd like to check out some sites/libraries built with Lift, open source > or commercial. I wonder if there is a list somewhere? > Not yet. > > Thanks > > > > -- Lift, the simply functional web framework http://liftweb.net Beginn

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
I just use the User's edit method that the ProtoUser ? What's method that i can do for conventing GBK to UTF-8 before saving ? Cheers, Neil On Oct 25, 1:34 am, jlist9 wrote: > It sounds like you aren't converting GBK encoding to UTF-8 > before you store the text? > > On Sat, Oct 24, 2009

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 10:10 AM, Neil.Lv wrote: > > Hi all, > > I have a silly question about the Character Encoding in lift. > > My table is charset is utf8 in database. > > ### > CREATE TABLE `users` ( . > ) ENGINE=InnoDB DEFAULT CHARSET=utf8; > ### > > And in my boot.scala

[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9
It sounds like you aren't converting GBK encoding to UTF-8 before you store the text? On Sat, Oct 24, 2009 at 10:10 AM, Neil.Lv wrote: > > Hi all, > >   I have a silly question about the Character Encoding in lift. > >   My table is charset is utf8 in database. > >   ### >   CREATE TABLE `users`

[Lift] How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
Hi all, I have a silly question about the Character Encoding in lift. My table is charset is utf8 in database. ### CREATE TABLE `users` ( . ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ### And in my boot.scala file: ### the default code LiftRules.early.append(makeUtf

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread Indrajit Raychaudhuri
Thanks davidB for pointing! On 24/10/09 9:19 PM, David Bernard wrote: > > Not setting version of plugin : > * create un-reproductible build (over time and developer configuration). Just found this one too: http://www.mail-archive.com/d...@maven.apache.org/msg82398.html. I had no idea that the

[Lift] Is there a built-with-lift list?

2009-10-24 Thread jlist9
Hi all, I'd like to check out some sites/libraries built with Lift, open source or commercial. I wonder if there is a list somewhere? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread David Bernard
Not setting version of plugin : * create un-reproductible build (over time and developer configuration). * using le last release is not always a good idea (eg : the last 2 version of maven-eclipse-plugin introduce regression). /davidB On 2009-10-24, Indrajit Raychaudhuri wrote: > > Plugin and

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread TylerWeir
I think it's a great idea. I'm not sure if this would work, but if it appeared on github, we could use it as an example app that new Lifters could study. Like what we hoped PocketChange would be, but we have more of a need for a ticket system, than a budget app. On Oct 24, 10:21 am, Marius w

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Marius
I'd LOVE TO SEE a ticketing system built in lift even though there are so many other solutions out there. The things that I'd like to see are: 1. When opening a Ticket I'd like to see fields like: - Summary - Description - Severity - Priority - Assign to - Followers. Submitter would

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread Indrajit Raychaudhuri
Plugin and extension versions are optional in Maven pom. Not providing the version has a small advantage - it defaults to RELEASE and pulls up the latest release automatically. While it's possible that a plugin version would have backward incomplete changes, in Lift we hardly do anything compl

[Lift] Re: Testing for SQL Server drivers

2009-10-24 Thread Derek Chen-Becker
The ticket is for Unicode text fields, so if you could try having a Lift app schemify a new table and enter some unicode text that should test it. Derek On Fri, Oct 23, 2009 at 4:11 PM, Timothy Perrett wrote: > Ahhh sorry I didn't see this before - I'm using lift mapper with SQL server > at work

[Lift] Proposal : Lift ticketing system

2009-10-24 Thread Derek Chen-Becker
Hi, I feel like I need to take a break from working *on* Lift for a little while, but I'd like to do something with my time that would still benefit Lift. Since we had a recent discussion on ticketing systems, and we had talked a long time ago about dogfooding a ticket system, I thought that th

[Lift] How to use DependencyFactory.inject ?

2009-10-24 Thread Xuefeng Wu
Hello, I create now lift project from M6 and find DependencyFactory.inject[Date] in HelloWorld.scala, but it don't work. I can not find the date at page, did I miss something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[Lift] Re: In the spirit of Friday, anyone want to see this ruby rack ported to lift?

2009-10-24 Thread TylerWeir
looks cool. And if you're volunteering, then have at it. :) On Oct 23, 6:55 pm, Jim Barrows wrote: > http://coderack.org/users/MetaSkills/entries/15-zombie-shotgun > > and yes, I'm volunteering. :) > > -- > James A Barrows --~--~-~--~~~---~--~~ You received this m

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-24 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: [...] > It's entirely subjective, but I just strongly dislike the idea of > using method names like jtNow, etc. I couldn't agree morecode just doesn't read nice anymore. /Jeppe --~--~-~--~~~---~--~~ You received this message be