Re: [Lift] Re: [Lift committers] A Groovy welcome to James Strachan who has joined the Lift committers

2010-02-08 Thread Xuefeng Wu
I'm looking forward it. On Tue, Feb 9, 2010 at 1:27 AM, James Strachan james.strac...@gmail.comwrote: On 8 February 2010 17:16, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'm wicked pleased that James Strachan has joined the Lift committers. I'm looking forward to the

Re: [Lift] Re: How do I go about implementing my own auth?

2009-12-24 Thread Xuefeng Wu
24, 6:54 am, Xuefeng Wu ben...@gmail.com wrote: Could SiteMap authorize the editable text? I use swappable some where and do not know how to authorize it. On Tue, Dec 8, 2009 at 5:38 AM, Marius marius.dan...@gmail.com wrote: I'm not really sure why you're saying that SiteMap is out

[Lift] Handle Exception

2009-12-24 Thread Xuefeng Wu
Hi, I have a question about exception handle in Lift. *How could I pop a error dialog except redirect?* * * *Lift have LiftRules.exceptionHandler.prepend to handle exception.* LiftRules.exceptionHandler.prepend { case (mode, state, ex) = RedirectResponse(/error) // how could I pop a

Re: [Lift] Re: Handle Exception

2009-12-24 Thread Xuefeng Wu
from the exception itself or by some other means. Br's, Marius On Dec 24, 11:15 am, Xuefeng Wu ben...@gmail.com wrote: Hi, I have a question about exception handle in Lift. *How could I pop a error dialog except redirect?* * * *Lift have LiftRules.exceptionHandler.prepend

Re: [Lift] Re: How do I go about implementing my own auth?

2009-12-23 Thread Xuefeng Wu
Could SiteMap authorize the editable text? I use swappable some where and do not know how to authorize it. On Tue, Dec 8, 2009 at 5:38 AM, Marius marius.dan...@gmail.com wrote: I'm not really sure why you're saying that SiteMap is out of the question. Note that SiteMap does NOT equate with

Re: [Lift] Sitemap - rendering title attributes for the links

2009-12-21 Thread Xuefeng Wu
You could add MetaData 'title' by Elem 's method '%' a href=linksome page/a % (title - what will happen when you click on this link) or use { } a href=link title={myLinkTitle}some page/a On Mon, Dec 21, 2009 at 10:38 PM, Alex Black a...@alexblack.ca wrote: Can someone point me in the right

Re: [Lift] Re: Catch file upload exceptions?

2009-12-21 Thread Xuefeng Wu
It's good way to handle exception. And I think it's better that it could pop dialog to tell users what's wrong. http://www.mail-archive.com/liftweb@googlegroups.com/msg03001.html http://wiki.liftweb.net/index.php/HowTo_use_error_pages On Tue, Dec 22, 2009 at 5:52 AM, Marius

Re: [Lift] 280_port and yuicompressor problem

2009-12-21 Thread Xuefeng Wu
If you google [yuicompressor:compress {execution: default}] would find so many information about this. It's not caused by scala2.8 or lift. On Tue, Dec 22, 2009 at 9:10 AM, Alan M alan.morten...@gmail.com wrote: I just recently started tinkering around with 2.8.. actually a recent upgrade of

Re: [Lift] Re: Sitemap - rendering title attributes for the links

2009-12-21 Thread Xuefeng Wu
Sorry I misunderstand you. And I do not know how to too. Maybe you should use lispan title=about this sitelift:Menu.item name=about//span/li instead of lift:Menu.builder / On Tue, Dec 22, 2009 at 11:29 AM, Alex Black a...@alexblack.ca wrote: Hi Xuefeng, I'm using the default Lift Sitemap,

Re: [Lift] **Important** Announcing the Lift 2.0 branch

2009-12-20 Thread Xuefeng Wu
Why not release Lift2.0 with Scala2.8? On Mon, Dec 21, 2009 at 3:34 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Okay Folks, Lift 2.0 branch has shaped up enough for everybody to play with. Checkout the branch irc_wip_lift20 and get going! Just be aware that it's still undergoing

Re: [Lift] Re: **Important** Announcing the Lift 2.0 branch

2009-12-20 Thread Xuefeng Wu
what's the different between Lift2.0 and Lift1.1? On Mon, Dec 21, 2009 at 9:31 AM, Randinn rand...@gmail.com wrote: Why not with 2.8 just going to beta 2.0 my estimation is that 2.0 will be finished before On Dec 21, 12:03 pm, Xuefeng Wu ben...@gmail.com wrote: Why not release Lift2.0

Re: [Lift] Re: **Important** Announcing the Lift 2.0 branch

2009-12-20 Thread Xuefeng Wu
at this thread: http://groups.google.com/group/liftweb/browse_thread/thread/479edef7700ccce6 . Cheers, Indrajit On 21/12/09 8:22 AM, Xuefeng Wu wrote: I mean that lift1.1 and lift2.0 may have the same futures, But lift1.1 is for Scala2.7 and lift2.0 is for Scala2.8. With Scala2.8 stable

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Xuefeng Wu
, Dec 3, 2009 at 12:40 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, When I use ModalDialog I want to setup the css but fail, My code would be: ModalDialog(someHtml, top: '10px') I found the ModalDialog code at Lift: class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd { val

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Xuefeng Wu
OK, I found the JsObj is useful, Thanks. On Thu, Dec 17, 2009 at 5:28 PM, Xuefeng Wu ben...@gmail.com wrote: Hi Alex, I found new ModalDialog(html: NodeSeq, css: Box[JsObj]), the parameter 'css' type is JsObj instead of String. Could you tell me the reason? I'm working on a customer

Re: [Lift] Re: Mapper - JObject bridge

2009-12-16 Thread Xuefeng Wu
): A = buildFromJson(parse (json).asInstanceOf[JObject]) Cheers Joni On 16 joulu, 09:03, Xuefeng Wu ben...@gmail.com wrote: Hi, I add two method to en/decode JObject/String def encodeAsJsonString(in: A): String = Printer.compact(JsonAST.render(encodeAsJson(in))) def buildFromJsonString(json

Re: [Lift] [ANN] Lift 1.1-M8

2009-12-16 Thread Xuefeng Wu
anyone will add the source.jar? On Wed, Dec 16, 2009 at 3:33 AM, Jim McBeath goo...@j.jimmc.org wrote: It looks like the source jars are missing from the M8 repository, at least for some of the libraries (for example, http://scala-tools.org/repo-releases/net/liftweb/lift-util/1.1-M8/). Are

[Lift] How to revert json to lift model?

2009-12-15 Thread Xuefeng Wu
Hi, I store the lift model to json, but cannot revert json to lift model, any idea? For example: My model: class Book extends LongKeyedMapper[Book] with IdPK{ def getSingleton = Book object name extends MappedPoliteString(this, 125) object desc extends MappedTextarea(this, 1320) }

Re: [Lift] Mapper - JObject bridge

2009-12-15 Thread Xuefeng Wu
Hi, I add two method to en/decode JObject/String def encodeAsJsonString(in: A): String = Printer.compact(JsonAST.render(encodeAsJson(in))) def buildFromJsonString(json: String): A = buildFromJson(JsonParser.parse(json).asInstanceOf[JsonAST.JObject]) Do there have better way? On Thu, Dec 3,

Re: [Lift] Re: Lift and LDAP

2009-12-10 Thread Xuefeng Wu
I write a CAS SSO proxy, it's so easy if anyone read this article http://www.ja-sig.org/wiki/display/CAS/Proxy+CAS+Walkthroughand It's java way for lack of IO in Scala. On Tue, Dec 1, 2009 at 9:18 AM, Xuefeng Wu ben...@gmail.com wrote: Thank you for your reply and I will try. On Mon, Nov 30

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Xuefeng Wu
. - Philippe On Tue, Dec 8, 2009 at 2:26 PM, Xuefeng Wu ben...@gmail.com wrote: I think It's better I could configure it, but not code every where. On Tue, Dec 8, 2009 at 9:23 PM, Marius marius.dan...@gmail.com wrote: Yes you need to send down fadeOut... call def myFunc: JsCmd

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Xuefeng Wu
down fadeOut... call def myFunc: JsCmd = { // do some DB stuff vmyMapper.validate match { case Nil = Noop case xs = S.error(xs); fadeOutErrors(5 seconds, 1 second) } } On Dec 8, 3:01 pm, Xuefeng Wu ben...@gmail.com wrote: Yes, I do something like // do the DB stuff

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread Xuefeng Wu
...@gmail.com wrote: On Mon, Dec 7, 2009 at 9:14 PM, Xuefeng Wu ben...@gmail.com wrote: Hi David Ross, Thank you for your help, I understand RequestVar now, which muse be used in the same request. My case is that I have a tree and a separate button. When use click the tree node, the separate

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread Xuefeng Wu
That's great! Thank you for your help. On Thu, Dec 10, 2009 at 11:06 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 9, 2009 at 5:35 PM, Xuefeng Wu ben...@gmail.com wrote: doCompetenceB render a button which user click and will pop a dialog for create a competence

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-08 Thread Xuefeng Wu
, 1 second) } Br's, Marius On Dec 8, 10:53 am, Xuefeng Wu ben...@gmail.com wrote: But I use field validate, the notice and error are wrap by lift. Should I append fadeOutErrors(5 seconds, 1 second)? On Tue, Dec 8, 2009 at 4:50 PM, Marius marius.dan...@gmail.com wrote: You don't

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-08 Thread Xuefeng Wu
= S.error(xs); fadeOutErrors(5 seconds, 1 second) } } On Dec 8, 3:01 pm, Xuefeng Wu ben...@gmail.com wrote: Yes, I do something like // do the DB stuff vmyMapper.validate match { case Nil = case xs = S.error(xs) } But I should always add fadeOutErrors(5 seconds, 1 second)? I

Re: [Lift] lift-stamped - Traits for logging changes MetaMapper-Records

2009-12-08 Thread Xuefeng Wu
That's great! What's more, I'm not sure whether every model need creator/createDate,lastUpdator/lastUpdateDate? I want to have a Action Log, which could record user activities. Any model change history or change object could restore from action log Did any one do something about this? On Wed,

Re: [Lift] seeing JVM BUG(s) - cancelling interestOps==0

2009-12-07 Thread Xuefeng Wu
Hi David, Thank you for your reply. On Mon, Dec 7, 2009 at 2:27 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Sun, Dec 6, 2009 at 10:21 PM, Xuefeng Wu ben...@gmail.com wrote: Hi, I always find the information from console: seeing JVM BUG(s) - cancelling interestOps==0

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
Hi , When I use RequestVar get the message: RequestVar ... was set but not read My code like this: object MyMgr { ... Loc.Snippet(myFoo,myFoo) ... object myId extends RequestVar[Long](0) def myFoo(xhtml: NodeSeq): NodeSeq = { def selectNode = {

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
, or code refactoring that made it unused, or something.) I think it'll go away if you access the variable somewhere using myId.is. -Ross On Dec 7, 2009, at 9:02 PM, Xuefeng Wu wrote: Hi , When I use RequestVar get the message: RequestVar ... was set but not read My code like this: object

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
myId.is did the log message go away? If not, could you post your code? -Ross On Dec 7, 2009, at 9:39 PM, Xuefeng Wu wrote: I use myId.is but get nothing. I don't know what I could do with the information. On Tue, Dec 8, 2009 at 10:19 AM, Ross Mellgren dri...@gmail.com wrote: I think

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
is called. If you are still getting the message, then that should mean that you are not calling myVar.is in the same request. HTH, -Ross On Dec 7, 2009, at 10:28 PM, Xuefeng Wu wrote: My code : object CompetenceMgr { Menu(Loc(Competence, List(competence, index), S.?(Competence

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
My current solution is that when user select a tree node, I replace the add button dependence on the node. 2009/12/8 Xuefeng Wu ben...@gmail.com Hi Ross, Yes it's not in the same request. My case is: When user select a tree node, I want to store this nodeId and If user click a button

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread Xuefeng Wu
use click the tree node and it worked. I don't want to use session and I think it's better not replace the button. But I don't have idea how to do. On Tue, Dec 8, 2009 at 12:49 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Dec 7, 2009 at 8:46 PM, Xuefeng Wu ben...@gmail.com

Re: [Lift] Re: Fwd: Watch Foursquare Lift talk live from NY

2009-12-07 Thread Xuefeng Wu
6:30 p.m. the time zone is -8:00? On Tue, Dec 8, 2009 at 12:58 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Dec 7, 2009 at 8:50 PM, Mateo Barraza mateo.barr...@gmail.comwrote: I can't seem to be able to download the talk. Anyone else having problems? Yeah... n8han's

[Lift] highlight the lift notices in some seconds

2009-12-07 Thread Xuefeng Wu
Hi, I want to highlight the lift notice and it will hide when timeout. Should I code every request or only to config lift some where? For example: When use put items into the shopping cart, highlight the items some seconds to notice the user. -- Scala中文社区:

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-07 Thread Xuefeng Wu
are using Ajax, notices could easily fade out. Br's, Marius On Dec 8, 8:02 am, Xuefeng Wu ben...@gmail.com wrote: Hi, I want to highlight the lift notice and it will hide when timeout. Should I code every request or only to config lift some where? For example: When use put items

[Lift] seeing JVM BUG(s) - cancelling interestOps==0

2009-12-06 Thread Xuefeng Wu
Hi, I always find the information from console: seeing JVM BUG(s) - cancelling interestOps==0 What's the reason? I use jetty 6.1.21, and I'm afraid it will cause serious error if I deploy the liftweb app in IBM WAS(WebSphere App Server) -- Scala中文社区: http://groups.google.com/group/scalacn

[Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Xuefeng Wu
Hi, When I use ModalDialog I want to setup the css but fail, My code would be: ModalDialog(someHtml, top: '10px') I found the ModalDialog code at Lift: class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd { val toJsCmd = jQuery.blockUI({ message: +

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-03 Thread Xuefeng Wu
http://github.com/dpp/liftweb/issues/#issue/218 Thanks On Thu, Dec 3, 2009 at 10:37 PM, Alex Boisvert alex.boisv...@gmail.comwrote: On Thu, Dec 3, 2009 at 12:40 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, When I use ModalDialog I want to setup the css but fail, My code would

Re: [Lift] Re: Lift and LDAP

2009-11-30 Thread Xuefeng Wu
be too difficult to implement within your own application. Cheers, Tim On Nov 30, 7:41 am, Xuefeng Wu ben...@gmail.com wrote: Such ashttp://code.google.com/p/rubycas-client/This CAS client library is designed to work easily with Rails. I need a CAS SSO library with Rails. Thanks

Re: [Lift] Re: Lift and LDAP

2009-11-29 Thread Xuefeng Wu
On 28 Nov 2009, at 03:20, Xuefeng Wu wrote: Did anyone try to integrate with SSO? On Sat, Nov 28, 2009 at 12:37 AM, Marcin Jurczuk mjurc...@gmail.com wrote: That is amazing :) Probably I will need to bind to AD in near future, so this module is like fallen from heavens :) On 27

Re: [Lift] Re: Lift and LDAP

2009-11-27 Thread Xuefeng Wu
Did anyone try to integrate with SSO? On Sat, Nov 28, 2009 at 12:37 AM, Marcin Jurczuk mjurc...@gmail.com wrote: That is amazing :) Probably I will need to bind to AD in near future, so this module is like fallen from heavens :) On 27 Lis, 15:11, TylerWeir tyler.w...@gmail.com wrote:

[Lift] How to use TestRunner

2009-11-20 Thread Xuefeng Wu
Hello, I'm working on lift testkit 1.1-M7 and want to write unit test. I didn't find ReportFailure, TestKit at testing but found TestRunner when use TestFramework. I think it's interesting for mocking DB and web server, but I couldn't find any help. Could anyone explain it and give a demo how

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Xuefeng Wu
Jetty is the better if you use Comet which support jetty with Continuations. On Fri, Nov 20, 2009 at 9:35 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I have a silly question about the deploy. Which web container is recommended to use to deploy the Lift app ? Jetty or Tomcat ? I want

[Lift] Re: Novell Pulse, front end by Lift

2009-11-16 Thread Xuefeng Wu
awesome, There's no flash? On Nov 11, 2:14 pm, David LaPalomento dlapalome...@gmail.com wrote: I'm glad to hear you like what you've seen so far with Pulse!  I don't think we could do half the stuff we're doing without Lift backing us up.  Stay tuned, we'll have more than a video to share

[Lift] Re: How can call server 'ajax' function by my ajax code?

2009-10-30 Thread Xuefeng Wu
Sorry, Could you demo this? On Oct 30, 3:10 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Xuefeng Wu ben...@gmail.com writes: Or can I register   ajax event at server side? On Oct 30, 10:24 am, Xuefeng Wu ben...@gmail.com wrote: Hi, There're many ajax* control in SHtml

[Lift] Re: How can call server 'ajax' function by my ajax code?

2009-10-30 Thread Xuefeng Wu
wrote: Xuefeng Wu ben...@gmail.com writes: Or can I register   ajax event at server side? On Oct 30, 10:24 am, Xuefeng Wu ben...@gmail.com wrote: Hi, There're many ajax* control in SHtml such as ajaxButton and they can call server function by 'liftAjax.lift_ajaxHandler

[Lift] Re: How can call server 'ajax' function by my ajax code?

2009-10-30 Thread Xuefeng Wu
...@ingolfs.dk wrote: Xuefeng Wu ben...@gmail.com writes: Or can I register   ajax event at server side? On Oct 30, 10:24 am, Xuefeng Wu ben...@gmail.com wrote: Hi, There're many ajax* control in SHtml such as ajaxButton and they can call server function by 'liftAjax.lift_ajaxHandler

[Lift] Re: How can call server 'ajax' function by my ajax code?

2009-10-30 Thread Xuefeng Wu
Thank you Jeppe, It's great. On Oct 31, 3:28 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Xuefeng Wu ben...@gmail.com writes: I want call function on the server side form client. such as: HTML client: $.(#myLink).click(function{     //call server function }); Server side

[Lift] How can call server 'ajax' function by my ajax code?

2009-10-29 Thread Xuefeng Wu
Hi, There're many ajax* control in SHtml such as ajaxButton and they can call server function by 'liftAjax.lift_ajaxHandler (F900890988391MRF=true, null, null, null); return false;' directly. My question is that how could I call server 'ajax' function by my ajax code? How could I know the

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

2009-10-29 Thread Xuefeng Wu
Menu(Loc(addBk2, List(edit_book), Edit 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)) :: On Oct 30, 9:40 am, Neil.Lv

[Lift] Re: How can call server 'ajax' function by my ajax code?

2009-10-29 Thread Xuefeng Wu
Or can I register ajax event at server side? On Oct 30, 10:24 am, Xuefeng Wu ben...@gmail.com wrote: Hi, There're many ajax* control in SHtml such as ajaxButton and they can call server function by 'liftAjax.lift_ajaxHandler (F900890988391MRF=true, null, null, null); return false

[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