Re: [Lift] Idea proposal for Google Summer of Code project

2010-02-10 Thread Jeppe Nejsum Madsen
Mads Hartmann mads...@gmail.com writes: Morning everyone (it's 8am in Denmark) I would very much like to participate in Google Summer of Code 2010. I know I'm eligible to participate because I'm a student at the IT University of Copenhagen and I'm pretty sure Lift is eligible to participate

Re: [Lift] Logging error when building lift

2010-02-10 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: Does this mean I'm not up to date? Or were the tests not updated with the change to logging? No change has been made to logging yet (unless I did some git mistake, not impossible :-) But I think this is caused by the fact that lift-webkit

Re: [Lift] Idea proposal for Google Summer of Code project

2010-02-10 Thread Mads Hartmann Jensen
Thanks for the feedback :) Just read the mail by David, and I can see we also need someone who would be willing to submit Lift to GSoC - Not sure if google would find it fishy if I submitted Lift and later sumitted for the project as a student also :P If you have any ideas for the

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: At what would make sense to move around, i.e., what I should to move #257 and #258 forward. Thanks! I think those look good. In the spirit of incremental progress, I think any other changes should be on new tickets. /Jeppe -- You received

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-10 Thread Hugo Palma
Again, the only reason i raised this question it's because i was alarmed by what the wiki page about reflection snippets says: works perfectly for development / low volume deployment, however when your site starts to scale this method of snippet modeling may become undesirable. All i would like

[Lift] how to combine sequence of JsCmd in SHtml.ajaxCall?

2010-02-10 Thread wm
Hi, I have the following code: def jsF(x: String): JsCmd = { /* JsCmds.SetHtml(...) JsCmds.SetElemById(...) */ JE.JsRaw(alert('1')).cmd JE.JsRaw(alert('2'); alert('3')).cmd // last cmd } button onclick={SHtml.ajaxCall(Str(x), jsF _)._2} /button when I tried, only

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-02-10 Thread Indrajit Raychaudhuri
scalacheck_2.8.0.Beta1 used in the branch 280_port_refresh now. Tim, see if your build works on this branch now. Cheers, Indrajit On 04/02/10 12:12 PM, Indrajit Raychaudhuri wrote: Sure, I will. This would go in as regular 280_port_refresh update activity. Cheers, Indrajit On 04/02/10 3:13

[Lift] Features in Lift 2.0

2010-02-10 Thread Murtaza Rampurawala
Hi, I have been exploring lift and was interested in what new features are in/planned for lift 2.0. I havent been able to find any documentation regarding it. Can anyone guide me to it. Also what is the planned release for 2.0? Also appreciate for maintaining such a responsive mailing list.

[Lift] Re: how to combine sequence of JsCmd in SHtml.ajaxCall?

2010-02-10 Thread Marius
    (JsCmds.SetHtml(...)     JsCmds.SetElemById(...)     JE.JsRaw(alert('1'))     JE.JsRaw(alert('2'); alert('3'))).cmd Br's, Marius On Feb 10, 10:22 am, wm min...@gmail.com wrote: Hi, I have the following code:   def jsF(x: String): JsCmd = {     /*     JsCmds.SetHtml(...)    

Mixing up 2.7 and 2.8 codes inline (was Re: [Lift] Why not SHtml?)

2010-02-10 Thread Indrajit Raychaudhuri
Hey Naftoli, Man, it would be great *not to* mix up 2.7 and 2.8 codes inline. Keeping it in sync with master would get very confusing and error prone (personally I don't find that aesthetically pleasing either). In fact, with some adjustment, it's possible to have parts of code friendly

Re: [Lift] Features in Lift 2.0

2010-02-10 Thread Indrajit Raychaudhuri
Hi Murtaza, Everything since Lift 1.0 is new on Lift 2.0 [1]. There is a good chance that you'll find most as part of the changelog that we maintain. See the static version in project docs [2] or milestone-wise details in Assembla [3] (we have them since 1.1-M6 here). Cheers, Indrajit

[Lift] **IMPORTANT** **BREAKING CHANGES** lift-core is deprecated

2010-02-10 Thread Indrajit Raychaudhuri
Folks, If your project has dependency on lift-core, this is important for you! lift-core stands deprecated and Lift 2.0-M2 would be the penultimate milestone with support for lift-core. Subsequently (after the milestone 2.0-M3) it would be unsupported. lift-core is a 'meta' module that can

Re: [Lift] Comet shutdown?

2010-02-10 Thread Adam Warski
Hello, Yes, in fact there is a timespan method in CometActor. You should be using Lift 2.0-M1 or 2.0-SNAPSHOT. I'm using 2.0-SNAPSHOT: class Test extends CometActor { def render = NodeSeq.Empty override def timespan = 0 } error: method timespan overrides nothing override def timespan

Re: [Lift] Comet shutdown?

2010-02-10 Thread Indrajit Raychaudhuri
On 10/02/10 9:49 PM, David Pollak wrote: On Wed, Feb 10, 2010 at 8:13 AM, Adam Warski a...@warski.org mailto:a...@warski.org wrote: Hello, Yes, in fact there is a timespan method in CometActor. You should be using Lift 2.0-M1 or 2.0-SNAPSHOT. I'm using 2.0-SNAPSHOT:

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Naftoli Gugenheim
Interesting. What would an example where two pages in the same locale should have different values for the same key used by the same snippet? - Hugo Palmahugo.m.pa...@gmail.com wrote: I think a simple inheritance concept would work just fine. We could have:

[Lift] Binding to a Map

2010-02-10 Thread Nolan Darilek
I have a Lift app that's managing its own domain objects in a MongoDB. At one point I had an object with a list of embedded objects and all worked well. My users had many accounts, and I did something like: private def bindAccountFields(in:NodeSeq, a:Account, isNewAccount:Boolean):NodeSeq =

[Lift] serializing and deserializing a json object through Lift-JSON

2010-02-10 Thread Ali
Dear All, I am wondering would you please tell me how can I use lift-json (2.0 snapshots) to serialize and deserialize the following scala case classes. case class Plan( plan:Option[Action] ) case class Game( game:Map[String,Plan]) case class Action(id:Int, subAction : Option[Action]) val game

Re: [Lift] Make MenuBuilder generate link for current page

2010-02-10 Thread David Pollak
Unless someone objects, this works for me. On Tue, Feb 9, 2010 at 10:29 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: linkToSelf=true? (Without getting involved in the different conventions for multiple-word attributes :) ) - David

[Lift] Deploying Lift app

2010-02-10 Thread Mads Hartmann
Hello everyone I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i uploaded my entire project (uncompiled) to the server and ran mvn jetty:run - this worked fine but as soon as i killed my ssh connection the jetty server

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-10 Thread Adam Warski
All i would like is some clarification if this statement is in fact true, if not i will go on with my project happily using reflection snippets. If it is true i then would be looking for a better alternative. It is much better practice in my opinion to use an explicit dispatch. But

Re: [Lift] Deploying Lift app

2010-02-10 Thread Adam Warski
I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i uploaded my entire project (uncompiled) to the server and ran mvn jetty:run - this worked fine but as soon as i killed my ssh connection the jetty server stopped. I

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-10 Thread David Pollak
On Wed, Feb 10, 2010 at 8:57 AM, Adam Warski a...@warski.org wrote: All i would like is some clarification if this statement is in fact true, if not i will go on with my project happily using reflection snippets. If it is true i then would be looking for a better alternative. It is much

Re: [Lift] Binding to a Map

2010-02-10 Thread Naftoli Gugenheim
If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit, wrap it with NodeSeq.fromSeq(...). Also, you can do ...flatMap{case (_, account) = bindAccountFields(in, account, false)} - Nolan Darilekno...@thewordnerd.info wrote: I have a Lift

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-10 Thread Adam Warski
Please read the entire thread and the other threads that Hugo has started. Hugo is pushing on this issue (without any real basis, measurement, problems, statistics) and not letting it go. I've answered his question a number of times (using dispatch snippets is best practices [more from a

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread David Pollak
I think this idea is weak. Lift supports localized pages (e.g., index_en_US.html, index_it.html, etc.) Any page-level localization can be accomplished by writing a localized page. Any snippet-level localization can be achieved by passing localized XHTML as parameters to the snippet. Further, as

Re: [Lift] Deploying Lift app

2010-02-10 Thread Mads Hartmann Jensen
That was refreshingly easy :) Thanks a lot Mads Hartmann On 10/02/2010, at 18.00, Adam Warski wrote: I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i uploaded my entire project (uncompiled) to the server and ran

Re: [Lift] Binding to a Map

2010-02-10 Thread Nolan Darilek
On 02/10/2010 11:18 AM, Naftoli Gugenheim wrote: If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit, wrap it with NodeSeq.fromSeq(...). Also, you can do ...flatMap{case (_, account) = bindAccountFields(in, account, false)} Cool. I made the following changes, but

Re: [Lift] Comet shutdown?

2010-02-10 Thread Indrajit Raychaudhuri
Adam, As mentioned earlier, please try *lifespan* instead. def lifespan: Box[TimeSpan] is what you probably want. - Indrajit On 10/02/10 10:58 PM, Adam Warski wrote: Hello, to be extra sure I pulled the latest sources from git and recompiled. And I still get an error: error: method

Re: [Lift] Deploying Lift app

2010-02-10 Thread David Pollak
Download: http://github.com/dpp/lift-samples/blob/master/jetty_instance.tgz tar -xzvf jetty_instance.tgz Put your WAR file in jetty_instance/webapps/root.war run start_prod.sh to start-up in production mode. Change base_port to specify the port your app will run on. Change ram_size to specify

Re: [Lift] Comet shutdown?

2010-02-10 Thread Adam Warski
As mentioned earlier, please try *lifespan* instead. def lifespan: Box[TimeSpan] is what you probably want. Ah :D I thought you were correcting the type parameter in David's email, didn't notice the function name. Thanks a lot! :) -- Adam Warski http://www.warski.org

[Lift] Re: Support for page and snippet level localization

2010-02-10 Thread cody koeninger
On Feb 8, 5:07 pm, Timothy Perrett timo...@getintheloop.eu wrote: Generally I find that to be only of use when needed specific adjustments to templates. For instance, english vs german... the german language is significantly more verbose so requires different div heights etc sometimes. Its

Re: [Lift] Binding to a Map

2010-02-10 Thread David Pollak
On Wed, Feb 10, 2010 at 9:29 AM, Nolan Darilek no...@thewordnerd.infowrote: On 02/10/2010 11:18 AM, Naftoli Gugenheim wrote: If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit, wrap it with NodeSeq.fromSeq(...). Also, you can do ...flatMap{case (_, account) =

Re: [Lift] serializing and deserializing a json object through Lift-JSON

2010-02-10 Thread Justin Reardon
Sometimes the serialization code needs a helping hand, using: implicit val format = Serialization.formats(ShortTypeHints(List(classOf[Plan], classOf[Action], classOf[Game]))) instead of the defaults makes it work here. Cheers, Justin Reardon On 2010-02-10, at 11:42 , Ali wrote:

[Lift] Re: Welcome javier Goday to the Lift committers

2010-02-10 Thread Javier Goday
Hi, thanks all, i was reading http://wiki.github.com/dpp/liftweb/committer-process-tips-and-tricks and made a patch for the lift-ldap module to include in http://reviewboard.liftweb.net/ . Just a silly question, How can i get an username for reviewboard ? Thanks ! -- You received this

Re: [Lift] Binding to a Map

2010-02-10 Thread Naftoli Gugenheim
I mean to wrap the whole flatMap: case false = NodeSeq.fromSeq(user.accounts.flatMap... - Nolan Darilekno...@thewordnerd.info wrote: On 02/10/2010 11:18 AM, Naftoli Gugenheim wrote: If adding .toSeq or a : NodeSeq type annotation don't trigger the implicit,

Re: [Lift] Re: Snippet with no reflection an no massive case statement

2010-02-10 Thread Hugo Palma
I don't understand why people are being so aggressive on this list, i'm just looking to understand how Lift works and i think it's normal to have questions that many people here maybe will find that don't really make sense. Still, i think i've been able to structure my questions fairly well and

Re: [Lift] Binding to a Map

2010-02-10 Thread Nolan Darilek
On 02/10/2010 12:00 PM, Naftoli Gugenheim wrote: I mean to wrap the whole flatMap: case false = NodeSeq.fromSeq(user.accounts.flatMap... Gotcha. I now have: case false = NodeSeq.fromSeq( user.accounts.flatMap({ case (_, account) = bindAccountFields(in,

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Hugo Palma
I'm not sure i understand your solution, so your build process find an index.html and replaces all the text there to all the languages and creates the appropriate index_lang.html file ? If so, where do you keep the translated text at dev time ? Is it still on resource bundles ? On Wed, Feb 10,

Re: [Lift] Re: Support for page and snippet level localization

2010-02-10 Thread Hugo Palma
On Wed, Feb 10, 2010 at 17:28, David Pollak feeder.of.the.be...@gmail.comwrote: I think this idea is weak. Lift supports localized pages (e.g., index_en_US.html, index_it.html, etc.) Any page-level localization can be accomplished by writing a localized page. Any snippet-level localization

[Lift] Re: Netty integration

2010-02-10 Thread Marius
Nick did you happen to make some progress on this? Are you still working on it ? Br's, Marius On 27 ian., 14:54, nick n...@glynnreeves.plus.com wrote: I'm just about to try and do aNettyintegration, which I might be able to contribute back. Searching the group I deduce that this is possible

[Lift] Re: Welcome javier Goday to the Lift committers

2010-02-10 Thread Marius
WELCOME ! On 9 feb., 18:09, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming Javier Goday to the Lift committers.  Javier wrote the Lift LDAP module and now that he's a committer, he can make the LDAP module part of the official Lift distribution (and the

Re: [Lift] Re: Facebook Application

2010-02-10 Thread Jonathan Hoffman
With connect you can also get a client: for (client - FacebookConnect.client){ client !? ... } On Feb 9, 2010, at 8:56 AM, Leo Lännenmäki wrote: Hi, I'll definitely take a look. But I think FB connect is not applicable for our use.. Here a simple version of the use: - We have

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Naftoli Gugenheim
So are you saying to leave buildSetFromString pointing to Helpers.toDate for the time being? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: At what would make sense to move around, i.e., what I should to move

Re: [Lift] Deploying Lift app

2010-02-10 Thread Jeppe Nejsum Madsen
Mads Hartmann mads...@gmail.com writes: Hello everyone I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i uploaded my entire project (uncompiled) to the server and ran mvn jetty:run - this worked fine but as soon as

Re: [Lift] Deploying Lift app

2010-02-10 Thread Naftoli Gugenheim
What OS is on the server? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Mads Hartmann mads...@gmail.com writes: Hello everyone I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i

[Lift] Testing local archetypes?

2010-02-10 Thread Jeppe Nejsum Madsen
Quick question: I'm updating archetypes, how can I test them locally? /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Naftoli Gugenheim
Don't understand the question. mvn test? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Quick question: I'm updating archetypes, how can I test them locally? /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Jeppe Nejsum Madsen
On Wed, Feb 10, 2010 at 9:21 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Don't understand the question. mvn test? I've modified the archetypes in my local Git repo. How can I create a new project based on the modified archetypes? /Jeppe -- You received this message because you are

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Ross Mellgren
Shouldn't: cd archetypes; mvn clean install mvn archetype:generate -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.0-SNAPSHOT work, since clean install will install in your local repo? -Ross On Feb 10, 2010, at 3:22 PM, Jeppe Nejsum Madsen

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Naftoli Gugenheim
I think just mvn install from its directory (or archetypes directory). - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Wed, Feb 10, 2010 at 9:21 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Don't understand the question. mvn test? I've modified the

[Lift] Re: Deploying Lift app

2010-02-10 Thread Mads Hartmann
It's Debian, but I think I have enough information to go on now ;) Thanks everyone, Mads Hartmann On Feb 10, 9:16 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: What OS is on the server? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Mads Hartmann

Re: [Lift] Testing local archetypes?

2010-02-10 Thread Jeppe Nejsum Madsen
On Wed, Feb 10, 2010 at 9:24 PM, Ross Mellgren dri...@gmail.com wrote: Shouldn't: cd archetypes; mvn clean install mvn archetype:generate -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.0-SNAPSHOT work, since clean install will install in your

Re: [Lift] Url Rewriting Extractors - Inheritance? Composition?

2010-02-10 Thread David Pollak
On Mon, Feb 8, 2010 at 7:13 PM, Alex Black a...@alexblack.ca wrote: Has anyone found a good pattern/method of re-using Url Rewriting extractors? I've got a url like this: /products/manufacturer/productId And an extractor for that, that given a product gives you a URL (apply) and given a

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Jeppe Nejsum Madsen
On Wed, Feb 10, 2010 at 9:02 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: So are you saying to leave buildSetFromString pointing to Helpers.toDate for the time being? I'm not sure I follow? I can't find buildSetFromString (in master) anywhere and the setFromAny that covers string seem to

[Lift] Maven problem in archetypes

2010-02-10 Thread Jeppe Nejsum Madsen
(Man, I'm learning more Maven than I ever imagined I could survive :-( I'm trying to update the archetypes for the Slf4j fix. A problem with the JPA ones is that hibernate includes an old version of slf4j-api. So (after variable substitution) I add following to fix to the version we use in

[Lift] Re: Support for page and snippet level localization

2010-02-10 Thread cody koeninger
On Feb 10, 12:11 pm, Hugo Palma hugo.m.pa...@gmail.com wrote: I'm not sure i understand your solution, so your build process find an index.html and replaces all the text there to all the languages and creates the appropriate index_lang.html file ? Yes May seem like a hack, but on the other

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Naftoli Gugenheim
Sorry, type: I was referring to this: def buildSetActualValue(accessor: Method, v: AnyRef, columnName: String): (T, AnyRef) = Unit = (inst, v) = doField(inst, accessor, {case f: MappedDate[_] = f.st (toDate(v))}) def buildSetLongValue(accessor: Method, columnName: String): (T, Long,

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Naftoli Gugenheim
In Mapped(Date)(Time) And 'type' was also a typo. :) On Wed, Feb 10, 2010 at 5:21 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Sorry, type: I was referring to this: def buildSetActualValue(accessor: Method, v: AnyRef, columnName: String): (T, AnyRef) = Unit = (inst, v) =

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Jeppe Nejsum Madsen
Ahh ok. It's getting late and I'm perhaps not thinking straight but I think TimeHelpers.toDate should go through ConversionRules. This may cause circular deps etc. in which case I think buildSetStringValue should go through ConversionRules. I don't know mapper internals good enough to really see

[Lift] JsonHandler capturing state from enclosing snippet

2010-02-10 Thread ced
Hi everybody, I'm having a JsonHandler object inside a snippet and I want to access some vals from to enclosing snippet. But unfortunately this doesn't work, because it seems that there is just one single instance per session and class name maintained by Lift. Having a fresh handler per snippet

Re: [Lift] Mapped(Date)(Time) formatter/parser

2010-02-10 Thread Naftoli Gugenheim
- Until now there were two places in Mapped(Date)(Time) where parsing occurred. setFromAny used LiftRules.parseDate, while buildSetStringValue etc. used TimeHelpers.toDate. - Do we need methods like setFromAny and TimeHelpers.toDate, which take an Any and pattern match on several types of

Re: [Lift] JsonHandler capturing state from enclosing snippet

2010-02-10 Thread David Pollak
On Wed, Feb 10, 2010 at 2:47 PM, ced docpom...@googlemail.com wrote: Hi everybody, I'm having a JsonHandler object inside a snippet and I want to access some vals from to enclosing snippet. But unfortunately this doesn't work, because it seems that there is just one single instance per

[Lift] Enumeration.Value versus Enumeration#Value

2010-02-10 Thread Strom
What's the difference between Enumeration.Value and Enumeration#Value? I'm getting a type mismatch error: [INFO] found : com.test.States#Value [INFO] required: com.test.States.Value When trying to set the Enumeration via a form. Basically, I have a mapper object, Address, that has a

[Lift] lifecycle callbacks in record

2010-02-10 Thread harryh
Can anyone give me an example of how to implement a lifecycle callback in record? I can't, for the life of me, get it to work. Nor does there appear to be any documentation at all :( -harryh -- You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] how to set boolean (non-string) value in NodeSeq?

2010-02-10 Thread wm
def seq(): NodeSeq = { button disabled=true /button } it errors out: error: in XML literal: ' or delimited attribute value or '{' scala- expr '}' expected 0 doesn't work either, only string is accepted. Why is there such a restriction? any workaround? Thanks. -- You received

[Lift] Re: Enumeration.Value versus Enumeration#Value

2010-02-10 Thread edgarchan
i recomend this papper http://lampwww.epfl.ch/~odersky/papers/ScalableComponent.pdf On Feb 10, 7:32 pm, Strom strommo...@gmail.com wrote: What's the difference between Enumeration.Value and Enumeration#Value? I'm getting a type mismatch error: [INFO]  found   : com.test.States#Value [INFO]

[Lift] Re: how to set boolean (non-string) value in NodeSeq?

2010-02-10 Thread harryh
Do it XML style: button disabled=disabled /button On Feb 10, 10:56 pm, wm min...@gmail.com wrote: def seq(): NodeSeq = {       button disabled=true       /button   } it errors out: error: in XML literal: ' or delimited attribute value or '{' scala- expr '}' expected 0 doesn't work

[Lift] Re: how to set boolean (non-string) value in NodeSeq?

2010-02-10 Thread wm
Do it XML style: button disabled=disabled /button The problem is even after setting disabled= (empty string), it's still treated as true; I found it behave as expected only when setting it to boolean true/false. -- You received this message because you are subscribed to the Google Groups

Re: [Lift] Enumeration.Value versus Enumeration#Value

2010-02-10 Thread Naftoli Gugenheim
. means a member of a value. # means a member of a type. On Wed, Feb 10, 2010 at 8:32 PM, Strom strommo...@gmail.com wrote: What's the difference between Enumeration.Value and Enumeration#Value? I'm getting a type mismatch error: [INFO] found : com.test.States#Value [INFO] required:

[Lift] Re: Enumeration.Value versus Enumeration#Value

2010-02-10 Thread edgarchan
and it seems we are getting the type and not the value try Full(States(address.state.toInt)) On Feb 10, 7:32 pm, Strom strommo...@gmail.com wrote: What's the difference between Enumeration.Value and Enumeration#Value? I'm getting a type mismatch error: [INFO]  found   :

Re: [Lift] Re: Enumeration.Value versus Enumeration#Value

2010-02-10 Thread Christophe Dehlinger
Have you tried forcing the type parameters in your MappedEnum declaration ? Like this: object state extends MappedEnum[Address, States.type](this, States) On Thu, Feb 11, 2010 at 6:30 AM, edgarchan edgarchancarri...@gmail.comwrote: and it seems we are getting the type and not the value try

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-10 Thread Joni Freeman
Hi, Type hints should not be needed in this case since the Map is not used in a polymorphic way. But the work-around Justin showed should work. Actually it seems that it is enough to put type info just to Action to make serialization work: implicit val format =