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, 2009 at 5:15 AM, David Pollak
wrote:

> Folks (HarryH -- this means you),
>
> I've just checked in code on the dpp_issue_213 that does Mapper <-> JObject
> bridging using the awesome lift-json library.
>
> The methods on MetaMapper:
> protected def encodeAsJSON_! (toEncode: A): JsonAST.JObject
> protected def decodeFromJSON_!(json: JsonAST.JObject): A
>
> Implement the bridge.  They are protected and have a _! in their name
> because they are *dangerous* in that data can be exposed on the JSON object
> that you might not want exposed and these methods should be used with
> extreme caution.
>
> An example of usage can be found in the MapperSpecs:
>
> object SampleModel extends SampleModel with KeyedMetaMapper[Long,
> SampleModel] {
>   def encodeAsJson(in: SampleModel): JsonAST.JObject = encodeAsJSON_!(in)
>   def buildFromJson(json: JsonAST.JObject): SampleModel =
> decodeFromJSON_!(json)
> }
>
> class SampleModel extends KeyedMapper[Long, SampleModel] {
>   def getSingleton = SampleModel // what's the "meta" server
>   def primaryKeyField = id
>
>   object id extends MappedLongIndex(this)
>   object firstName extends MappedString(this, 32)
>   object moose extends MappedNullableLong(this)
>   object notNull extends MappedString(this, 32) {
> override def dbNotNull_? = true
>   }
>
>   def encodeAsJson(): JsonAST.JObject = SampleModel.encodeAsJson(this)
> }
>
>
> So, you can use this mechanism to serialize a Mapper object to JSON, shovel
> the object into memcached and then pull it out, mutate a field and save the
> object back to the database (although connection identifier is lost, so if
> you are sharding your database, this will not work).
>
> Please give it a try, give me feedback.  I'll put it on review board
> tomorrow after any feedback and get it into Lift.
>
> Thanks,
>
> David
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> --
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Scala中文社区:  http://groups.google.com/group/scalacn

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] load testing a lift application

2009-12-15 Thread jack
I need to load test my site. It uses Comet. I am trying JMeter but I'm
not sure if it will work with Comet. The application I am testing is
basically a search engine that returns results via Comet.
What is a good tool to load and stress test this?

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: error locating template/main

2009-12-15 Thread jack
never mind :)

On Dec 16, 1:09 am, jack  wrote:
> Without changing any code, I just got this error. The template main is
> where it always was. Any ideas?
>
> Error locating template/main.
> Message::1:6: < expected
>
> scala.xml.dtd.ValidationException: :1:6: <
> expectednet.liftweb.util.PCDataXmlParser.reportSyntaxError
> (PCDataMarkupParser.scala:169)
> scala.xml.parsing.MarkupParser$class.reportSyntaxError
> (MarkupParser.scala:1117)
> net.liftweb.util.PCDataXmlParser.reportSyntaxError
> (PCDataMarkupParser.scala:92)
> scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala:186)
> net.liftweb.util.PCDataXmlParser.document(PCDataMarkupParser.scala:92)
> etc

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] error locating template/main

2009-12-15 Thread jack
Without changing any code, I just got this error. The template main is
where it always was. Any ideas?

Error locating template/main.
Message::1:6: < expected

scala.xml.dtd.ValidationException: :1:6: <
expectednet.liftweb.util.PCDataXmlParser.reportSyntaxError
(PCDataMarkupParser.scala:169)
scala.xml.parsing.MarkupParser$class.reportSyntaxError
(MarkupParser.scala:1117)
net.liftweb.util.PCDataXmlParser.reportSyntaxError
(PCDataMarkupParser.scala:92)
scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala:186)
net.liftweb.util.PCDataXmlParser.document(PCDataMarkupParser.scala:92)
etc

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Documentation

2009-12-15 Thread Randinn
I also suggest possibly looking at http://www.scala-lang.org/node/104
and http://www.naildrivin5.com/scalatour might help a bit.

Also working on the tuts at http://www.simplyscala.com/ are nice as
you can see them in action.

On Dec 16, 3:05 am, Daniel  wrote:
> Hey,
>
> I'm new to both Scala and Lift, but I don't have any professional Java
> experience. It seems that all of the documentation available for Lift
> is aimed at folks who have considerable professional experience with
> Java already. Is there any documentation available aimed for people
> like me who don't have very much Java enterprise experience (I'm a
> student)?
>
> I find that the Django and Rails documentation is very helpful, while
> Lift's is somewhat impenetrable. Are there any plans to improve the
> Lift documentation? It's the major obstacle preventing my adoption of
> this otherwise impressive framework.
>
> Thanks,
> Daniel

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 7:33 PM, Ross Mellgren  wrote:

> On Dec 15, 2009, at 10:23 PM, David Pollak wrote:
>
> On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett 
> wrote:
>
>> Should this be fixed? Or is the more helpful answer 'Don't use
>> MySQL'? ;-)
>>
>
> I would use MySQL for a production site.
>
>
> Did you mean "wouldn't"?
>

Yes, I meant wouldn't


>
> -Ross
>
>  --
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread Ross Mellgren
On Dec 15, 2009, at 10:23 PM, David Pollak wrote:
> On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett  
> wrote:
> Should this be fixed? Or is the more helpful answer 'Don't use
> MySQL'? ;-)
> 
> I would use MySQL for a production site.

Did you mean "wouldn't"?

-Ross

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: partialUpdate and bind

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 5:49 PM, Peter Robinett wrote:

> Thanks, David. In my case I want to update a Flot graph and some text
> boxes with new information. Since they have their source data in
> common, it seems to me it would be most efficient to update the two
> parts of the page simultaneously via a partialUpdate. Is this
> reasonable or am I abusing partialUpdate?
>

So, send the SetHtml and whatever flot update code all in one partial
update.


>
> Peter
>
> On Dec 15, 4:52 pm, David Pollak 
> wrote:
> > You can use PartialUpdate and bind() if you are doing a
> > SetHtml("id_of_thing_to_update", bind(...))
> >
> > PartialUpdate is meant to update a subset of your HTML or some JavaScript
> > data structures.
> >
> > On Tue, Dec 15, 2009 at 4:50 PM, Peter Robinett  >wrote:
> >
> >
> >
> >
> >
> > > It's not clear to me whether I can use bind with partialUpdate in a
> > > CometActor. I believe I can but bind returns a NodeSeq, while
> > > partialUpdate takes a JsCmd. There is an implicit called
> > > xmlToXmlOrJsCmd but it returns a RenderOut and I don't know of
> > > anything that converts that to a JsCmd.
> >
> > > I'm using a partialUpdate because I have some other JsCmds that need
> > > to be called that way and I just want to add an update to an xhtml
> > > field to the set of commands.
> >
> > > Does that make sense?
> >
> > > Peter
> >
> > > --
> >
> > > 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
> > > liftweb+unsubscr...@googlegroups.com
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/liftweb?hl=en.
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett wrote:

> My tables created by Schemefier have multiple keys for the primary key
> when my Mapper model is declared like so: class myModel extends
> LongKeyedMapper[myModel] with IdPK. There is naturally the primary key
> but there is also a unique key on the column that simply duplicates
> the functionality of the primary key.
>
> Are other people seeing this? I've only looked on MySQL. This seems to
> be because IdPK adds an id of type MappedLongIndex. Only the
> longIndexColumnType of MySqlDriver has "UNIQUE KEY" in its definition.
> Unique keys are great but, as I mentioned, if the column is also the
> primary key the index is a duplication. Maybe this is something that
> IdPK can disable when declaring the column? At least with MySQL
> primary keys are guaranteed to be unique and InnoDB tables, which
> Mapper uses, can have issues with long primary keys[1].
>
> Should this be fixed? Or is the more helpful answer 'Don't use
> MySQL'? ;-)
>

I would use MySQL for a production site.

If IdPK isn't doing what you want, then don't use it, just declare the
primary key field manually.


>
> Peter
>
> [1]: http://dev.mysql.com/doc/refman/5.1/en/innodb-index-types.html
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Documentation

2009-12-15 Thread Naftoli Gugenheim
Also note that this list (as well as the Scala lists) is very helpful when
anyone has any Lift question.


On Tue, Dec 15, 2009 at 5:50 PM, Alex Boisvert wrote:

> And from there, my suggestion would be to experiment with existing sample
> Lift applications such as those in http://github.com/dpp/lift-samples to
> get the "feel" for Lift from working code.
>
> alex
>
>
>
> On Tue, Dec 15, 2009 at 12:49 PM, Randinn  wrote:
>
>> My suggestion is to get Programming in Scala, it explains the basics
>> more than the others. Davids book and the rest are great but written
>> for existing programmers. I also am learning not being a coder for
>> years so I know how you feel.
>>
>> On Dec 16, 3:05 am, Daniel  wrote:
>> > Hey,
>> >
>> > I'm new to both Scala and Lift, but I don't have any professional Java
>> > experience. It seems that all of the documentation available for Lift
>> > is aimed at folks who have considerable professional experience with
>> > Java already. Is there any documentation available aimed for people
>> > like me who don't have very much Java enterprise experience (I'm a
>> > student)?
>> >
>> > I find that the Django and Rails documentation is very helpful, while
>> > Lift's is somewhat impenetrable. Are there any plans to improve the
>> > Lift documentation? It's the major obstacle preventing my adoption of
>> > this otherwise impressive framework.
>> >
>> > Thanks,
>> > Daniel
>>
>> --
>>
>> 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
>> liftweb+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>>
>>
>  --
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-15 Thread Naftoli Gugenheim
I compiled much of this thread into
http://wiki.github.com/dpp/liftweb/about-naming-conventions in raw form. As
we continue to discuss the naming goals and guidelines and vote or decide on
controversial goals, that wiki page should become more consolidated and less
of a copy-paste of a discussion. :)


On Mon, Dec 14, 2009 at 6:32 PM, Kris Nuttycombe
wrote:

> On Mon, Dec 14, 2009 at 12:31 PM, David Pollak
>  wrote:
> > Folks,
> >
> > Lift allows developers to create web sites that are:
> >
> > Reliable (which includes secure)
> > Maintainable/concise
> > Highly interactive
> > Easy to build
> > High Performance
> > Easy to on-board (initial understanding of the APIs)
> >
> > Lift's APIs should reflect these rank-ordered goals.  Some of these goals
> > are in tension with each other.  For example, easy on-boarding (e.g.,
> longer
> > method names, more traditional imperative style) is in tension with
> concise.
> >
> > There's also a very diverse Lift community.
> >
> > I use Emacs for a lot of my Lift coding.  I know folks who use TextMate
> for
> > Lift coding.  Having long method names assumes the use of an IDE which
> has
> > name completion.  Lift's APIs must serve both communities.
> > People are coming to Lift from Java, Ruby, PHP, and other backgrounds.
> > Assuming Scala conventions rather than a "best choice" for naming does a
> > dis-service to the polygots.  Further, most of Scala's API conventions
> > except for the collections stuff is not in my opinion that well thought
> out
> > or consistent.
> > Many of Lift's APIs have evolved correctly based on actual usage
> patterns.
> > For example, the initially counter-intuitive use of apply to set fields
> and
> > vars works far better than any other mechanism, especially when chaining
> > calls.  I've tried many different mechanisms (e.g., update(), Pascal
> style
> > :=, set(), etc.) for setting fields and the one that everybody gravitated
> to
> > was apply().
> >
> > We also have to consider the existing code base.  I've personally got
> 150K
> > lines of Lift-code under management.  If we start breaking APIs without a
> > compelling reason, it costs me money and it costs my clients less of my
> > time.  What's the impact to various different current users of Lift of
> > breaking APIs without a compelling reason (and "I like this name better
> than
> > that name" or "this name is more consistent" are not compelling reasons.)
> > So, my criteria for any name changes (and this is not open to any type of
> > negotiation and I've been 100% consistent about this since the discussion
> > began) is:
> >
> > If the name change can be accomplished with a deprecation of the old name
> > without breaking any existing APIs, then the name change can be the
> "better"
> > name.
> > If the name change is internal to Lift or is in a little-used feature
> (e.g.,
> > Kris's API changes in Loc) such that very few projects will likely be
> > impacted by a name change and those that are impacted are sufficiently
> savvy
> > that they will understand the change and be able to make it in a matter
> of
> > minutes.
> > Any class name or object name change that does not meet the above
> criteria
> > must be compelling.  For example, we changed from Scala Actors to Lift
> > Actors.  This was a substantial amount of breakage, but there were no
> > alternatives and the Scala Actor memory retention issues were materially
> > impacting many different sites and we had worked on various attempted
> > solutions over a 10 month period.  If we're going to break without
> > deprecation and the breakage is going to impact a substantial part of the
> > Lift community, there must be a compelling reason to make the breakage.
> >
> > On Sun, Dec 13, 2009 at 10:49 AM, Kris Nuttycombe
> >  wrote:
> >>
> >> To this point, the only goals that have been recommended for this
> >> effort are those that I've noted below:
> >>
> >> >> 1) Remove ambiguity wherever possible! There are a number of places
> >> >> where very similar names are used to refer to utterly different
> >> >> things.
> >>
> >> >> 2) As an aide removing ambiguity, consider outlawing or eliminating
> >> >> extremely generic names, or else establish a single way in which a
> >> >> given name will be used across Lift. Examples are Field, Info,
> Holder,
> >> >> etc.
> >
> > In general, this is okay, but if there's a FooHolder that holds a Foo,
> > what's wrong with that kind of naming?
>
> Holder is probably the least problematic of these. The only issue I
> have with it is that FooHolder doesn't say anything about why you
> might want to have that particular kind of container (or indeed have a
> container at all) for a Foo. In some sense, every object that contains
> data is a holder - and I don't think "StringHolder" makes much sense;
> why does FooHolder?
>
> >>
> >> >> 3) Avoid making the name of the return type part of the name of the
> >> >> method. The types should tell the story as much as possible, except
> in
> >> >

[Lift] Re: partialUpdate and bind

2009-12-15 Thread Peter Robinett
Thanks, David. In my case I want to update a Flot graph and some text
boxes with new information. Since they have their source data in
common, it seems to me it would be most efficient to update the two
parts of the page simultaneously via a partialUpdate. Is this
reasonable or am I abusing partialUpdate?

Peter

On Dec 15, 4:52 pm, David Pollak 
wrote:
> You can use PartialUpdate and bind() if you are doing a
> SetHtml("id_of_thing_to_update", bind(...))
>
> PartialUpdate is meant to update a subset of your HTML or some JavaScript
> data structures.
>
> On Tue, Dec 15, 2009 at 4:50 PM, Peter Robinett 
> wrote:
>
>
>
>
>
> > It's not clear to me whether I can use bind with partialUpdate in a
> > CometActor. I believe I can but bind returns a NodeSeq, while
> > partialUpdate takes a JsCmd. There is an implicit called
> > xmlToXmlOrJsCmd but it returns a RenderOut and I don't know of
> > anything that converts that to a JsCmd.
>
> > I'm using a partialUpdate because I have some other JsCmds that need
> > to be called that way and I just want to add an update to an xhtml
> > field to the set of commands.
>
> > Does that make sense?
>
> > Peter
>
> > --
>
> > 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
> > liftweb+unsubscr...@googlegroups.com > >
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] How to revert json to lift model?

2009-12-15 Thread Xuefeng Wu
Hi David,

Thank you very much!

On Wed, Dec 16, 2009 at 1:40 AM, David Pollak  wrote:

>
>
> On Tue, Dec 15, 2009 at 4:37 AM, Xuefeng Wu  wrote:
>
>> 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)
>>
>> }
>>
>> and to json by toJs:
>> bookjson = {"$lift_class": "book", "name": " The Definitive Guide to
>> Lift", "id": 1, "desc": " The Definitive Guide to Lift"}
>>
>> the lift model is not POJO, I don't how to revert json to lift model.
>>
>>
>> Could anyone give some suggest?
>>
>
> Please see the following methods in MetaMapper:
>
>   /**
>* This method will encode the instance as JSON.  It may reveal
>* data in fields that might otherwise be proprietary.  It should
>* be used with caution and only exposed as a public method
>* after a security review.
>*/
>   protected def encodeAsJSON_! (toEncode: A): JsonAST.JObject =
>
>   protected def decodeFromJSON_!(json: JsonAST.JObject): A =
>
> And this thread:
> http://groups.google.com/group/liftweb/browse_thread/thread/80e8b2e871a2a8d4/be8b6ae127267f8a?lnk=raot
>
> Thanks,
>
> David
>
>
>>
>>
>> --
>> Scala中文社区:  http://groups.google.com/group/scalacn
>>
>> --
>> 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
>> liftweb+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
>  --
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Scala中文社区:  http://groups.google.com/group/scalacn

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread Peter Robinett
My tables created by Schemefier have multiple keys for the primary key
when my Mapper model is declared like so: class myModel extends
LongKeyedMapper[myModel] with IdPK. There is naturally the primary key
but there is also a unique key on the column that simply duplicates
the functionality of the primary key.

Are other people seeing this? I've only looked on MySQL. This seems to
be because IdPK adds an id of type MappedLongIndex. Only the
longIndexColumnType of MySqlDriver has "UNIQUE KEY" in its definition.
Unique keys are great but, as I mentioned, if the column is also the
primary key the index is a duplication. Maybe this is something that
IdPK can disable when declaring the column? At least with MySQL
primary keys are guaranteed to be unique and InnoDB tables, which
Mapper uses, can have issues with long primary keys[1].

Should this be fixed? Or is the more helpful answer 'Don't use
MySQL'? ;-)

Peter

[1]: http://dev.mysql.com/doc/refman/5.1/en/innodb-index-types.html

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] partialUpdate and bind

2009-12-15 Thread David Pollak
You can use PartialUpdate and bind() if you are doing a
SetHtml("id_of_thing_to_update", bind(...))

PartialUpdate is meant to update a subset of your HTML or some JavaScript
data structures.

On Tue, Dec 15, 2009 at 4:50 PM, Peter Robinett wrote:

> It's not clear to me whether I can use bind with partialUpdate in a
> CometActor. I believe I can but bind returns a NodeSeq, while
> partialUpdate takes a JsCmd. There is an implicit called
> xmlToXmlOrJsCmd but it returns a RenderOut and I don't know of
> anything that converts that to a JsCmd.
>
> I'm using a partialUpdate because I have some other JsCmds that need
> to be called that way and I just want to add an update to an xhtml
> field to the set of commands.
>
> Does that make sense?
>
> Peter
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] partialUpdate and bind

2009-12-15 Thread Peter Robinett
It's not clear to me whether I can use bind with partialUpdate in a
CometActor. I believe I can but bind returns a NodeSeq, while
partialUpdate takes a JsCmd. There is an implicit called
xmlToXmlOrJsCmd but it returns a RenderOut and I don't know of
anything that converts that to a JsCmd.

I'm using a partialUpdate because I have some other JsCmds that need
to be called that way and I just want to add an update to an xhtml
field to the set of commands.

Does that make sense?

Peter

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Lift 1.1-M8

2009-12-15 Thread Naftoli Gugenheim
Then I guess you could use an older version of Netbeans, or the 2.8 branch 
despite its work-in-progress status (use git and build yourself).

-
DMB wrote:

Hmm. A word of warning - Netbeans 6.8 requires Scala 2.8. I found out
the hard way. If anyone knows a workaround on how to make Netbeans 6.8
work with Lift, do share.

On Dec 15, 3:16 am, Timothy Perrett  wrote:
> No, it is not in yet.
>
> This is currently on the 2_8_0 branch and will be in Lift 2.0 (Scala 2.8 
> keeps being put back)
>
> Cheers, Tim
>
> On 15 Dec 2009, at 10:57, Oleg G. wrote:
>
> > I'm wondering about scala 2.8 compatibility, is it in or when is it
> > planned?
>
> > --
>
> > 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 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Lift 1.1-M8

2009-12-15 Thread DMB
Hmm. A word of warning - Netbeans 6.8 requires Scala 2.8. I found out
the hard way. If anyone knows a workaround on how to make Netbeans 6.8
work with Lift, do share.

On Dec 15, 3:16 am, Timothy Perrett  wrote:
> No, it is not in yet.
>
> This is currently on the 2_8_0 branch and will be in Lift 2.0 (Scala 2.8 
> keeps being put back)
>
> Cheers, Tim
>
> On 15 Dec 2009, at 10:57, Oleg G. wrote:
>
> > I'm wondering about scala 2.8 compatibility, is it in or when is it
> > planned?
>
> > --
>
> > 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 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Documentation

2009-12-15 Thread Alex Boisvert
And from there, my suggestion would be to experiment with existing sample
Lift applications such as those in http://github.com/dpp/lift-samples to get
the "feel" for Lift from working code.

alex


On Tue, Dec 15, 2009 at 12:49 PM, Randinn  wrote:

> My suggestion is to get Programming in Scala, it explains the basics
> more than the others. Davids book and the rest are great but written
> for existing programmers. I also am learning not being a coder for
> years so I know how you feel.
>
> On Dec 16, 3:05 am, Daniel  wrote:
> > Hey,
> >
> > I'm new to both Scala and Lift, but I don't have any professional Java
> > experience. It seems that all of the documentation available for Lift
> > is aimed at folks who have considerable professional experience with
> > Java already. Is there any documentation available aimed for people
> > like me who don't have very much Java enterprise experience (I'm a
> > student)?
> >
> > I find that the Django and Rails documentation is very helpful, while
> > Lift's is somewhat impenetrable. Are there any plans to improve the
> > Lift documentation? It's the major obstacle preventing my adoption of
> > this otherwise impressive framework.
> >
> > Thanks,
> > Daniel
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Documentation

2009-12-15 Thread Randinn
My suggestion is to get Programming in Scala, it explains the basics
more than the others. Davids book and the rest are great but written
for existing programmers. I also am learning not being a coder for
years so I know how you feel.

On Dec 16, 3:05 am, Daniel  wrote:
> Hey,
>
> I'm new to both Scala and Lift, but I don't have any professional Java
> experience. It seems that all of the documentation available for Lift
> is aimed at folks who have considerable professional experience with
> Java already. Is there any documentation available aimed for people
> like me who don't have very much Java enterprise experience (I'm a
> student)?
>
> I find that the Django and Rails documentation is very helpful, while
> Lift's is somewhat impenetrable. Are there any plans to improve the
> Lift documentation? It's the major obstacle preventing my adoption of
> this otherwise impressive framework.
>
> Thanks,
> Daniel

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: [lift] Documentation

2009-12-15 Thread Channing Walton

I'd start with the Beginning Scala book and work on some code kata like
project euler. Lift is a jump in the deep end - I don't think knowing Java
is much of a help there anyway.
-- 
View this message in context: 
http://old.nabble.com/Documentation-tp26797233p26801361.html
Sent from the liftweb mailing list archive at Nabble.com.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
That worked. Thank you very much!

Donald

On Tue, Dec 15, 2009 at 2:40 PM, David Pollak
 wrote:
>
>
> On Tue, Dec 15, 2009 at 11:38 AM, Donald McLean  wrote:
>>
>> My mistake - it's 2.7.7 - should I go back to 2.7.5?
>
> Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the 2.7.5
> compiler and with the 2.7.5 JAR files.
-- 
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.

Join the photo preservation advocacy Facebook group:
http://www.facebook.com/home.php?ref=logo#/group.php?gid=148274709288

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 11:38 AM, Donald McLean  wrote:

> My mistake - it's 2.7.7 - should I go back to 2.7.5?
>

*Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the 2.7.5
compiler and with the 2.7.5 JAR files.*


>
> On Tue, Dec 15, 2009 at 2:29 PM, David Pollak
>  wrote:
> >
> >
> > On Tue, Dec 15, 2009 at 11:25 AM, Donald McLean 
> wrote:
> >>
> >> commons-fileupload-1.2.1.jar
> >> lift-util-1.0.2.jar
> >> lift-webkit-1.0.2.jar
> >> log4j-1.2.15.jar
> >> scala-library.jar (2.7.6, I believe)
> >
> > Never, ever, ever for any reason use Scala 2.7.6.  It's very broken.
> >
> > Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the
> 2.7.5
> > compiler and with the 2.7.5 JAR files.
> >
> > I would strongly recommend using Ivy to do dependency management.
> >
> >>
> >> On Tue, Dec 15, 2009 at 2:21 PM, David Pollak
> >>  wrote:
> >> > Looks like you have a mess of wrong JAR files.
> >> >
> >> > What version of Lift are you using?
> >> >
> >> > On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean 
> >> > wrote:
> >> >>
> >> >> Following the layout for building a Lift application using Ant, I put
> >> >> together a Hello, World application and deployed it. Deploying gives
> >> >> an error (see below). Any suggestions on what the problem is and how
> >> >> to fix it?
> >> >>
> >> >> Thank you,
> >> >>
> >> >> Donald
> >> >>
> >> >> Exception starting filter LiftFilter java.lang.AbstractMethodError at
> >> >> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
> >> >> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
> >> >> scala.actors.Actor$class.start(Actor.scala:783) at
> >> >>
> >> >>
> >> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
> >> >> at
> >> >>
> >> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
> >> >> at
> >> >>
> >> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
> >> >> at
> >> >>
> >> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
> >> >> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
> >> >>
> >> >>
> >> >>
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
> >> >> at
> >> >>
> >> >>
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
> >> >> at
> >> >>
> >> >>
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
> >> >> at
> >> >>
> >> >>
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
> >> >> at
> >> >>
> >> >>
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
> >> >> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
> >> >>
> >> >>
> >> >>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
> >> >> at
> >> >>
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
> >> >> at
> >> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> >> >> at
> >> >>
> >> >>
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
> >> >> at

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
My mistake - it's 2.7.7 - should I go back to 2.7.5?

On Tue, Dec 15, 2009 at 2:29 PM, David Pollak
 wrote:
>
>
> On Tue, Dec 15, 2009 at 11:25 AM, Donald McLean  wrote:
>>
>> commons-fileupload-1.2.1.jar
>> lift-util-1.0.2.jar
>> lift-webkit-1.0.2.jar
>> log4j-1.2.15.jar
>> scala-library.jar (2.7.6, I believe)
>
> Never, ever, ever for any reason use Scala 2.7.6.  It's very broken.
>
> Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the 2.7.5
> compiler and with the 2.7.5 JAR files.
>
> I would strongly recommend using Ivy to do dependency management.
>
>>
>> On Tue, Dec 15, 2009 at 2:21 PM, David Pollak
>>  wrote:
>> > Looks like you have a mess of wrong JAR files.
>> >
>> > What version of Lift are you using?
>> >
>> > On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean 
>> > wrote:
>> >>
>> >> Following the layout for building a Lift application using Ant, I put
>> >> together a Hello, World application and deployed it. Deploying gives
>> >> an error (see below). Any suggestions on what the problem is and how
>> >> to fix it?
>> >>
>> >> Thank you,
>> >>
>> >> Donald
>> >>
>> >> Exception starting filter LiftFilter java.lang.AbstractMethodError at
>> >> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
>> >> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
>> >> scala.actors.Actor$class.start(Actor.scala:783) at
>> >>
>> >>
>> >> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
>> >> at
>> >>
>> >> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
>> >> at
>> >>
>> >> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
>> >> at
>> >>
>> >> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
>> >> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
>> >>
>> >>
>> >> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
>> >> at
>> >>
>> >> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
>> >> at
>> >>
>> >> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
>> >> at
>> >>
>> >> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
>> >> at
>> >>
>> >> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
>> >> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
>> >>
>> >>
>> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
>> >> at
>> >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
>> >> at
>> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
>> >> at
>> >>
>> >> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
>> >> at
>> >>
>> >> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
>> >> at
>> >>
>> >> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
>> >> at
>> >>
>> >> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
>> >> at
>> >>
>> >> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
>> >> at
>> >>
>> >> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> >>
>> >>
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >> at
>> >>
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor

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

2009-12-15 Thread Jim McBeath
It looks like the source jars are missing from the M8 repository, at
least for some of the libraries (for example,
).

Are these perhaps located somewhere else now?  Or do they typically
get added a bit later?

--
Jim

On Mon, Dec 14, 2009 at 11:37:02AM -0800, David Pollak wrote:
> Date: Mon, 14 Dec 2009 11:37:02 -0800
> From: David Pollak 
> To: liftweb 
> Subject: [Lift] [ANN] Lift 1.1-M8
> 
>The Lift Web Framework team is pleased to announce the lift-1.1-M8 release!

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Timothy Perrett
That version of lift uses 2.7.5 scala - they are binary incompatible with 
2.7.6. Moreover, that isn't enough dependencies for Lift - your probably 
missing a bunch of things. How big is the WAR? 

Cheers, Tim

On 15 Dec 2009, at 19:25, Donald McLean wrote:

> commons-fileupload-1.2.1.jar
> lift-util-1.0.2.jar
> lift-webkit-1.0.2.jar
> log4j-1.2.15.jar
> scala-library.jar (2.7.6, I believe)
> 
> On Tue, Dec 15, 2009 at 2:21 PM, David Pollak
>  wrote:
>> Looks like you have a mess of wrong JAR files.
>> 
>> What version of Lift are you using?
>> 
>> On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean  wrote:
>>> 
>>> Following the layout for building a Lift application using Ant, I put
>>> together a Hello, World application and deployed it. Deploying gives
>>> an error (see below). Any suggestions on what the problem is and how
>>> to fix it?
>>> 
>>> Thank you,
>>> 
>>> Donald
>>> 
>>> Exception starting filter LiftFilter java.lang.AbstractMethodError at
>>> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
>>> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
>>> scala.actors.Actor$class.start(Actor.scala:783) at
>>> 
>>> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
>>> at
>>> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
>>> at
>>> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
>>> at
>>> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
>>> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
>>> 
>>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
>>> at
>>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
>>> at
>>> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
>>> at
>>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
>>> at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
>>> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
>>> 
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
>>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
>>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
>>> at
>>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
>>> at
>>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
>>> at
>>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
>>> at
>>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
>>> at
>>> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
>>> at
>>> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
>>> at
>>> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
>>> at
>>> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
>>> at
>>> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
>>> at
>>> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
>>> at
>>> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
>>> at
>>> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
>>> at
>>> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>>> at
>>> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>>> at
>>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
>>> at
>>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
>>> at
>>> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>> 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>> 
>>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
>>> at
>>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
>>> at
>>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
>>> at
>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 11:25 AM, Donald McLean  wrote:

> commons-fileupload-1.2.1.jar
> lift-util-1.0.2.jar
> lift-webkit-1.0.2.jar
> log4j-1.2.15.jar
> scala-library.jar (2.7.6, I believe)
>

Never, ever, ever for any reason use Scala 2.7.6.  It's very broken.

Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the 2.7.5
compiler and with the 2.7.5 JAR files.

I would strongly recommend using Ivy to do dependency management.


>
> On Tue, Dec 15, 2009 at 2:21 PM, David Pollak
>  wrote:
> > Looks like you have a mess of wrong JAR files.
> >
> > What version of Lift are you using?
> >
> > On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean 
> wrote:
> >>
> >> Following the layout for building a Lift application using Ant, I put
> >> together a Hello, World application and deployed it. Deploying gives
> >> an error (see below). Any suggestions on what the problem is and how
> >> to fix it?
> >>
> >> Thank you,
> >>
> >> Donald
> >>
> >> Exception starting filter LiftFilter java.lang.AbstractMethodError at
> >> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
> >> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
> >> scala.actors.Actor$class.start(Actor.scala:783) at
> >>
> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
> >> at
> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
> >> at
> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
> >> at
> >>
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
> >> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
> >> at
> >>
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
> >> at
> >>
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
> >> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
> >>
> >>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
> >> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
> >> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
> >> at
> >>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
> >> at
> >>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
> >> at
> >>
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
> >> at
> >>
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
> >> at
> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
> >> at
> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
> >> at
> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
> >> at
> >>
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
> >> at
> >>
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
> >> at
> >>
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
> >> at
> >>
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> >>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:597) at
> >>
> >>
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
> >> at
> >>
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
> >> at
> >>
> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigM

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
commons-fileupload-1.2.1.jar
lift-util-1.0.2.jar
lift-webkit-1.0.2.jar
log4j-1.2.15.jar
scala-library.jar (2.7.6, I believe)

On Tue, Dec 15, 2009 at 2:21 PM, David Pollak
 wrote:
> Looks like you have a mess of wrong JAR files.
>
> What version of Lift are you using?
>
> On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean  wrote:
>>
>> Following the layout for building a Lift application using Ant, I put
>> together a Hello, World application and deployed it. Deploying gives
>> an error (see below). Any suggestions on what the problem is and how
>> to fix it?
>>
>> Thank you,
>>
>> Donald
>>
>> Exception starting filter LiftFilter java.lang.AbstractMethodError at
>> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
>> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
>> scala.actors.Actor$class.start(Actor.scala:783) at
>>
>> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
>> at
>> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
>> at
>> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
>> at
>> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
>> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
>>
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
>> at
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
>> at
>> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
>> at
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
>> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
>>
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
>> at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
>> at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
>> at
>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
>> at
>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
>> at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
>> at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
>> at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
>> at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
>> at
>> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
>> at
>> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
>> at
>> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
>> at
>> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
>> at
>> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
>> at
>> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
>> at
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
>> at
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>> at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597) at
>> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
>> at $Proxy1.invoke(Unknown Source) at
>>
>> com.sun.enterprise.admin.serv

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
Looks like you have a mess of wrong JAR files.

What version of Lift are you using?

On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean  wrote:

> Following the layout for building a Lift application using Ant, I put
> together a Hello, World application and deployed it. Deploying gives
> an error (see below). Any suggestions on what the problem is and how
> to fix it?
>
> Thank you,
>
> Donald
>
> Exception starting filter LiftFilter java.lang.AbstractMethodError at
> scala.actors.Scheduler$.impl(Scheduler.scala:35) at
> scala.actors.Scheduler$.execute(Scheduler.scala:101) at
> scala.actors.Actor$class.start(Actor.scala:783) at
>
> net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
> at
> net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
> at
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
> at
> net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
>
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
> at
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
> at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
> at
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
> at
> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
> at
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> at
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
> at
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> at
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
> at
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
>
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
> at
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
> at
> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
> at $Proxy1.invoke(Unknown Source) at
>
> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
> at
> com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
> at
> com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:159)
> at
> com.

[Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
Following the layout for building a Lift application using Ant, I put
together a Hello, World application and deployed it. Deploying gives
an error (see below). Any suggestions on what the problem is and how
to fix it?

Thank you,

Donald

Exception starting filter LiftFilter java.lang.AbstractMethodError at
scala.actors.Scheduler$.impl(Scheduler.scala:35) at
scala.actors.Scheduler$.execute(Scheduler.scala:101) at
scala.actors.Actor$class.start(Actor.scala:783) at
net.liftweb.http.PointlessActorToWorkAroundBug$.start(LiftServlet.scala:702)
at net.liftweb.http.PointlessActorToWorkAroundBug$.ctor(LiftServlet.scala:767)
at net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala:776)
at net.liftweb.http.PointlessActorToWorkAroundBug$.(LiftServlet.scala)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:563) at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:119)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4498)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5317)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
at 
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
at 
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
at 
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
at 
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
at 
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
at 
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
at 
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source) at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at 
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at 
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:159)
at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:538)
at java.lang.Thread.run(Thread.java:619)


-- 
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.

Join the photo preservation advocacy Facebook group:
http

[Lift] Re: Caching Comet Actors

2009-12-15 Thread Java1Guy
Yes - it seems upon closer examination with jVisualVM that in fact the
CometActors *are* reused for each page.  Yet again, Lift Rules!  (I
had been looking at printouts of the uniqueid and thought i was seeing
more than necessary...)

Thanks, Mark

On Dec 15, 11:06 am, David Pollak 
wrote:
> On Tue, Dec 15, 2009 at 9:54 AM, Java1Guy  wrote:
> > Hey all!
> > I'm having great luck coding up my web site which consists of a
> > handful of pages each of which contains a Flot graph.  Behind each
> > page is a CometActor which dynamically updates the graph.
> > Since appetite grows while dining, I'm now interested in optimizing a
> > bit.  I presume I have the default timeout value for cometactors and
> > it seems each time a page is hit a new CometActor object is
> > instantiated.
>
> This is not correct.  CometActors with default LifeSpan are kept around for
> the duration of the session.
>
>
>
>
>
> >  Seems like Lift could keep a cache of these around
> > based on URL and sessionid.  Is that something that has been
> > implemented and I'm not seeing it?  Something I should be
> > implementing?  Something planned in a future release? Other? Just
> > reduce the timeout value?
>
> > TIA for any input...
> > Cheers, Mark
>
> > --
>
> > 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
> > liftweb+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-15 Thread Timothy Perrett
Awesome Dave! Thanks for the acknowledgement.

Cheers, Tim

On 15 Dec 2009, at 18:07, Dave Briccetti wrote:

> Thanks again for the help. Here are tho talk slides:
> http://www.slideshare.net/dcbriccetti/birdshow-a-lift-app-for-showing-flickr-photos-2720594
> 
> --
> 
> 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 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-15 Thread Dave Briccetti
Thanks again for the help. Here are tho talk slides:
http://www.slideshare.net/dcbriccetti/birdshow-a-lift-app-for-showing-flickr-photos-2720594

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Caching Comet Actors

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 9:54 AM, Java1Guy  wrote:

> Hey all!
> I'm having great luck coding up my web site which consists of a
> handful of pages each of which contains a Flot graph.  Behind each
> page is a CometActor which dynamically updates the graph.
> Since appetite grows while dining, I'm now interested in optimizing a
> bit.  I presume I have the default timeout value for cometactors and
> it seems each time a page is hit a new CometActor object is
> instantiated.


This is not correct.  CometActors with default LifeSpan are kept around for
the duration of the session.


>  Seems like Lift could keep a cache of these around
> based on URL and sessionid.  Is that something that has been
> implemented and I'm not seeing it?  Something I should be
> implementing?  Something planned in a future release? Other? Just
> reduce the timeout value?
>
> TIA for any input...
> Cheers, Mark
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Caching Comet Actors

2009-12-15 Thread Java1Guy
Hey all!
I'm having great luck coding up my web site which consists of a
handful of pages each of which contains a Flot graph.  Behind each
page is a CometActor which dynamically updates the graph.
Since appetite grows while dining, I'm now interested in optimizing a
bit.  I presume I have the default timeout value for cometactors and
it seems each time a page is hit a new CometActor object is
instantiated.  Seems like Lift could keep a cache of these around
based on URL and sessionid.  Is that something that has been
implemented and I'm not seeing it?  Something I should be
implementing?  Something planned in a future release? Other? Just
reduce the timeout value?

TIA for any input...
Cheers, Mark

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] How to revert json to lift model?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 4:37 AM, Xuefeng Wu  wrote:

> 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)
>
> }
>
> and to json by toJs:
> bookjson = {"$lift_class": "book", "name": " The Definitive Guide to Lift",
> "id": 1, "desc": " The Definitive Guide to Lift"}
>
> the lift model is not POJO, I don't how to revert json to lift model.
>
>
> Could anyone give some suggest?
>

Please see the following methods in MetaMapper:

  /**
   * This method will encode the instance as JSON.  It may reveal
   * data in fields that might otherwise be proprietary.  It should
   * be used with caution and only exposed as a public method
   * after a security review.
   */
  protected def encodeAsJSON_! (toEncode: A): JsonAST.JObject =

  protected def decodeFromJSON_!(json: JsonAST.JObject): A =

And this thread:
http://groups.google.com/group/liftweb/browse_thread/thread/80e8b2e871a2a8d4/be8b6ae127267f8a?lnk=raot

Thanks,

David


>
>
> --
> Scala中文社区:  http://groups.google.com/group/scalacn
>
> --
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-15 Thread Derek Chen-Becker
The code in the spec is:

person.companies ++= companies
person.save
// Break some joins
companies(3).delete_! // delete "4"
companies(6).delete_! // delete "7"
person.companies.refresh  // reload joins so joinEntity.company.obj
isn't cached
person

My plan is to make FKs an optional feature of Schemifier, so I'll modify
your spec to run without the FKs and then duplicate it to one with FKs that
expects an exception to be thrown.

Derek

On Mon, Dec 14, 2009 at 1:04 PM, Naftoli Gugenheim wrote:

> Ah, I see.
> Where does MappedManyToMany delete anything not in the join table? If you
> mean the spec feel free to change it or comment out the whole thing and ask
> me to fix it. By the way it's hardcoded to use H2MemoryProvider.
> Is OneToMany doing anything bad?
> Thanks.
>
> -
> Derek Chen-Becker wrote:
>
> Currently ensureConstraints calls DriverType.supportsForeignKeys_?,
> defaulting to false. The ticket that I'm working on is because none of the
> drivers seem to override that. The current MappedManyToMany throws an FK
> violation exception because it tries to delete one side of the Many-To-Many
> without first deleting the join table entry.
>
> Derek
>
> On Sun, Dec 13, 2009 at 5:45 PM, Naftoli Gugenheim  >wrote:
>
> > Are FKs not created using a Driver that supports it? schemify calls
> > ensureConstraints which seems to do it, no?
> >
> > -
> > Derek Chen-Becker wrote:
> >
> > If FKs are enabled then the spec fails because you're intentionally
> trying
> > to break the joins by deleting the Companys that are on the other side of
> > the many-to-many. I'm not sure that FKs should be enabled by default, but
> > if
> > I add the option to introduce them with schemify then I could write
> another
> > spec that assumes FKs are enabled and expects an exception if you try to
> > delete a joined entity.
> >
> > Derek
> >
> > On Thu, Dec 10, 2009 at 3:22 PM, Naftoli Gugenheim  > >wrote:
> >
> > > What about that spec I threw together in a hurry implies that foreign
> > > keys would conflict with mapper?
> > > See a recent (few weeks ago) thread discussing how many-to-many should
> > > deal with broken joins.
> > > Why would one not want them to be created by default?
> > > P.S. Sorry I never made that ticket for H2 FK support.
> > >
> > > On 12/8/09, Derek Chen-Becker  wrote:
> > > > OK, I've run into a snag. Schemifier does support foreign key
> creation,
> > > as
> > > > do most of the database vendors. The ManyToMany Mapper support,
> > however,
> > > > seems to expect no foreign key constraints, since it's explicitly
> > testing
> > > > broken refs in the ManyToManySpecs tests:
> > > >
> > > >   "ManyToMany" should {
> > > > "skip broken joins in children" in {
> > > >   setupDB
> > > >   val person = createPerson
> > > >   person.companies.joins.length must_== 10
> > > >   person.companies.all.length must_== 8
> > > > }
> > > > ...
> > > >
> > > > I wonder if we should have FK generation be a configuration parameter
> > for
> > > > schemify. I could change the code so that the default schemify method
> > > > continues to generate DDL without FK  constraints, but add a second
> > > schemify
> > > > method that takes a boolean parameter controlling whether FKs are
> > > generated.
> > > > That, coupled with the DriverType.supportsForeignKeys_?, would allow
> > > people
> > > > to add FKs if they want. Thoughts?
> > > >
> > > > Derek
> > > >
> > > > On Sun, Dec 6, 2009 at 5:40 PM, Derek Chen-Becker
> > > > wrote:
> > > >
> > > >> Absolutely. I have a PG 8.0, 8.1 and 8.3 instance set up for testing
> > on
> > > my
> > > >> home box because of the last time I made a PG-related change.
> > > >>
> > > >> Derek
> > > >>
> > > >>
> > > >> On Thu, Dec 3, 2009 at 2:48 PM, David Pollak <
> > > >> feeder.of.the.be...@gmail.com> wrote:
> > > >>
> > > >>>
> > > >>>
> > > >>> On Thu, Dec 3, 2009 at 1:47 PM, Derek Chen-Becker
> > > >>> wrote:
> > > >>>
> > >  I agree on both points (foreign keys and documentation). Please
> open
> > a
> > >  ticket asking for proper foreign key support and I'll work on it
> > next
> > >  week.
> > > 
> > > 
> > > >>> Please make sure it works on PG 8.0/8.1 as there is at least 1 Lift
> > app
> > > >>> in
> > > >>> production against 8.0
> > > >>>
> > > >>>
> > >  Derek
> > > 
> > > 
> > >  On Wed, Dec 2, 2009 at 6:05 PM, Julian Backes <
> > >  julianbac...@googlemail.com> wrote:
> > > 
> > > > Hi Derek,
> > > >
> > > > > It's been a long time since I looked at that particular code,
> so
> > I
> > > > > may
> > > > > have misspoke. Having said that, if it's currently disabled in
> > the
> > > > > driver I'm not sure why and I would want to review it before
> > saying
> > > > that
> > > > > it works properly in all cases.
> > > > I think the problem here is that the user expects (like I

Re: [Lift] Re: Location on Mac?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 8:32 AM, Donald McLean  wrote:

> Due to the practical realities of the organization that I work in, I'm
> not using Maven at all. Is there some way that I can just download the
> Lift jars and install them somewhere?
>

The Lift jars are located at:
http://scala-tools.org/repo-releases/net/liftweb/




>
> --
> Family photographs are a critical legacy for
> ourselves and our descendants. Protect that
> legacy with a digital backup and recovery plan.
>
> Join the photo preservation advocacy Facebook group:
> http://www.facebook.com/home.php?ref=logo#/group.php?gid=148274709288
>
> --
>
> 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
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Location on Mac?

2009-12-15 Thread Donald McLean
Due to the practical realities of the organization that I work in, I'm
not using Maven at all. Is there some way that I can just download the
Lift jars and install them somewhere?

-- 
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.

Join the photo preservation advocacy Facebook group:
http://www.facebook.com/home.php?ref=logo#/group.php?gid=148274709288

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Documentation

2009-12-15 Thread Daniel
Hey,

I'm new to both Scala and Lift, but I don't have any professional Java
experience. It seems that all of the documentation available for Lift
is aimed at folks who have considerable professional experience with
Java already. Is there any documentation available aimed for people
like me who don't have very much Java enterprise experience (I'm a
student)?

I find that the Django and Rails documentation is very helpful, while
Lift's is somewhat impenetrable. Are there any plans to improve the
Lift documentation? It's the major obstacle preventing my adoption of
this otherwise impressive framework.

Thanks,
Daniel

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Mapping virtual directories

2009-12-15 Thread Mark Feeney
What I ended up doing to "solve" this problem was configure the maven-
jetty-plugin to deploy a second webapp beside the main Lift app.  e.g.


org.mortbay.jetty
maven-jetty-plugin

/webapp
0



/images
/hdd/data/images





This deploys the main Lift app under development at /webapp, and a
second web app at /images.  By default, the images app acts like a
virtual directory.

This is good enough during development, but for production, if your
Lift app relies on /images, you'll have to do some external config on
the production server to make sure it's available.

Bit more of a writeup here, if you are interested:
http://blog.markfeeney.com/2009/12/scala-lift-jetty-6-static-content-and.html


Mark.

On Dec 14, 1:47 pm, Alex Black  wrote:
> Hi Tim, thanks for the suggestions.
>
> I'm new to Jetty etc, so bear with me, but, in your first suggestion,
> we're basically telling Lift to ignore those requests.  Once they are
> ignored, how do I tell Jetty to look in the mapped folder? Would I
> write my own servlet?
>
> Thanks!
>
> - Alex
>
> On Dec 14, 1:21 pm, Timothy Perrett  wrote:
>
> > Two options as I see it. One is:
>
> >     LiftRules.liftRequest.prepend {
> >       case Req("your" :: "path" :: Nil, "pdf", GetRequest) => false
> >     }
>
> > This will make lift ignore the request path and the servlet container 
> > (jetty in this instance) will serve it. Option 2 is to put a front end 
> > rewrite in on your webserver / reverse proxy.
>
> > Personally, the former is more portable so tends to be what I do.
>
> > Cheers, Tim
>
> > On 14 Dec 2009, at 18:06, Alex Black wrote:
>
> > > Can anyone recommend a way to map a virtual directory in Jetty/Lift?
> > > E.g. I'd like "/images" to point to a file system location that is not
> > > in my project.
>
> > > Is there a simple Jetty mechanism, or Lift configuration for this type
> > > of thing?
>
> > > Thx!
>
> > > - Alex
>
> > > --
>
> > > 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 
> > > liftweb+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: How to disable XHTML?

2009-12-15 Thread Tweek
Thanks a lot Tim.

Now it's working :)

Regards.

On 15 Gru, 14:01, Tim Nelson  wrote:
> You need to remove the if guard on the first case match and change the
> second parameter you are passing to Req. The second param is for the
> context. Try this:
>
> LiftRules.determineContentType = {
>   case (Full(Req("location" :: "maps" :: "testmap" :: Nil, _,
> GetRequest)), Full(accept)) =>     "text/html; charset=utf-8"
>   case _ => "application/xhtml+xml; charset=utf-8"
>
> }
>
> Tim
>
> On Tue, Dec 15, 2009 at 6:09 AM, Tweek  wrote:
> > It still dosn't work :(
>
> > this is path to my html file, which is using google maps api: ./
> > location/maps/testmap.html
>
> > i put in my Boot.scala file this code:
>
> >        LiftRules.determineContentType = {
> >            case (Full(Req("location" :: "maps" :: "testmap" :: Nil,
> > "html", GetRequest)), Full(accept))
> >                if LiftRules.useXhtmlMimeType &&
> > accept.toLowerCase.contains("application/xhtml+xml") =>
> >                "text/html; charset=utf-8"
> >            case _ => "application/xhtml+xml; charset=utf-8"
> >        }
>
> > i can'tdisableXHTML in whole projcet becouse then i'm losing
> > functionality like jquery datepicker etc.
>
> > Could You tell me what i did wrong?
>
> > Thanks
>
> > On 15 Gru, 10:38, Timothy Perrett  wrote:
> >> You need to put it in your Boot.scala file.
>
> >> determineContentType is of PartialFunction[(Box[Req], Box[String]), 
> >> String] type - this means that you can match on particular paths:
>
> >>     LiftRules.determineContentType = {
> >>       case (Full(Req("some" :: "path" :: Nil, "pdf", GetRequest)), 
> >> Full(accept))
> >>         if LiftRules.useXhtmlMimeType && 
> >> accept.toLowerCase.contains("application/xhtml+xml") =>
> >>             "application/xhtml+xml; charset=utf-8"
> >>       case _ => "text/html; charset=utf-8"
> >>     }
>
> >> Cheers, Tim
>
> >> On 15 Dec 2009, at 07:58, Tweek wrote:
>
> >> > Thanks for answer Tim.
>
> >> > I know it will be a nooby question, but how i need to define this
> >> > site, where i don't want XHTML ?
>
> >> > On 14 Gru, 12:30, Tim Nelson  wrote:
> >> >> You can use LiftRules.determineContentType to do this. Here is a
> >> >> sample from my project:
>
> >> >> LiftRules.determineContentType = {
> >> >>   case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
> >> >> accept.toLowerCase.contains("application/xhtml+xml") =>
> >> >>         "application/xhtml+xml; charset=utf-8"
> >> >>   case _ => "text/html; charset=utf-8"
>
> >> >> }
>
> >> >> Tim
>
> >> >> On Mon, Dec 14, 2009 at 3:59 AM, Tweek  wrote:
> >> >>> Hi Guys
>
> >> >>> Is it possible todisableXHTMLonly in one html file?
>
> >> >>> When i put
> >> >>> "LiftRules.useXhtmlMimeType = false"
> >> >>>  in Boot.scala then i'll swich this off in whole project.
>
> >> >>> Is any other place to put this line?
>
> >> >>> Thanks.
>
> >> >>> --
>
> >> >>> 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 
> >> >>> liftweb+unsubscr...@googlegroups.com.
> >> >>> For more options, visit this group 
> >> >>> athttp://groups.google.com/group/liftweb?hl=en.
>
> >> > --
>
> >> > 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 
> >> > liftweb+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/liftweb?hl=en.
>
> > --
>
> > 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 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: How to disable XHTML?

2009-12-15 Thread Tim Nelson
You need to remove the if guard on the first case match and change the
second parameter you are passing to Req. The second param is for the
context. Try this:

LiftRules.determineContentType = {
  case (Full(Req("location" :: "maps" :: "testmap" :: Nil, _,
GetRequest)), Full(accept)) => "text/html; charset=utf-8"
  case _ => "application/xhtml+xml; charset=utf-8"
}

Tim

On Tue, Dec 15, 2009 at 6:09 AM, Tweek  wrote:
> It still dosn't work :(
>
> this is path to my html file, which is using google maps api: ./
> location/maps/testmap.html
>
> i put in my Boot.scala file this code:
>
>        LiftRules.determineContentType = {
>            case (Full(Req("location" :: "maps" :: "testmap" :: Nil,
> "html", GetRequest)), Full(accept))
>                if LiftRules.useXhtmlMimeType &&
> accept.toLowerCase.contains("application/xhtml+xml") =>
>                "text/html; charset=utf-8"
>            case _ => "application/xhtml+xml; charset=utf-8"
>        }
>
> i can't disable XHTML in whole projcet becouse then i'm losing
> functionality like jquery datepicker etc.
>
> Could You tell me what i did wrong?
>
> Thanks
>
> On 15 Gru, 10:38, Timothy Perrett  wrote:
>> You need to put it in your Boot.scala file.
>>
>> determineContentType is of PartialFunction[(Box[Req], Box[String]), String] 
>> type - this means that you can match on particular paths:
>>
>>     LiftRules.determineContentType = {
>>       case (Full(Req("some" :: "path" :: Nil, "pdf", GetRequest)), 
>> Full(accept))
>>         if LiftRules.useXhtmlMimeType && 
>> accept.toLowerCase.contains("application/xhtml+xml") =>
>>             "application/xhtml+xml; charset=utf-8"
>>       case _ => "text/html; charset=utf-8"
>>     }
>>
>> Cheers, Tim
>>
>> On 15 Dec 2009, at 07:58, Tweek wrote:
>>
>> > Thanks for answer Tim.
>>
>> > I know it will be a nooby question, but how i need to define this
>> > site, where i don't want XHTML ?
>>
>> > On 14 Gru, 12:30, Tim Nelson  wrote:
>> >> You can use LiftRules.determineContentType to do this. Here is a
>> >> sample from my project:
>>
>> >> LiftRules.determineContentType = {
>> >>   case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
>> >> accept.toLowerCase.contains("application/xhtml+xml") =>
>> >>         "application/xhtml+xml; charset=utf-8"
>> >>   case _ => "text/html; charset=utf-8"
>>
>> >> }
>>
>> >> Tim
>>
>> >> On Mon, Dec 14, 2009 at 3:59 AM, Tweek  wrote:
>> >>> Hi Guys
>>
>> >>> Is it possible todisableXHTMLonly in one html file?
>>
>> >>> When i put
>> >>> "LiftRules.useXhtmlMimeType = false"
>> >>>  in Boot.scala then i'll swich this off in whole project.
>>
>> >>> Is any other place to put this line?
>>
>> >>> Thanks.
>>
>> >>> --
>>
>> >>> 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 
>> >>> liftweb+unsubscr...@googlegroups.com.
>> >>> For more options, visit this group 
>> >>> athttp://groups.google.com/group/liftweb?hl=en.
>>
>> > --
>>
>> > 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 
>> > liftweb+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/liftweb?hl=en.
>
> --
>
> 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 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
>
>
>

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




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

}

and to json by toJs:
bookjson = {"$lift_class": "book", "name": " The Definitive Guide to Lift",
"id": 1, "desc": " The Definitive Guide to Lift"}

the lift model is not POJO, I don't how to revert json to lift model.


Could anyone give some suggest?


-- 
Scala中文社区:  http://groups.google.com/group/scalacn

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: How to disable XHTML?

2009-12-15 Thread Tweek
It still dosn't work :(

this is path to my html file, which is using google maps api: ./
location/maps/testmap.html

i put in my Boot.scala file this code:

LiftRules.determineContentType = {
case (Full(Req("location" :: "maps" :: "testmap" :: Nil,
"html", GetRequest)), Full(accept))
if LiftRules.useXhtmlMimeType &&
accept.toLowerCase.contains("application/xhtml+xml") =>
"text/html; charset=utf-8"
case _ => "application/xhtml+xml; charset=utf-8"
}

i can't disable XHTML in whole projcet becouse then i'm losing
functionality like jquery datepicker etc.

Could You tell me what i did wrong?

Thanks

On 15 Gru, 10:38, Timothy Perrett  wrote:
> You need to put it in your Boot.scala file.
>
> determineContentType is of PartialFunction[(Box[Req], Box[String]), String] 
> type - this means that you can match on particular paths:
>
>     LiftRules.determineContentType = {
>       case (Full(Req("some" :: "path" :: Nil, "pdf", GetRequest)), 
> Full(accept))
>         if LiftRules.useXhtmlMimeType && 
> accept.toLowerCase.contains("application/xhtml+xml") =>
>             "application/xhtml+xml; charset=utf-8"
>       case _ => "text/html; charset=utf-8"
>     }
>
> Cheers, Tim
>
> On 15 Dec 2009, at 07:58, Tweek wrote:
>
> > Thanks for answer Tim.
>
> > I know it will be a nooby question, but how i need to define this
> > site, where i don't want XHTML ?
>
> > On 14 Gru, 12:30, Tim Nelson  wrote:
> >> You can use LiftRules.determineContentType to do this. Here is a
> >> sample from my project:
>
> >> LiftRules.determineContentType = {
> >>   case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
> >> accept.toLowerCase.contains("application/xhtml+xml") =>
> >>         "application/xhtml+xml; charset=utf-8"
> >>   case _ => "text/html; charset=utf-8"
>
> >> }
>
> >> Tim
>
> >> On Mon, Dec 14, 2009 at 3:59 AM, Tweek  wrote:
> >>> Hi Guys
>
> >>> Is it possible todisableXHTMLonly in one html file?
>
> >>> When i put
> >>> "LiftRules.useXhtmlMimeType = false"
> >>>  in Boot.scala then i'll swich this off in whole project.
>
> >>> Is any other place to put this line?
>
> >>> Thanks.
>
> >>> --
>
> >>> 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 
> >>> liftweb+unsubscr...@googlegroups.com.
> >>> For more options, visit this group 
> >>> athttp://groups.google.com/group/liftweb?hl=en.
>
> > --
>
> > 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 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: How to disable XHTML?

2009-12-15 Thread Tweek
It still dosn't work :(

this is path to my html file, which is using google maps api: ./
location/maps/testmap.html

i put in my Boot.scala file this code:

LiftRules.determineContentType = {
case (Full(Req("location" :: "maps" :: "testmap" :: Nil,
"html", GetRequest)), Full(accept))
if LiftRules.useXhtmlMimeType &&
accept.toLowerCase.contains("application/xhtml+xml") =>
"text/html; charset=utf-8"
case _ => "application/xhtml+xml; charset=utf-8"
}

i can't disable XHTML in whole projcet becouse then i'm losing
functionality like jquery datepicker etc.

Could You tell me what i did wrong?

Thanks

On 15 Gru, 10:38, Timothy Perrett  wrote:
> You need to put it in your Boot.scala file.
>
> determineContentType is of PartialFunction[(Box[Req], Box[String]), String] 
> type - this means that you can match on particular paths:
>
>     LiftRules.determineContentType = {
>       case (Full(Req("some" :: "path" :: Nil, "pdf", GetRequest)), 
> Full(accept))
>         if LiftRules.useXhtmlMimeType && 
> accept.toLowerCase.contains("application/xhtml+xml") =>
>             "application/xhtml+xml; charset=utf-8"
>       case _ => "text/html; charset=utf-8"
>     }
>
> Cheers, Tim
>
> On 15 Dec 2009, at 07:58, Tweek wrote:
>
> > Thanks for answer Tim.
>
> > I know it will be a nooby question, but how i need to define this
> > site, where i don't want XHTML ?
>
> > On 14 Gru, 12:30, Tim Nelson  wrote:
> >> You can use LiftRules.determineContentType to do this. Here is a
> >> sample from my project:
>
> >> LiftRules.determineContentType = {
> >>   case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
> >> accept.toLowerCase.contains("application/xhtml+xml") =>
> >>         "application/xhtml+xml; charset=utf-8"
> >>   case _ => "text/html; charset=utf-8"
>
> >> }
>
> >> Tim
>
> >> On Mon, Dec 14, 2009 at 3:59 AM, Tweek  wrote:
> >>> Hi Guys
>
> >>> Is it possible todisableXHTMLonly in one html file?
>
> >>> When i put
> >>> "LiftRules.useXhtmlMimeType = false"
> >>>  in Boot.scala then i'll swich this off in whole project.
>
> >>> Is any other place to put this line?
>
> >>> Thanks.
>
> >>> --
>
> >>> 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 
> >>> liftweb+unsubscr...@googlegroups.com.
> >>> For more options, visit this group 
> >>> athttp://groups.google.com/group/liftweb?hl=en.
>
> > --
>
> > 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 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Lift 1.1-M8

2009-12-15 Thread Timothy Perrett
No, it is not in yet. 

This is currently on the 2_8_0 branch and will be in Lift 2.0 (Scala 2.8 keeps 
being put back)

Cheers, Tim

On 15 Dec 2009, at 10:57, Oleg G. wrote:

> I'm wondering about scala 2.8 compatibility, is it in or when is it
> planned?
> 
> --
> 
> 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 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Lift 1.1-M8

2009-12-15 Thread Oleg G.
I'm wondering about scala 2.8 compatibility, is it in or when is it
planned?

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: How to disable XHTML?

2009-12-15 Thread Timothy Perrett
You need to put it in your Boot.scala file. 

determineContentType is of PartialFunction[(Box[Req], Box[String]), String] 
type - this means that you can match on particular paths:

LiftRules.determineContentType = {
  case (Full(Req("some" :: "path" :: Nil, "pdf", GetRequest)), 
Full(accept)) 
if LiftRules.useXhtmlMimeType && 
accept.toLowerCase.contains("application/xhtml+xml") =>
"application/xhtml+xml; charset=utf-8"
  case _ => "text/html; charset=utf-8"
}

Cheers, Tim

On 15 Dec 2009, at 07:58, Tweek wrote:

> Thanks for answer Tim.
> 
> I know it will be a nooby question, but how i need to define this
> site, where i don't want XHTML ?
> 
> 
> On 14 Gru, 12:30, Tim Nelson  wrote:
>> You can use LiftRules.determineContentType to do this. Here is a
>> sample from my project:
>> 
>> LiftRules.determineContentType = {
>>   case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
>> accept.toLowerCase.contains("application/xhtml+xml") =>
>> "application/xhtml+xml; charset=utf-8"
>>   case _ => "text/html; charset=utf-8"
>> 
>> }
>> 
>> Tim
>> 
>> On Mon, Dec 14, 2009 at 3:59 AM, Tweek  wrote:
>>> Hi Guys
>> 
>>> Is it possible todisableXHTMLonly in one html file?
>> 
>>> When i put
>>> "LiftRules.useXhtmlMimeType = false"
>>>  in Boot.scala then i'll swich this off in whole project.
>> 
>>> Is any other place to put this line?
>> 
>>> Thanks.
>> 
>>> --
>> 
>>> 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 
>>> liftweb+unsubscr...@googlegroups.com.
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/liftweb?hl=en.
> 
> --
> 
> 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 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




Re: [Lift] Re: Location on Mac?

2009-12-15 Thread Timothy Perrett
Correct - I generally only update the installers periodically with major or 
minor releases of maven... i haven't the time to update with every micro 
release.

As david points out, not everyone has mac ports installed. You can of course 
use the macports version - the lift installer is just an easy, standalone 
access route; take it or leave it. 

Cheers, Tim

On 14 Dec 2009, at 22:12, Jaroslaw Zabiello wrote:

> On 14 Gru, 20:56, David Pollak  wrote:
> 
>> The Lift installer simply installs Maven 2.2.0 on your Mac
> 
> There is newer Maven version available in MacPorts:
> 
> $ port search maven2
> maven2 @2.2.1 (java, devel)
> 

--

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 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.