[Lift] How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-13 Thread Neil.Lv
Hi all, How to save the uploaded image into the folder via fileUpload in Lift? I don't want to save it in the database, the example code in the Pocketchangeapp ### val receiptOk = fileHolder match { case Full(FileParamHolder(_, null, _, _)) => true case F

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
sort of thing), instead of having the database do it for you. > > Use the database to store and retrieve data, not to perform > calculations. > > -harryh > > On Nov 9, 1:44 am, "Neil.Lv" wrote: > > > Hi all, > > >   There is some example code: >

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
gt; On Sun, Nov 8, 2009 at 11:44 PM, Neil.Lv wrote: > > > Hi all, > > >  There is some example code: > > ### > > SELECT id,  name, sex, created_at,  DAYOFWEEK(created_at,) as week, > > (CURRENT_DATE) as t > > FROM users > > WHERE created_at > (CURREN

[Lift] Is there a paginate plug in the lift ?

2009-11-13 Thread Neil.Lv
Hi all, Is there a paginate plug in the lift ? Just like the WillPaginate in the Rails. Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
ot;"" markers, thus you need to escape them properly. > > Cheers, Tim > > On 12 Nov 2009, at 12:02, Neil.Lv wrote: > > >  Why the " flashSrc" is a string in the Script ? Maybe it should be "/ > > flash/test.swf" ? --~--~-~--~~-

[Lift] Re: How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
.js.JsCmds._ > >   val script = """swfobject.embedSWF('" + flashSrc + "','myContent', '300', > '120', '9.0.0', 'expressInstall.swf', '" + flashVar + "');""" > >  

[Lift] How to Embed the flash dynamic in Snippet in the Lift ?

2009-11-12 Thread Neil.Lv
Hi all, How to Embed the flash dynamic in Snippet in the Lift? I use the swfobject to embed my flash and want to specify the flashVar dynamic, but this is doesn't work! Here is the code in the Snippet: The flashSrc can shown correctly in the index page, but the falshvar doesn't work!

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

2009-11-10 Thread Neil.Lv
er, ISO country codes are in the format en_US, not en_us... Lift > is leveraging some base java localization and you have to stick to the > rules :-) > > I'll try to reply in more detail later. > > Cheers, Tim > > Sent from my iPhone > > On 10 Nov 2009, at 08:19,

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

2009-11-10 Thread Neil.Lv
Maybe the Locale.setDefault(iLocale) method's scope is the whole website not for the single user ? Cheers, Neil On Nov 10, 4:16 pm, "Neil.Lv" wrote: > yk, > > But if only one person change the language ( to ms_MY). > > Then the other users of the web

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

2009-11-10 Thread Neil.Lv
ult()) > LiftRules.localeCalculator = localeCalculator _ > > On Tue, Nov 10, 2009 at 3:10 PM, Neil.Lv wrote: > > > yk, > > > About the setLocale method in the demo ( http://219.94.110.243 ) > > > 1:) First, I open the Firefox and type this link, i see

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

2009-11-09 Thread Neil.Lv
Default(iLocale) Full(iLocale) ... On Nov 10, 1:58 pm, "Neil.Lv" wrote: >Maybe it's a bug with > >It's so confused. > > Cheers, > Neil > > On Nov 10, 12:11 pm, YING-KWANG TU wrote: > > > By adding a println line in my loca

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

2009-11-09 Thread Neil.Lv
>> > UTF-8 encoding? > > >> > Thank you in advance. > > >> > Cheers, > >> > yk > > >> > On Oct 26, 9:12 pm, Timothy Perrett wrote: > > >> > > The browser already knows the locale, you have it backward! Your >

[Lift] Re: Is there a Order Map in the lift ?

2009-11-09 Thread Neil.Lv
It works now ! I use the m.toList.sort(_ < _) method to sort the result. ### scala> var m = Map(2 -> "yy", 3 -> "zz", 1-> "xx") scala> m.toList.sort(_ < _) res149: List[(Int, java.lang.String)] = List((1,xx), (2,yy), (3,zz)) ### :) C

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

2009-11-09 Thread Neil.Lv
t;1. S.??("works seamlessly") > > However, I am having same issue with you on: > > Default Value OR > Default Value OR > login > > I am not sure if it has to do with the bundle name we are using but no, we > can't get to work. > > On Sat, Nov 7, 2

[Lift] Is there a Order Map in the lift ?

2009-11-08 Thread Neil.Lv
Hi all, Is there a Order Map in the lift ? Example: 1-> "xx", 2 -> "yy", 3 -> "zz" 1:) add 1-> "xx" Map(1-> "xx") 2:) add 3 -> "zz" Map(3 -> "zz", 1-> "xx") 3:) add 2 -> "yy" Map(2 -> "yy", 3 -> "zz", 1-> "xx") The result maybe: Map(2 -> "yy", 3 -> "zz", 1-> "xx")

[Lift] How to specify the SELECT statement in the Mapper ?

2009-11-08 Thread Neil.Lv
Hi all, There is some example code: ### SELECT id, name, sex, created_at, DAYOFWEEK(created_at,) as week, (CURRENT_DATE) as t FROM users WHERE created_at > (CURRENT_DATE ) AND created_at < (CURRENT_DATE + interval 2 day) ORDER BY created_at ASC ### How can i specify the SELECT statement th

[Lift] Re: How to bind the Map to View in the Snippet ?

2009-11-08 Thread Neil.Lv
David, Thanks very much! It works now and can be shown in the page ! Cheers, Neil On Nov 9, 12:06 pm, David Pollak wrote: > On Sun, Nov 8, 2009 at 7:45 PM, Neil.Lv wrote: > > > How should i write the bind code ? > > > var data = Map(2009/10/09 -> List(

[Lift] Re: How to bind the Map to View in the Snippet ?

2009-11-08 Thread Neil.Lv
da Cheers, Neil On Nov 9, 11:35 am, Naftoli Gugenheim wrote: > That should not be foreach but flatMap. > Foreach is like map but returns Unit, and flatMap is like map but it > concatenates the resulting elements, which must be iterable (or iterators, > depending). > >

[Lift] How to bind the Map to View in the Snippet ?

2009-11-08 Thread Neil.Lv
Hi all, How to bind the Map to View in the Snippet ? This is the bind code ### scala.collection.mutable.Map[String,List[String]] = Map(2009/10/09 -> List(St1), 2009/10/10 -> List(Hello, M7, 123, da)) var data = Map(2009/10/09 -> List(St1), 2009/10/10 -> List(Hello, M7, 123, da))

[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
test.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf");"""), ### It works well in Both of them. ### var flashSrc = "/flash/test.swf" "flash" -> Text("swfobject.embedSWF('" + {f

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

2009-11-07 Thread Neil.Lv
= { bind("init", in, "flash" -> Text("""swfobject.embedSWF({flashSrc}, "myContent", "300", "120", "9.0.0", "expressInstall.swf");""") ) } } ### Cheers, Neil On Nov

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

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

[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: About the localization with lift:loc !

2009-11-07 Thread Neil.Lv
> > right content. > > > > Take a look at: > > > >http://scala-tools.org/mvnsites/liftweb-1.1-M6/lift-webkit/scaladocs/... > > > > I would start with just getting lift to explicitly set locale based on   > > > a query string or something... it

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

2009-11-07 Thread Neil.Lv
ala-tools.org/mvnsites/liftweb-1.1-M6/lift-webkit/scaladocs/... > > > I would start with just getting lift to explicitly set locale based on   > > a query string or something... it will help you understand how the   > > mechanism works. > > > Cheers, Tim > > > On 26 O

[Lift] Re: not found: Full, Empty, Box

2009-11-06 Thread Neil.Lv
Hannes, Please import the common package. It doesn't exist in the net.liftweb.util._ package now in the M7. ### import net.liftweb.common._ ### Cheers, Neil On Nov 6, 6:06 pm, Hannes wrote: > Hey Lifters, > > I just updated to scala 2.7.7 and lift 1.1-M7. Now I get the above > compilati

[Lift] Re: Lift 1.1 Milestone 7 less than 36 hours away

2009-11-03 Thread Neil.Lv
It sounds good, it's a good new for us! Congratulations , the M7 is coming ! Cheers, Neil On Nov 3, 10:05 pm, David Pollak wrote: > Folks, > > Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks > uncover). It's time for everyone to do some testing of their code

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

[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
_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: 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
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] 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: 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] 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-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] 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: 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] 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: 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] 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: 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] 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
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] 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] 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] 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] 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
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
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
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 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
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: 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] 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-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] 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] 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 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] 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 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] 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: 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] 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
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] 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
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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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] 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] 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] 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: 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] 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
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] 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: 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] 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] 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: 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] 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-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] 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

<    1   2