[Lift] Re: Happy New Year!

2009-12-30 Thread Neil.Lv
Thank you and Happy New Year to all the Lifter! Cheer, Neil On Dec 30, 9:48 pm, Marius wrote: > Thank you. Happy new year to you too. > > Br's > Marius > > On Dec 30, 2:12 pm, koveen wrote: > > > I would like to wish everybody on this list a happy new year. > > A year in which it will be f

[Lift] Re: Example project -- Image gallery

2010-01-06 Thread Neil.Lv
Thanks for sharing this, it's very useful and helpful to us (beginner). Cheers, Neil On Jan 7, 1:20 am, David Pollak wrote: > Thanks for sharing! > > Double thanks for spelling my last name correctly!! > > > > On Wed, Jan 6, 2010 at 9:12 AM, Jim Wise wrote: > > I've put the image gallery co

[Lift] How many memory are assigned by default when starting the Jetty ?

2010-01-08 Thread Neil.Lv
Hi all, I have a silly question about the memory of the jetty. How many the memory are assigned by default when starting the Jetty server? There is a problem that I do some operation for about 30 minutes, then the jetty was crashed. The error message is that the memoryOutOfBound

[Lift] JNDI error when switching to M8 ?

2010-01-10 Thread Neil.Lv
Hi all, There is a problem that i switch the M7 to M8, the JNDI is error. I didn't change anything before moving M7 to M8. It seems that the Lift looks for the lift ConnectionIdentifier not the OneDB or TwoDB. ### java.lang.NullPointerException: Looking for Connection Identifier Connec

[Lift] Re: JNDI error when switching to M8 ?

2010-01-10 Thread Neil.Lv
Here is the test code . g...@github.com:anim510/two_db_demo.git It works fine when using only one database, it failed when using two db connection. Thanks.! Cheers, Neil On Jan 10, 5:04 pm, "Neil.Lv" wrote: > Hi all, > >    There is a problem that i switch the

[Lift] Re: JNDI error when switching to M8 ?

2010-01-11 Thread Neil.Lv
Does anyone know that what's wrong with it ? Cheers, Neil On Jan 10, 9:50 pm, "Neil.Lv" wrote: > Here is the test code . > > g...@github.com:anim510/two_db_demo.git > > It works fine when using only one database, it failed when using two > db conn

[Lift] Two database are broken in 1.1-M8, works fine in 1.1-M7 .

2010-01-11 Thread Neil.Lv
Hi all, There is a problem when i upgrading the 1.1-M7 to 1.1-M8, the db connection is broken. I use two database connection in my app, it's broken in 1.1-M8. ### object OneDB extends ConnectionIdentifier { override def jndiName = "lift_proto" } object TwoDB extends ConnectionIdentifier {

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread Neil.Lv
Hi all, Maybe the mapper is broken in M8 ? I use only one database in M8 ( upgrade from M7) it works fine, but use two db connection and it doesn't work. (works fine in M7). Here is the topic about this issue. Thank you very much for any help! Cheers, Neil -- You received this

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-12 Thread Neil.Lv
Oh, I'm sorry about that I forget pasting the topic url. Here is : http://groups.google.com/group/liftweb/browse_thread/thread/6ca3fd7deb41b1f9 Thank you very much! Cheers, Neil On Jan 13, 2:48 am, David Pollak wrote: > On Tue, Jan 12, 2010 at 6:47 AM, Neil.Lv wrote: &g

[Lift] Re: Two database are broken in 1.1-M8, works fine in 1.1-M7 .

2010-01-13 Thread Neil.Lv
de is you are using the same connection vendor > for both connection identifiers *and* you're not defining a vendor for > the DefaultConnectionIdentifier > > On Jan 11, 7:05 am, "Neil.Lv" wrote: > > > Hi all, > > >    There is a problem when i upgrading

[Lift] Re: Two database are broken in 1.1-M8, works fine in 1.1-M7 .

2010-01-13 Thread Neil.Lv
David, Thank you very much! It works now, I'm so sorry about that I didn't see the yak demo yesterday . :) Cheers, Neil On Jan 14, 12:43 pm, David Pollak wrote: > On Wed, Jan 13, 2010 at 6:18 AM, Neil.Lv wrote: > > Hi David, > > > I'm sor

[Lift] How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
Hi all, I use two db connections in my app, and I want to use DB.prepareStatement to select the records from the second db. It failed, Here is the code: ### def getHotByTid(id : Long) = DB.use(bootstrap.liftweb.TwoDB) { conn => DB.prepareStatement("SELECT * FROM hots WHE

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
Thank you very much, But it doesn't work yet, maybe because of using two db connections. I'll test it later again. On Jan 21, 12:44 am, Jeppe Nejsum Madsen wrote: > "Neil.Lv" writes: > > Hi all, > > >   I use two db connections in my app, and

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
The DB.runQuery can works now, but the DB.prepareStatement also cant' work. Here is the test app address: http://github.com/anim510/two_db_demo Cheers, Neil On Jan 21, 1:16 am, "Neil.Lv" wrote: >    Thank you very much, > >    But it doesn't work yet,

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
anks very much! #### Cheers, Neil On Jan 21, 1:56 am, "Neil.Lv" wrote: > The DB.runQuery can works now, but the DB.prepareStatement also > cant' work. > > Here is the test app address: > http://github.com/anim510/two_db_demo > > Cheers, > Neil

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
My email is : anim...@gmail.com On Jan 21, 11:17 am, "Neil.Lv" wrote: > Mabye it's a bug with DB.runQuery and DB.use in the two db vender > > Two question: (problem) > > 1: I don't know why the HelloWorld snippet code will be execute 2 > times i

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
I have added the demo code on the Github now. ( Mabye it's a bug with DB.runQuery and DB.use in the two db vender ) Here is the address: http://github.com/anim510/two_db_demo Thanks very much! Cheers, Neil On Jan 21, 11:26 am, "Neil.Lv" wrote: >   My

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
ondConnection => > >   // do transactional query between two DBs here > > } > } > > Note that DB.use nests such that the transaction will only be committed when > the last DB.use block for a given ConnectionIdentifier is exited. > > > > On Thu, Jan 2

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
ght of the screen buffer size. > > ----- > > Neil.Lv wrote: > > Here is the lastest code now, g...@github.com:anim510/two_db_demo.git > > start server and visit:http://localhost:8080/and get this error, In > the cmd I can't see all the

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
On Jan 22, 10:06 am, Naftoli Gugenheim wrote: > 'mvn clean' deletes them for you. > > - Got it, Thank you very much! Cheers, Neil -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send ema

[Lift] Re: Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-26 Thread Neil.Lv
Hi, I have a silly question about the http package. What's the package should be imported when using the dispatch? I try this code of the wiki, and get this error. error: not found: value http ### I have import the dispatch package, and where is the http ? import dispatch._ ### Th

[Lift] Re: Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-26 Thread Neil.Lv
Thanks, I have found it here, http://dispatch.databinder.net/Stdout_Walkthrough I have imported the Http package and it works now, ### import Http._ ### Thanks again, this article is very helpful. Cheers, Neil On Jan 27, 9:57 am, "Neil.Lv" wrote: > Hi, > >

[Lift] (ISSUE) How to use the sbt with lift project ?

2010-01-29 Thread Neil.Lv
Hi all, How to use the sbt with lift project ? I try to use the sbt and get this errors, Does anybody know what's wrong with it ? Maybe i missing something else ? Here is the log: # I create this file like this in the build directory. G:\project\test\pr

[Lift] Re: (ISSUE) How to use the sbt with lift project ?

2010-01-30 Thread Neil.Lv
I have changed the code. use this code in the G:\project\test\project \TestProject.scala file, and get this error. > The jetty val you are overriding is an internal val that you shouldn't > be doing anything with. If you change that line to: > > val jetty6 = "org.mortbay.jetty" % "jetty" % "6.

[Lift] Re: (ISSUE) How to use the sbt with lift project ?

2010-01-30 Thread Neil.Lv
Hi, Lift version is: 2.0-M1, i deleted all the files in the G:/Documents and Settings/Ruby/.ivy2/ directory but get these errors too. # [warn] :: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :

[Lift] Re: (ISSUE) How to use the sbt with lift project ?

2010-01-30 Thread Neil.Lv
I use this command "~ jetty-restart" and it can get continuous compilation and deployment. Thanks! Cheers, Neil On Jan 31, 1:10 pm, "Neil.Lv" wrote: >   It works now, but when i changing a file(HelloWorld.scala) in the > snippet, it doesn't re-c

[Lift] About the url rewrite (more thant one params and get 404 not found error)

2010-02-28 Thread Neil.Lv
Hi all, I have a silly question about the url rewrite in the lift. It has another two params in the url after the img. http://localhost:8080/show/img/version/id The url works fine. => http://localhost:8080/show/img => http://localhost:8080/show/img/v1/ => http://localhost:8080/show

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
On Mar 1, 3:53 pm, Jeppe Nejsum Madsen wrote: > > I'm not sure if this can be handled with the standard ParsePath, but it > is fairly easy to write your own extractor that can handle more complex > scenarios. Here's an example: > > object ParamsExtractor { > def unapply(pp:ParsePath): Opti

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
On Mar 1, 5:10 pm, Jeppe Nejsum Madsen wrote: > Ahh yes, the example was from a Loc rewrite, The principle is the same I > guess, you should be able to do something like this: > > case RewriteRequest(ParamsExtractor(account,orgUnit) , _, _) => > RewriteResponse(path, Map("account" -> account,

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
I add these code in the Boot class, but it doesn't work. How can write the correct code to parse the url ? # object ParamsExtractor { def unapply(pp: ParsePath): Option[(String)] = { Log.info("wholePath: " + pp.wholePath) val path = List("test") val result:Box[(String)] = i

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
OK, Got it, Thank you very much! On Mar 2, 3:01 am, David Pollak wrote: > On Sun, Feb 28, 2010 at 8:28 PM, Neil.Lv wrote: > > Hi all, > > > I have a silly question about the url rewrite in the lift. > > It has another two params in the url after the img. > > >

[Lift] Re: Issue, The URL params can't contains & ? ****

2010-03-09 Thread Neil.Lv
I want get the these strings ( http://test.com/file.zip&12345678 ) from the URL (http://localhost:8080/download.html?link=http://test.com/ file.zip&12345678) Thanks very much! Cheers, Neil -- You received this message because you are subscribed to the Google Groups "Lift" group. To

[Lift] Issue, The URL params can't contains & ? ****

2010-03-09 Thread Neil.Lv
Hi all, I have a silly question about the URL rewrite . How to let the URL params can contains the & character. Here is the code: ### The url rewrite. case RewriteRequest( ParsePath(List("download", link), "html", _, _), GetRequest, _)

[Lift] Re: Issue, The URL params can't contains & ? ****

2010-03-09 Thread Neil.Lv
On Mar 9, 9:56 pm, Marius wrote: > You need to do URL encoding first. Helpers.urlEcnode(str) does this. > case RewriteRequest( ParsePath(List("download", link), "html", _, _), GetRequest, _) => RewriteResponse(List("download"

[Lift] The LiftView trait can't work ?

2009-09-23 Thread Neil.Lv
Hi all, Just I define a class that extends the LiftView trait, but there is something wrong with this class when i using it. I wrote some test code like this: ### code ### package com.test.view import net.liftweb._ import http._ import scala.xml.{NodeSeq} class Test extend

[Lift] Re: The LiftView trait can't work ?

2009-09-23 Thread Neil.Lv
re using Lift 1.1-x, you will get a helpful error message reminding > you to add the /Test/hello link to your SiteMap in Boot.scala > > > > On Wed, Sep 23, 2009 at 1:02 AM, Neil.Lv wrote: > > > Hi all, > > >Just I define a class that extends the LiftView trait,

[Lift] Re: The LiftView trait can't work ?

2009-09-23 Thread Neil.Lv
into the SiteMap ? Such as: Menu(Loc("Test", List("test", "hello"), "Test")) :: Menu(...) :: Menu(...) :: Menu(...) ... Maybe this code will be very long whether there is another way to achieve this goal. Cheers, Neil On Sep 24, 9:39 am, "Ne

[Lift] Re: The LiftView trait can't work ?

2009-09-24 Thread Neil.Lv
> Yes. You may choose to use sitemap or not use it. > > If you choose not to use it, comment out the > LiftRules.setSiteMap(SiteMap(MenuInfo.menu :_*)) line Yeah, thank you for your suggestion that it's very useful. Cheers, Neil --~--~-~--~~~---~--~~ You recei

[Lift] Use lift1.0 or 1.1 or 1.x to create a stable and large site(project) ?

2009-10-09 Thread Neil.Lv
Hi liftweb, Is anyone has used lift to create a stable and large site ? If i want to create this site which version that is suit, lift1.0 or higher version. If someone knows the site that develop by lift or has used lift to create a site, could you give me some ideas? Thanks very much

[Lift] Re: Use lift1.0 or 1.1 or 1.x to create a stable and large site(project) ?

2009-10-10 Thread Neil.Lv
I'll be try to use lift1.1-SNAPSHOT to create my web site. Thank you very much ! On Oct 9, 9:32 pm, David Pollak wrote: > I use Lift 1.1-SNAPSHOT on all the sites I work on (that's currently at 7). >  There's rarely breakage on SNAPSHOT. > > > > On Fri, Oct 9

[Lift] Re: Use lift1.0 or 1.1 or 1.x to create a stable and large site(project) ?

2009-10-11 Thread Neil.Lv
kage on SNAPSHOT. > > > > On Fri, Oct 9, 2009 at 3:01 AM, Neil.Lv wrote: > > > Hi liftweb, > > > Is anyone has used lift to create a stable and large site ? If i > > want to create this site which version that is suit, > > > lift1.0 or higher version. > >

[Lift] Extend the tables that like the migration in the Rails ?

2009-10-12 Thread Neil.Lv
Hi all, I don't know whether there is a mechanism that like the migration of the Rails in the Liftweb, and how can we extend the table, such as add a column "desc " into a table users (OR user ?). I add this code in the User model and restart the server, the table don't change anything !

[Lift] Re: Extend the tables that like the migration in the Rails ?

2009-10-12 Thread Neil.Lv
wrote: > Is User added to Schemefier in Boot.scala? It should look something > like: Schemifier.schemify(true, Log.infoF _, User) > > Peter Robinett > > On Oct 12, 11:22 am, "Neil.Lv" wrote: > > > Hi all, > > >I don't know whether there is a m

[Lift] Re: Use lift1.0 or 1.1 or 1.x to create a stable and large site(project) ?

2009-10-12 Thread Neil.Lv
Yeah, it works now ! Thanks very much ! Cheers, Neil On Oct 13, 1:32 am, David Pollak wrote: > You have to include -DremoteRepositories=http://scala-tools.org/repo-* > snapshots* in the command line. > > > > On Sun, Oct 11, 2009 at 7:41 PM, Neil.Lv wrote: > >

[Lift] Re: Extend the tables that like the migration in the Rails ?

2009-10-12 Thread Neil.Lv
t; > > On Mon, Oct 12, 2009 at 6:20 PM, Neil.Lv wrote: > > > Yeah, I have add this code in the Boot.scala. > > > ### > >Schemifier.schemify(true, Log.infoF _, User) > > ### > > > But i want to add a column into the user table (extend the user table)

[Lift] Create the website and all the links are Https ?

2009-10-13 Thread Neil.Lv
Hi all, How can we create the website and all the links are https? Just like: www.xing.com That all of the operations and communications are used https. Thanks very much ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Create the website and all the links are Https ?

2009-10-13 Thread Neil.Lv
Using Nginx and Jetty together as usually ? or something else . Thanks ! Cheers, Neil On Oct 13, 11:10 pm, David Pollak wrote: > On Tue, Oct 13, 2009 at 3:04 AM, Hannes wrote: > > > You can use Apache to secure your page with HTTPS. > > This is correct. The web server that sits in front

[Lift] Use Rails as front and Scala as end ?

2009-10-14 Thread Neil.Lv
Hi all, Does anyone know that how to create a web site use Rails as front and Scala as end, just like the twitter ? How to integrate these together ? Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you

[Lift] Lift 1.1 must use Scala 2.8.x ?

2009-10-14 Thread Neil.Lv
Hi all, If i want to use the lift1.1 whether the scala version must greater than 2.8 ? My lift version is 2.7.4 now, so i must change to 2.8.x ? Thanks very much ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[Lift] Re: Use Rails as front and Scala as end ?

2009-10-14 Thread Neil.Lv
The answers are very good! I'm sure that the lift will be better! Thank you very much ! On Oct 15, 10:11 am, David Pollak wrote: > On Wed, Oct 14, 2009 at 6:14 PM, Neil.Lv wrote: > > > Hi all, > > > Does anyone know that how to create a web site use Rails as

[Lift] The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Neil.Lv
Hi all, The scala-2.7.5.final.zip can't downlaod, if anyone knows another link that can download ? scala-2.7.5.final.zip http://www.scala-lang.org/downloads/distrib/files/scala-2.7.5.final.zip So I want to know that the scala-2.7.6 whether works with lift1.1 well ? Thanks very m

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Neil.Lv
ill automatically download the right jars for you if they don't exist   > in your local repo. > > Lift does not and will not work with 2.7.6 - that was a broken scala   > release. > > Cheers, Tim > > Sent from my iPhone > > On 18 Oct 2009, at 07:10, "N

[Lift] Why the liftweb doesn't use mysql as the default database ?

2009-10-19 Thread Neil.Lv
Hi all, Why the liftweb doesn't use MySQL as the default database ? Thanks very much ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftwe

[Lift] css, javascript, images are all in the WEB-INF ?

2009-10-20 Thread Neil.Lv
Hi all, I have a newbie issue about the path . The css, javascript, images folder are all in the WEB-INF or you can specify the path ? Thanks for any suggestion! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Record is the default db interface in the Lift1.1 ?

2009-10-21 Thread Neil.Lv
Hi all, Record is the default db interface in the Lift1.1 ? Is there anybody who know some examples about the Record in the lift1.1 ? Thanks very much ! :( Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[Lift] Where is the default.props in the lift1.1-M6 and the Full method ?

2009-10-21 Thread Neil.Lv
Hi all, Where is the default.props in the lift1.1-M6 whether the file name is defualt.props ? I see this code in the Boot.scala ### Props.get("db.driver") ### If it uses the default Props, and where is it ? And i have a silly question about the helper method Full(). What

[Lift] Where is the default User table's definition ?

2009-10-21 Thread Neil.Lv
Hi all, I have a question about the lift's default definition. Where is the source file that i can find the details about the MetaMegaProtoUser, MegaProtoUser ? Thanks very much ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because y

[Lift] Re: Where is the default.props in the lift1.1-M6 and the Full method ?

2009-10-21 Thread Neil.Lv
s helps. > > Cheers, > > GA > > On Oct 21, 2009, at 10:24 AM, Neil.Lv wrote: > > > > > Hi all, > > >   Where is the default.props in the lift1.1-M6 whether the file name > > is defualt.props ? > > >   I see this code in the Boot.sc

[Lift] Re: Where is the default User table's definition ?

2009-10-21 Thread Neil.Lv
d the GitHub repository?http://www.github.com/dpp/liftweb > > Exploring the source will only assist you in further development. > > Tyler > > On Oct 21, 5:45 am, "Neil.Lv" wrote: > > > Hi all, > > >    I have a question about the lift's default defi

[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: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
t? > > 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` ( . > >   ) ENGIN

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

2009-10-24 Thread Neil.Lv
ut 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. > > You can also try setting charset in your page to UTF-8. Maybe this is > the default

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

2009-10-24 Thread Neil.Lv
try setting charset in your page to UTF-8. Maybe this is > the default in Lift. > > 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 bef

[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: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv
wrote: > 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

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

2009-10-24 Thread Neil.Lv
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 valu

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

2009-10-24 Thread Neil.Lv
ies 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" t

[Lift] About the ajaxButton's confirm ?

2009-10-25 Thread Neil.Lv
Hi all, I use the ajaxButton to delete the record from the database, and How can the ajaxButton surpport the confirm dialog when clicking the delete button(ajaxButton) ? 1:) I use this method that it will be show the confirm dialog when clicking the delete button, but it never call the

[Lift] Re: About the ajaxButton's confirm ?

2009-10-25 Thread Neil.Lv
here:http://groups.google.com/group/liftweb/browse_thread/thread/ec573c0e3... > .. see the last post. > > Let me know if you have further questions. > > Br's, > Marius > > On Oct 25, 1:24 pm, "Neil.Lv" wrote: > > > Hi all, > > > I use the a

[Lift] How to use the many-to-many relationship in the lift Model ?

2009-10-25 Thread Neil.Lv
Hi all, Dose anybody know that how to use the many-to-many relationship in the lift model ? * We need to create a 3 models to represent the 3 tables ( teachers, students, teacher_student ) ex: teachers -> id, name, sex, age, ... students -> id, name, sex, age, ... teacher

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

2009-10-25 Thread Neil.Lv
to > convert it into the unicode representation. > > Glad you found my article helpful. > > Cheers, Tim > > On Oct 25, 5:02 am, "Neil.Lv" wrote: > > >if i use this code and it works correctly ! > > > Code: > > ### > > l

[Lift] Re: How to use the many-to-many relationship in the lift Model ?

2009-10-25 Thread Neil.Lv
gt; > On Mon, Oct 26, 2009 at 12:29 PM, YING-KWANG TU > wrote: > > > Neil, > > > The following thread has very good information on many-to-many > > implementation: > > >http://groups.google.com.my/group/liftweb/browse_thread/thread/579391... > > &

[Lift] About the rewrite and dispatch in the LiftRules ?

2009-10-26 Thread Neil.Lv
Hi all; I have a newbie question, I'm confused with the LiftRules.rewrite and LiftRules.dispatch. When we need to use the rewrite and dispatch ? I feel that they are very similar. Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you a

[Lift] Re: How to use the many-to-many relationship in the lift Model ?

2009-10-26 Thread Neil.Lv
Thanks guys! Maybe i should look at this thread first! http://groups.google.com.my/group/liftweb/browse_thread/thread/5793917fee419f89 Cheers, Neil On Oct 26, 2:21 pm, "Neil.Lv" wrote: > In your "students" class: >1. declare a "teacher" objec

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

2009-10-26 Thread Neil.Lv
thing will be config ? Cheers, Neil On Oct 26, 4:17 pm, Timothy Perrett wrote: > Neil, > > Can you zip and send me an example? It's quite likley your missing > something and without seeing the code it's difficult to say. > > Cheers, Tim > > Sent from my iPhone

[Lift] Re: About the rewrite and dispatch in the LiftRules ?

2009-10-26 Thread Neil.Lv
at help? > > Cheers, Tim > > Sent from my iPhone > > On 26 Oct 2009, at 07:59, "Neil.Lv" wrote: > > > > > Hi all; > > > I have a newbie question, I'm confused with the LiftRules.rewrite > > and LiftRules.dispatch. > > > When we

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

2009-10-26 Thread Neil.Lv
not so long ago to the HTTP container providers but it should > give you enough to go on. > > Does that help? > > Cheers, Tim > > On Oct 26, 8:35 am, "Neil.Lv" wrote: > > > 1:) I create a file in the i18n folder > > /src/main/resources/i18n/lift-cor

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

2009-10-26 Thread Neil.Lv
Log in 222 That means this code is correctly, the problem is that the browser doesn't know the locale? So we need to calculate the locale in the Boot.scala file ? Cheers, Neil On Oct 26, 5:09 pm, "Neil.Lv" wrote: > tryo(r.getParameter("locale"))

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

2009-10-26 Thread Neil.Lv
e >    } > > }).openOr(java.util.Locale.getDefault()) > > Hope that helps > > Cheers, Tim > > On 26 Oct 2009, at 09:21, Neil.Lv wrote: > > > > >  Log in 222 > >  That means this code is correctly, the problem is that the browser > > doesn't know th

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

2009-10-26 Thread Neil.Lv
in my simplified   > example. > > Cheers, Tim > > On 26 Oct 2009, at 11:45, Neil.Lv wrote: > > > > > I have a silly question ,  where is the setLocale method ? > > > I don't know where the package located. > > > src\main\scala\bootstrap\l

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

2009-10-26 Thread Neil.Lv
works. > > Cheers, Tim > > On 26 Oct 2009, at 12:34, Neil.Lv wrote: > > > > >  ... > > >  Where is the locale to be set that the browser can know the > > locale ? > > >  Thanks very much! > > > Cheers, > >  Neil > > > On Oc

[Lift] The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
Hi all, I use the datepicker to chose the date, and the value is missing when posted to the server. 1: This is some code: ### In the model object date_time extends MappedDateTime(this) { final val dateFormat = DateFormat.getDateInstance(DateFormat.SHORT) override def a

[Lift] Missing comm when use the Text in the model, Update version to M7 ?

2009-10-27 Thread Neil.Lv
Hi all, How can i update my app to M7 version ? My app 's current version is 1.1-M6 . If i update the version whether the app will be broken ? Thanks very much! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscrib

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
I print the S.attr and get something like this: ...Left(form).. println(S.attr) And how can i get the form value from the form that posted to the server. I can't get the date_time value via the DatePicker. Thanks for any help! Cheers, Neil On Oct 28, 9:17 am, "Neil.

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
And the date_time's value is always date_time=Thu, 1 Jan 1970 00:00:00 UTC, Thanks very much! Cheers, Neil On Oct 28, 12:27 pm, "Neil.Lv" wrote: > I print the S.attr and get something like this: ...Left(form).. > println(S.attr) > > And how can i

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
? Look > first at the HTML source to see the name attribute generated by Lift--it's > different each time. > > - > > Neil.Lv wrote: > > I print the S.attr and get something like this: ...Left(form).. > println(S.attr) > &g

[Lift] Get the subfolders and all the files in the Directory in the Lift ?

2009-10-28 Thread Neil.Lv
Hi all, I have a silly question about the directory. How can i get the subfolders and all the files in the specify directory, such as /images . I want to use the Dtree to show these files and folders . Thanks for any suggestion ! :) Cheers, Neil --~--~-~--~~

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-29 Thread Neil.Lv
> call:http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/Serv... > > > > On Wed, Oct 28, 2009 at 6:46 PM, Neil.Lv wrote: > > > Hi all, > > > I have a silly question about the directory. > > > How can i get the subfolders and all the files in the s

[Lift] A newbie question about the is method that where is defined?

2009-10-29 Thread Neil.Lv
Hi all, I have a newbie question about the is method that where is defined? entry.receipt.is user.name.is I don't find the definition of the is method, and where is it ? Thanks very much! Cheers, Neil --~--~-~--~~~---~--~~ You received this message

[Lift] Re: A newbie question about the is method that where is defined?

2009-10-29 Thread Neil.Lv
no read permissions, the value will be obscured >*/ > def is: FieldType = { > if (safe_? || readPermission_?) i_is_! > else i_obscure_!(i_is_!) > } > > Cheers. > yk > > On Thu, Oct 29, 2009 at 4:41 PM, Neil.Lv wrote: > > > Hi a

[Lift] How to hidden the Menu Loc? This hidden attr doesn't work!

2009-10-29 Thread Neil.Lv
Hi all, I have a question about the Loc , and How to hidden the Menu if the user is not a superuser ? The code is : The Edit book 1 always shows in the home page if the user doesn't login. The Edit book 2 doesn't work both login in or not . ### val IfLoggedIn = If(() => User.cu

[Lift] Re: How to hidden the Menu Loc? This hidden attr doesn't work!

2009-10-29 Thread Neil.Lv
dit book 2", Hidden, > IfLoggedIn)) :: // Doesn't work > Hidden and ifLoggedIn are LocParam, I guess switch them and you could > get you want. > change to: > Menu(Loc("addBk2", List("edit_book"), "Edit book 2", IfLoggedIn, > Hidden)) :: &

[Lift] Re: How to hidden the Menu Loc? This hidden attr doesn't work!

2009-10-29 Thread Neil.Lv
Does anybody know that how to hidden a Menu when the user is not logged in ? :) Cheers, Neil On Oct 30, 10:57 am, "Neil.Lv" wrote: > It doesn't work too. > > I use this code and the false maybe doesn't work yet, it always > shows on the home page.

[Lift] Re: How to hidden the Menu Loc? This hidden attr doesn't work!

2009-10-30 Thread Neil.Lv
"/book/ edit_book"),"Edit book")) :: ### Cheers, Neil On Oct 30, 2:40 pm, "Neil.Lv" wrote: > Does anybody know that how to hidden a Menu when the user is not > logged in ? > > :) > > Cheers, > Neil > > On Oct 30, 10:57 am, "Neil.Lv

[Lift] Error with the SHtml.select method ?

2009-10-30 Thread Neil.Lv
Hi all, There is a question that about the SHtml.select method. ### This code will be error ? def handleBook(id: String) { book.type_id(id.toLong) //Log.infoF _ } bind("book", xhtml, "type" -> select(Book.getBooks, Empty, handleBook _) ... ) ### If i call

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread Neil.Lv
il On Oct 30, 11:17 pm, bob wrote: > interesting! have you tried /* Log.infoF _ */ ? > > On Oct 30, 10:31 am, "Neil.Lv" wrote: > > > Hi all, > > >   There is a question that about the SHtml.select method. > > > ###  This code will be error ? > >

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread Neil.Lv
hat can be compiled). > > Your handleBook method is returning Unit, so anything at the end of the > method (other than a var/val declaration) should be okay. > > > > On Fri, Oct 30, 2009 at 8:28 AM, Neil.Lv wrote: > > > Yes, i have tries it. > > > ###  

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread Neil.Lv
_id? > And are you sure there's no '=' before '{'? > > - > > David Pollak wrote: > On Fri, Oct 30, 2009 at 10:28 AM, Neil.Lv wrote: > > >  Thanks David, it works now, it return the param that passed into the >

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread Neil.Lv
bob, Thank you very much, i will be try it. :) Cheers, Neil On Oct 31, 2:03 am, bob wrote: > when moved the file from /resources/foo.xml to /foo.xml  (in the same > path as index.html), it now finds it. i guess getResourcePaths() and > getResourceAsStream() don't necessarily look in the s

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread Neil.Lv
Just as you say that the method return Unit, not Any. :) Cheers, Neil On Oct 31, 2:24 am, David Pollak wrote: > Please send a complete example of how it failed. > > > > On Fri, Oct 30, 2009 at 11:22 AM, Neil.Lv wrote: > > >  Thank you very much! > > >

  1   2   >