Re: [Lift] ProtoUser i18n

2010-02-02 Thread Adam Warski
Sure:

(a) http://github.com/dpp/liftweb/issues/issue/320
(b) http://gist.github.com/293435

I've also updated the wiki.

On Feb 2, 2010, at 8:10 PM, Indrajit Raychaudhuri wrote:

> Adam, can you please (a) open a ticket and (b) create a gist 
> (http://gist.github.com/) of the patch and refer to it from the ticket? We'll 
> take it up from there.
> 
> Tim, +1 on not having spaces in properties.
> 
> Cheers, Indrajit
> 
> On 02/02/10 10:41 PM, Timothy Perrett wrote:
>> Sure - one of us will take this up... its minor.
>> 
>> I propose we agree a policy, and use that going forward... should keys have 
>> spaces? "no" would be my default response... (i tend to separate with full 
>> stops) if thats so, lets just clear that out now, and do a breaking changes 
>> ann.
>> 
>> Cheers, Tim
>> 
>> On 2 Feb 2010, at 17:06, David Pollak wrote:
>> 
>>> I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle 
>>> this issue going forward (making sure the patch is good, putting it on a 
>>> branch, opening a ticket, putting it on review board, and sending out any 
>>> breaking changes email)?
>> 
> 
> -- 
> 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.
> 

-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu




-- 
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] Facebook Application

2010-02-02 Thread celestocalculus
Hello,
I'm an intermediate lift developer. Suddenly, it has become my first
choice framework for web applications. I really think it's a nice
framework you guys are doing a great job.
I'm new on facebook application development and I have been looking at
the liftweb facebook API. I really don't know how to put this but I'm
just blank, I don't know where to start. I would really appreciate it
if I get a step by step explanation. All the book I got on facebook
apps are on php and I find it difficult to match the php codes to
their corresponding lift counterparts.

Please I'll also appreciate sample codes, please let it be step by
step and on point.

Thanks in advance.

-- 
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-Json doesn't appear to be correctly handling attributes.

2010-02-02 Thread Joni Freeman
Hi Jonathan,

Yes, definitely a bug. Could you please open a ticket (http://
github.com/dpp/liftweb/issues) and I will take a look at it. And
thanks for the test case!

Cheers Joni

On Feb 3, 3:41 am, Jonathan Ferguson  wrote:
> When converting XML to Json attributes are being lost, given the below XML
> document, we would expect
> {"word":{"word":"content","self":"http://localhost:8080/word/example
> ","term":"example","available":"true"}}
> where as we get {"word":"content"}
> example XML:
> http://localhost:8080/word/example";
> available="true">content
>
> This is been tested on M1 and trunk.
>
> Thanks in advance.
>
> To repeat
>
> // From the command line, adjust paths as needed
>
> $scala -cp
> /Users/jono/.m2/repository/com/thoughtworks/paranamer/paranamer/2.0/paranamer-2.0.jar:/Users/jono/.m2/repository/net/liftweb/lift-json/2.0-SNAPSHOT/lift-json-2.0-SNAPSHOT.jar
>
> import scala.xml._
> import net.liftweb.json.JsonAST._
> import net.liftweb.json.Printer
> import net.liftweb.json.Xml
>
> val example1 = http://localhost:8080/word/example";
> available="true">content
> val expected1 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
> val got1 = Printer.compact(render(Xml.toJson(example1)))
>
> val example2 = http://localhost:8080/word/example";
> available="true">
> val expected2 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
> val got2 = Printer.compact(render(Xml.toJson(example2)))
>
> // Add to src/test/scala/net/liftweb/json/XmlBugs.scala
>
>   "Jono's XML with attributes parses correctly" in {
> val example1 = http://localhost:8080/word/example";
> available="true">content
> val expected1 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
>
> val example2 = http://localhost:8080/word/example";
> available="true">
> val expected2 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
>
>     Printer.compact(render(toJson(example1))) mustEqual expected1
>     Printer.compact(render(toJson(example2))) mustEqual expected2
>   }
>
> Here is what I get when I run the example provided.
>
> $scala -cp
> /Users/jono/.m2/repository/com/thoughtworks/paranamer/paranamer/2.0/paranamer-2.0.jar:/Users/jono/.m2/repository/net/liftweb/lift-json/2.0-SNAPSHOT/lift-json-2.0-SNAPSHOT.jar
> Welcome to Scala version 2.7.7.final (Java HotSpot(TM) 64-Bit Server VM,
> Java 1.6.0_17).
> Type in expressions to have them evaluated.
> Type :help for more information.
>
> scala> import scala.xml._
> import scala.xml._
>
> scala> import net.liftweb.json.JsonAST._
> import net.liftweb.json.JsonAST._
>
> scala> import net.liftweb.json.Printer
> import net.liftweb.json.Printer
>
> scala> import net.liftweb.json.Xml
> import net.liftweb.json.Xml
>
> scala>
>
> scala> val example1 =  self="http://localhost:8080/word/example"; available="true">content
> example1: scala.xml.Elem = http://localhost:8080/word/example";
> term="example" available="true">content
>
> scala> val expected1 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
> expected1: java.lang.String = 
> {"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}
>
> scala> val got1 = Printer.compact(render(Xml.toJson(example1)))
> got1: String = {"word":"content"}
>
> scala>
>
> Jono
>
> P.S I thought I had a fix, but it broke one of HarryH's tests.
>
> scala>
>
> scala> val example2 =  self="http://localhost:8080/word/example"; available="true">
> example2: scala.xml.Elem = http://localhost:8080/word/example";
> term="example" available="true">
>
> scala> val expected2 = 
> """{"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}""";
> expected2: java.lang.String = 
> {"word":{"word":"content","self":"http://localhost:8080/word/example","term":"example","available":"true"}}
>
> scala> val got2 = Printer.compact(render(Xml.toJson(example2)))
> got2: String = {"word":null}
>
> scala>

-- 
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 security vulnerability

2010-02-02 Thread aw

On Feb 2, 4:57 pm, David Pollak  wrote:
> I'd like to get a sense of how important the community views this defect.
> Is it a "backport the fix to every milestone and release yesterday" or is it
> a "fix it in 2.0-M2" or someplace in between.

I vote for 2.0-M2.

-- 
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.



Fwd: Re: [Lift] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
I replied to Heiko by mistake.

-
From: Naftoli Gugenheim
To: liftweb@googlegroups.com;
Subject: Re: [Lift] Github issue browser
Date: Feb 2, 10:37 PM

I should mention that I discovered it's super-easy to get a (existing) maven 
lift app on stax.net. You basically have to add the repositories (see the stax 
wiki) to your settings.xml (or pom I suppose) and type
mvn stax:deploy
or to test run
mvn stax:run
(Of course you have to sign up too :) )

-
Heiko Seeberger wrote:

Cool! Did not know there is an API.

Heiko

On Wednesday, February 3, 2010, Naftoli Gugenheim  wrote:
> If anyone finds github's issue manager too limited, I made a teeny little app 
> that lets you list the issues in a more configurable way. All comments 
> welcome!
> http://github-issues.naftoligug.staxapps.net/index
>
> You do not need to log in or register. Right now it only browses issues for 
> dpp/liftweb. Use the check boxes on top to filter tickets, click column 
> headers to sort, and click 'more' or 'less' on a ticket to view its 
> description.
>
> Enjoy!
>
>
>
>
> --
> 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.
>

-- 
Heiko Seeberger

Work: weiglewilczek.com
Blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

-- 
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] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
I should mention that I discovered it's super-easy to get a (existing) maven 
lift app on stax.net. You basically have to add the repositories (see the stax 
wiki) to your settings.xml (or pom I suppose) and type
mvn stax:deploy
or to test run
mvn stax:run
(Of course you have to sign up too :) )

-
Heiko Seeberger wrote:

Cool! Did not know there is an API.

Heiko

On Wednesday, February 3, 2010, Naftoli Gugenheim  wrote:
> If anyone finds github's issue manager too limited, I made a teeny little app 
> that lets you list the issues in a more configurable way. All comments 
> welcome!
> http://github-issues.naftoligug.staxapps.net/index
>
> You do not need to log in or register. Right now it only browses issues for 
> dpp/liftweb. Use the check boxes on top to filter tickets, click column 
> headers to sort, and click 'more' or 'less' on a ticket to view its 
> description.
>
> Enjoy!
>
>
>
>
> --
> 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.
>

-- 
Heiko Seeberger

Work: weiglewilczek.com
Blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

-- 
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] Lift security vulnerability

2010-02-02 Thread David Pollak
On Tue, Feb 2, 2010 at 5:43 PM, David Pollak
wrote:

> The xml spec only allows tab, cr, and lf... no other control chars.
>
> The defect is in the scala.xml.Utility.escape method
>
> This method is an amazing piece of crap... every character in the string is
> wrapped in a Character object and then wrapped in a Cons cell.
>

Okay... I was wrong about this... the RichString.elements method returns an
Iterator.  My patch gives a 3x performance improvement over Scala 2.7.7 and
a 4x improvement over 2.8.

The patch is submitted: http://lampsvn.epfl.ch/trac/scala/ticket/3014

I will also put a patch to Lift on review board in a few minutes.


>
> The fix will improve performance radically.
>
> *Connected by MOTOBLUR™ on T-Mobile
> *
>
> -Original message-
>
> *From: *Naftoli Gugenheim *
> To: *liftweb *
> Sent: *Wed, Feb 3, 2010 01:31:24 GMT+00:00*
> Subject: *Re: [Lift] Lift security vulnerability
>
> If you scan the whole page wouldn't it affect performance? Or will you
> put a safeguard in the input field / processing query parameters?
>
> 2010/2/2 Naftoli Gugenheim :
>
> > Is that not a defect of the browsers?
> >
> > On Tue, Feb 2, 2010 at 7:57 PM, David Pollak wrote:
> >> Folks,
> >>
> >> Turns out there's a security vulnerability in Lift.  It's possible to
> insert
> >> control characters into input fields.  When the control characters are
> sent
> >> back to the browser, the browser will choke.  An example can be seen at
> >> http://demo.liftweb.net  Go to that page, enter your name in the chat
> input
> >> box and then reload the page.  In Firefox, the page will not be rendered
> at
> >> all.  In Chrome, rendering will stop at the point that the control
> character
> >> is encountered.  This can cause a denial of service attack on any page
> that
> >> contains user input.
> >>
> >> I will work on a fix for this vulnerability (filter control characters
> other
> >> than \n and \r from Text fields when the page is being sent back to the
> >> browser.)
> >>
> >> I'd like to get a sense of how important the community views this
> defect.
> >> Is it a "backport the fix to every milestone and release yesterday" or
> is it
> >> a "fix it in 2.0-M2" or someplace in between.
> >>
> >> 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.
> >>
> >
> >
>
> --
> 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] Github issue browser

2010-02-02 Thread Heiko Seeberger
Cool! Did not know there is an API.

Heiko

On Wednesday, February 3, 2010, Naftoli Gugenheim  wrote:
> If anyone finds github's issue manager too limited, I made a teeny little app 
> that lets you list the issues in a more configurable way. All comments 
> welcome!
> http://github-issues.naftoligug.staxapps.net/index
>
> You do not need to log in or register. Right now it only browses issues for 
> dpp/liftweb. Use the check boxes on top to filter tickets, click column 
> headers to sort, and click 'more' or 'less' on a ticket to view its 
> description.
>
> Enjoy!
>
>
>
>
> --
> 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.
>

-- 
Heiko Seeberger

Work: weiglewilczek.com
Blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

-- 
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] Github issue browser

2010-02-02 Thread Naftoli Gugenheim
If anyone finds github's issue manager too limited, I made a teeny little
app that lets you list the issues in a more configurable way. All comments
welcome!

http://github-issues.naftoligug.staxapps.net/index

You do not need to log in or register. Right now it only browses issues for
dpp/liftweb. Use the check boxes on top to filter tickets, click column
headers to sort, and click 'more' or 'less' on a ticket to view its
description.

Enjoy!

-- 
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] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
Neat! Thanks!

On Tue, Feb 2, 2010 at 11:18 PM, David Pollak  wrote:

>
>
> On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
>
>> Hmm... Can the code catch the exception and try to execute a script that
>> restarts it? :)
>
>
> The Sun JVM has the following flag:
>
>  -XX:OnOutOfMemoryError="script_to_execute"
>
> This will allow an auto-restart.
>
>
>>
>>
>> On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows wrote:
>>
>>> Not generally within your code no.  The VM is out of memory, not the
>>> webapp, so the VM has to be restarted.  However you could have a nagios
>>> other monitoring service auto-restart in such cases.
>>> On the other hand... you really shouldn't be getting a OOM error in
>>> Java...
>>>
>>> On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim 
>>> wrote:
>>>
 Is there any way to have a webapp handle an out of memory exception
 semi-gracefully? E.g., release session, restart, something other than 
 having
 to ssh into the server?

 --
 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.


>>>
>>>
>>> --
>>> James A Barrows
>>>
>>>  --
>>> 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, 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.
>

-- 
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] Handle OOM

2010-02-02 Thread David Pollak
On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:

> Hmm... Can the code catch the exception and try to execute a script that
> restarts it? :)


The Sun JVM has the following flag:

 -XX:OnOutOfMemoryError="script_to_execute"

This will allow an auto-restart.


>
>
> On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows  wrote:
>
>> Not generally within your code no.  The VM is out of memory, not the
>> webapp, so the VM has to be restarted.  However you could have a nagios
>> other monitoring service auto-restart in such cases.
>> On the other hand... you really shouldn't be getting a OOM error in
>> Java...
>>
>> On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim 
>> wrote:
>>
>>> Is there any way to have a webapp handle an out of memory exception
>>> semi-gracefully? E.g., release session, restart, something other than having
>>> to ssh into the server?
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>> James A Barrows
>>
>>  --
>> 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, 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] Is there any way to set default source encoding in Lift2.0-scala280 ?

2010-02-02 Thread pomu0325
Hi, I'm quite a newbie to Lift. I'm now trying to port my first Lift
application from Lift1.0.2 to latest Lift2.0-scala280, and faced a
problem relating to source encoding.

I managed to merge pom.xml and some codes on Boot.scala, and succeeded
to build my application, but when I access to it from browser, it
displays:

Message: java.nio.charset.UnmappableCharacterException: Input length =
2
java.nio.charset.CoderResult.throwException(CoderResult.java:261)
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:319)
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
java.io.InputStreamReader.read(InputStreamReader.java:167)
java.io.BufferedReader.fill(BufferedReader.java:136)
java.io.BufferedReader.read(BufferedReader.java:157)
scala.io.BufferedSource$$anonfun$1$$anonfun$apply$1.apply
(BufferedSource.scala:29)
scala.io.BufferedSource$$anonfun$1$$anonfun$apply$1.apply
(BufferedSource.scala:29)
scala.io.Codec.wrap(Codec.scala:65)
scala.io.BufferedSource$$anonfun$1.apply(BufferedSource.scala:29)
scala.io.BufferedSource$$anonfun$1.apply(BufferedSource.scala:29)
scala.collection.Iterator$$anon$13.next(Iterator.scala:145)
scala.collection.Iterator$$anon$24.hasNext(Iterator.scala:435)
scala.collection.Iterator$$anon$19.hasNext(Iterator.scala:326)
scala.io.Source.hasNext(Source.scala:209)
net.liftweb.util.PCDataXmlParser$$anonfun$apply$2$$anonfun$apply
$4.apply(PCDataMarkupParser.scala:184)

 ... and more

  I traced Lift source and found out that "Codec" argument is not
passed to Source.fromInputStream(in) at PCDataMarkupParser.scala(l.
182). "Codec" api seems to be introduced newly in Scala 2.8, and
Source.fromInputStream() uses Codec.default as a implicit argument.

  My problem here, is I'm using utf-8 for write *.html templates, but
my Codec.default is "MS932"(Japanese characterset in Windows), so
failing to decode my template files. I looked through Scala lib
source, and found out Codec.default it is actually an alias to
java.lang.Charset.getDefault(), so I just set -Djava.encoding=utf-8 to
MVN_OPTS and solved the problem, but considering deployment, I don't
think it's a smart way.

  BTW, I confirmed this does not occur on Lift2.0-scala2.7.7. I think
default source encoding should be somehow configurable in Lift to
achieve portability.

Kind regards,

Pomu TAKEUCHI

-- 
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: [flot] jquery.flot.css breaks the chart in IE8

2010-02-02 Thread Peter Robinett
Hi Jarod,

I'm afraid I don't understand your problem. Are you staying that the
combination of the blueprint and flot CSS files leads to incorrect
charts in IE8 but the charts are rendered correctly when the blueprint
file is not included? If so, is this a problem with how Lift includes
the files or in one of the libraries themselves? Since I will be
working on upgrading Lift's version of Flot to the latest (see
http://groups.google.com/group/liftweb/browse_thread/thread/a25a93f55c181475),
can you confirm that this is a problem in Flot 0.6? If so, please open
a ticket at http://github.com/dpp/liftweb/issues.

Thanks,
Peter

On Feb 1, 10:02 pm, Jarod Liu  wrote:
> I don't use the blueprint css. It works fine without jquery.flot.css.
> Maybe it would better do not generate the link to jquery.flot.css by
> default( I think most real world app won't use the blueprint css). And
> add some kind of options to make flot generate the link

-- 
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: Upgrade to Flot 0.6

2010-02-02 Thread Peter Robinett
You're welcome. I'm happy to look into adding Flot plugin support, but
please open a ticket on GitHub (http://github.com/dpp/liftweb/issues).

Peter

On Feb 1, 10:22 am, Aaron Valade  wrote:
> Thanks Peter!
>
> One of the other things that changed between Flot 0.4 and 0.6 is that
> a plugin structure was introduced and some functionality was pushed
> out of the core and into a plugin, specifically the selection
> functionality which can be used for zooming and other interactions
> with the charted data.  I hate to tack on requests for more work, but
> if you get a chance, I'd appreciate if you could add functionality to
> the Lift Flot Widget to allow use of these plugins. I'm in the process
> of making some small changes with the Flot Widget to support these
> plugins in my local fork of Lift and would be happy to share what I've
> done, if that's allowed.  Otherwise, I'd be very eager to provide
> additional testing of any capabilities that you make available or any
> other help that I can provide within the guidelines of the Lift
> project.
>
> Thanks,
> - A
>
>
>
> On Mon, Feb 1, 2010 at 12:28 PM, Peter Robinett  
> wrote:
> > Ok guys, I'll work on this in the next few days (I'm out of town right
> > now).
>
> > Peter
>
> > On Jan 31, 3:20 pm, Timothy Perrett  wrote:
> >> It seems like peter will take ownership of this and make it happen
> >> ASAP so a patch / diff should not be needed.
>
> >> Peter, please confirm when you will roll this in a branch and put it
> >> on review board?
>
> >> Cheers, Tim
>
> >> Sent from my iPhone
>
> >> On 31 Jan 2010, at 22:48, Aaron Valade  wrote:
>
> >> > I'm more than happy to submit the patch under the Lift IP policy,
> >> > but I understand if you don't feel comfortable with that. And I can
> >> > submit it anyway that works for you. I'm just looking to help give
> >> > back to everyone that's helped me out. Albeit in a very, very small
> >> > way.
>
> >> > Sent from my iPhone
>
> >> > On Jan 31, 2010, at 5:43 PM, David Pollak  >> > > wrote:
>
> >> >> Peter,
>
> >> >> Please keep in mind the Lift IP policy.  We don't pull from other
> >> >> repositories nor do we accept patches.  We'll have to do the Flot
> >> >> 0.6 ourselves.
>
> >> >> Thanks,
>
> >> >> David
>
> >> >> On Fri, Jan 29, 2010 at 4:44 PM, Peter Robinett  >> >> > wrote:
> >> >> Aaron, thanks so much for taking the initiative to upgrade Flot, it's
> >> >> something that I've been meaning to do. Just skimming over your
> >> >> changes, everything looks good. As for not using the packed excanvas
> >> >> file, that should be ok since Lift runs the YUI compressor by default
> >> >> on all Javascript files (correct, David?). Of course, broken URLs
> >> >> need
> >> >> to be fixed.
>
> >> >> David, how do we go about merging these changes?
>
> >> >> Peter
>
> >> >> On Jan 29, 3:32 pm, Aaron Valade  wrote:
> >> >> > There is one break that my commit made which I just realized
> >> >> after I
> >> >> > had sent this email in that I deleted the excanvas.pack.js file and
> >> >> > dropped in the excanvas.js that was included with the Flot 0.6
> >> >> > distribution but didn't rename it to be excanvas.pack.js and didn't
> >> >> > change the path in the Flot.scala file.
>
> >> >> > I can make an additional commit that fixes this, if it pleases
> >> >> the court. :-)
>
> >> >> > - A
>
> >> >> > On Fri, Jan 29, 2010 at 6:15 PM, David Pollak
>
> >> >> >  wrote:
> >> >> > > Peter,
>
> >> >> > > What do you think of the upgrade (given that you're the most
> >> >> Flot-ish Lift
> >> >> > > committer)?
>
> >> >> > > Thanks,
>
> >> >> > > David
>
> >> >> > > On Fri, Jan 29, 2010 at 12:32 PM, Aaron Valade
> >> >>  wrote:
>
> >> >> > >> Hello all,
> >> >> > >> I needed to use some of the recent functionality in the Flot
> >> >> jQuery
> >> >> > >> plugin which is version 0.6.  The Flot lift-widget is
> >> >> currently at
> >> >> > >> 0.4.  So I upgraded it to use the new version and I've posted
> >> >> the
> >> >> > >> commit on github:
>
> >> >> > >>http://github.com/avalade/liftweb/commit/fa3d76fb72a7f74d13265e4039f0
> >> >> ...
>
> >> >> > >> Version 0.6 of Flot does make one breaking change which
> >> >> requires some
> >> >> > >> of the options which were previously described as a top level
> >> >> > >> attributes on the FlotOptions object to be pushed inside of a
> >> >> new
> >> >> > >> attribute called FlotSeriesOptions.  I've made the appropriate
> >> >> changes
> >> >> > >> to the various example Flot charts which were included in the
> >> >> flotDemo
> >> >> > >> module.
>
> >> >> > >> Would it be possible to get this change upstream?
>
> >> >> > >> - Aaron
>
> >> >> > >> --
> >> >> > >> 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

[Lift] Re: MYSQL TEXT field

2010-02-02 Thread XiaomingZheng
thanks

On Feb 2, 9:58 am, Indrajit Raychaudhuri  wrote:
> Look for MappedText. That maps to DriverType.clobColumnType (LONGTEXT
> for MySQL).
>
> Cheers, Indrajit
>
> On 02/02/10 11:27 AM, XiaomingZheng wrote:
>
> > hi guys:
> > my app needs to use one field of mysql text type, but in Lift mapper
> > package, and i don't find any MappedField is suitable. any ideas?
> > 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 at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Handle OOM

2010-02-02 Thread Jim Barrows
That would require memory allocation etc to do so.  Which is of course, a
problem at this point.


On Tue, Feb 2, 2010 at 6:49 PM, Naftoli Gugenheim wrote:

> Hmm... Can the code catch the exception and try to execute a script that
> restarts it? :)
>
> On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows  wrote:
>
>> Not generally within your code no.  The VM is out of memory, not the
>> webapp, so the VM has to be restarted.  However you could have a nagios
>> other monitoring service auto-restart in such cases.
>> On the other hand... you really shouldn't be getting a OOM error in
>> Java...
>>
>> On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim 
>> wrote:
>>
>>> Is there any way to have a webapp handle an out of memory exception
>>> semi-gracefully? E.g., release session, restart, something other than having
>>> to ssh into the server?
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>> James A Barrows
>>
>>  --
>> 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.
>



-- 
James A Barrows

-- 
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] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
Hmm... Can the code catch the exception and try to execute a script that
restarts it? :)

On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows  wrote:

> Not generally within your code no.  The VM is out of memory, not the
> webapp, so the VM has to be restarted.  However you could have a nagios
> other monitoring service auto-restart in such cases.
> On the other hand... you really shouldn't be getting a OOM error in
> Java...
>
> On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim wrote:
>
>> Is there any way to have a webapp handle an out of memory exception
>> semi-gracefully? E.g., release session, restart, something other than having
>> to ssh into the server?
>>
>> --
>> 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.
>>
>>
>
>
> --
> James A Barrows
>
>  --
> 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] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
Exciting! :)

On Tue, Feb 2, 2010 at 8:43 PM, David Pollak
wrote:

> The xml spec only allows tab, cr, and lf... no other control chars.
>
> The defect is in the scala.xml.Utility.escape method
>
> This method is an amazing piece of crap... every character in the string is
> wrapped in a Character object and then wrapped in a Cons cell.
>
> The fix will improve performance radically.
>
> *Connected by MOTOBLUR™ on T-Mobile
> *
>
> -Original message-
>
> *From: *Naftoli Gugenheim *
> To: *liftweb *
> Sent: *Wed, Feb 3, 2010 01:31:24 GMT+00:00*
> Subject: *Re: [Lift] Lift security vulnerability
>
> If you scan the whole page wouldn't it affect performance? Or will you
> put a safeguard in the input field / processing query parameters?
>
> 2010/2/2 Naftoli Gugenheim :
>
> > Is that not a defect of the browsers?
> >
> > On Tue, Feb 2, 2010 at 7:57 PM, David Pollak wrote:
> >> Folks,
> >>
> >> Turns out there's a security vulnerability in Lift.  It's possible to
> insert
> >> control characters into input fields.  When the control characters are
> sent
> >> back to the browser, the browser will choke.  An example can be seen at
> >> http://demo.liftweb.net  Go to that page, enter your name in the chat
> input
> >> box and then reload the page.  In Firefox, the page will not be rendered
> at
> >> all.  In Chrome, rendering will stop at the point that the control
> character
> >> is encountered.  This can cause a denial of service attack on any page
> that
> >> contains user input.
> >>
> >> I will work on a fix for this vulnerability (filter control characters
> other
> >> than \n and \r from Text fields when the page is being sent back to the
> >> browser.)
> >>
> >> I'd like to get a sense of how important the community views this
> defect.
> >> Is it a "backport the fix to every milestone and release yesterday" or
> is it
> >> a "fix it in 2.0-M2" or someplace in between.
> >>
> >> 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.
> >>
> >
> >
>
> --
> 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] Lift security vulnerability

2010-02-02 Thread David Pollak
The xml spec only allows tab, cr, and lf... no other control chars.

The defect is in the scala.xml.Utility.escape method

This method is an amazing piece of crap... every character in the string is 
wrapped in a Character object and then wrapped in a Cons cell.  

The fix will improve performance radically.

Connected by MOTOBLUR™ on T-Mobile

-Original message-
From: Naftoli Gugenheim 
To: liftweb 
Sent: Wed, Feb 3, 2010 01:31:24 GMT+00:00
Subject: Re: [Lift] Lift security vulnerability

If you scan the whole page wouldn't it affect performance? Or will you
put a safeguard in the input field / processing query parameters?

2010/2/2 Naftoli Gugenheim :
> Is that not a defect of the browsers?
>
> On Tue, Feb 2, 2010 at 7:57 PM, David Pollak  
> wrote:
>> Folks,
>>
>> Turns out there's a security vulnerability in Lift.  It's possible to insert
>> control characters into input fields.  When the control characters are sent
>> back to the browser, the browser will choke.  An example can be seen at
>> http://demo.liftweb.net  Go to that page, enter your name in the chat input
>> box and then reload the page.  In Firefox, the page will not be rendered at
>> all.  In Chrome, rendering will stop at the point that the control character
>> is encountered.  This can cause a denial of service attack on any page that
>> contains user input.
>>
>> I will work on a fix for this vulnerability (filter control characters other
>> than \n and \r from Text fields when the page is being sent back to the
>> browser.)
>>
>> I'd like to get a sense of how important the community views this defect.
>> Is it a "backport the fix to every milestone and release yesterday" or is it
>> a "fix it in 2.0-M2" or someplace in between.
>>
>> 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.
>>
>
>

-- 
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] Handle OOM

2010-02-02 Thread Jim Barrows
Not generally within your code no.  The VM is out of memory, not the webapp,
so the VM has to be restarted.  However you could have a nagios other
monitoring service auto-restart in such cases.
On the other hand... you really shouldn't be getting a OOM error in
Java...

On Tue, Feb 2, 2010 at 5:17 PM, Naftoli Gugenheim wrote:

> Is there any way to have a webapp handle an out of memory exception
> semi-gracefully? E.g., release session, restart, something other than having
> to ssh into the server?
>
> --
> 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.
>
>


-- 
James A Barrows

-- 
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] lift-Json doesn't appear to be correctly handling attributes.

2010-02-02 Thread Jonathan Ferguson
When converting XML to Json attributes are being lost, given the below XML
document, we would expect
{"word":{"word":"content","self":"http://localhost:8080/word/example
","term":"example","available":"true"}}
where as we get {"word":"content"}
example XML:
http://localhost:8080/word/example";
available="true">content

This is been tested on M1 and trunk.

Thanks in advance.

To repeat

// From the command line, adjust paths as needed

$scala -cp
/Users/jono/.m2/repository/com/thoughtworks/paranamer/paranamer/2.0/paranamer-2.0.jar:/Users/jono/.m2/repository/net/liftweb/lift-json/2.0-SNAPSHOT/lift-json-2.0-SNAPSHOT.jar

import scala.xml._
import net.liftweb.json.JsonAST._
import net.liftweb.json.Printer
import net.liftweb.json.Xml

val example1 = http://localhost:8080/word/example";
available="true">content
val expected1 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";
val got1 = Printer.compact(render(Xml.toJson(example1)))


val example2 = http://localhost:8080/word/example";
available="true">
val expected2 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";
val got2 = Printer.compact(render(Xml.toJson(example2)))


// Add to src/test/scala/net/liftweb/json/XmlBugs.scala

  "Jono's XML with attributes parses correctly" in {
val example1 = http://localhost:8080/word/example";
available="true">content
val expected1 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";

val example2 = http://localhost:8080/word/example";
available="true">
val expected2 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";

Printer.compact(render(toJson(example1))) mustEqual expected1
Printer.compact(render(toJson(example2))) mustEqual expected2
  }


Here is what I get when I run the example provided.


$scala -cp
/Users/jono/.m2/repository/com/thoughtworks/paranamer/paranamer/2.0/paranamer-2.0.jar:/Users/jono/.m2/repository/net/liftweb/lift-json/2.0-SNAPSHOT/lift-json-2.0-SNAPSHOT.jar
Welcome to Scala version 2.7.7.final (Java HotSpot(TM) 64-Bit Server VM,
Java 1.6.0_17).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.xml._
import scala.xml._

scala> import net.liftweb.json.JsonAST._
import net.liftweb.json.JsonAST._

scala> import net.liftweb.json.Printer
import net.liftweb.json.Printer

scala> import net.liftweb.json.Xml
import net.liftweb.json.Xml

scala>

scala> val example1 = http://localhost:8080/word/example"; available="true">content
example1: scala.xml.Elem = http://localhost:8080/word/example";
term="example" available="true">content

scala> val expected1 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";
expected1: java.lang.String = {"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}

scala> val got1 = Printer.compact(render(Xml.toJson(example1)))
got1: String = {"word":"content"}

scala>


Jono

P.S I thought I had a fix, but it broke one of HarryH's tests.



scala>

scala> val example2 = http://localhost:8080/word/example"; available="true">
example2: scala.xml.Elem = http://localhost:8080/word/example";
term="example" available="true">

scala> val expected2 = """{"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}""";
expected2: java.lang.String = {"word":{"word":"content","self":"
http://localhost:8080/word/example","term":"example","available":"true"}}

scala> val got2 = Printer.compact(render(Xml.toJson(example2)))
got2: String = {"word":null}

scala>

-- 
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: TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
Rather, display that not all items were saved.

2010/2/2 Naftoli Gugenheim :
> Additionally ItemsListEditor will catch SQLExceptions in ItemsList.save and 
> display them.
>
> On Tue, Feb 2, 2010 at 8:26 PM, Naftoli Gugenheim  
> wrote:
>> I have a patch on Review Board. I haven't asked on the list for the
>> committers to review it because I've needed to perfect it still. It
>> occurred to me that some of the tickets might not have been discussed
>> on the list, so I want to do so now in case I didn't yet, although the
>> enhancements included are trivial and pretty basic.
>> As you may know, the net.liftweb.mapper.view package contains some
>> useful Mapper-related components. One is TableEditor, which provides a
>> very simple snippet to edit a Mapper table--useful for very basic
>> lists. It's based on ItemsListEditor, which allows for similar
>> functionality in a much more configurable way. It in turn uses
>> ItemsList, which is a convenient way to hold a list of Mapper entities
>> and keep track of new items pending being saved, and items pending
>> removal. This way a user can cancel their edits, as long as they have
>> not clicked Save.
>> They tickets are:
>> 299 - ItemsList should be have refresh method to clear added/removed
>> without requerying database
>>  Until now it only had a reload method, which reset the state to that
>> of the database, clearing pending additions and deletions. This adds a
>> refresh method, which only reloads items but remembers pending
>> additions and deletions.
>> 300 - ItemsList.save unremoves removed unsaved items
>>  This is a defect. After a number of attempts, I made a more
>> substantial change to fix it.
>> 301 - ItemsListEditor should allow custom columns
>>  Provide a hook so user code can add additional columns, e.g., calculated 
>> data.
>> 302 - ItemsListEditor should display items pending removal, albeit in
>> strikeout font
>>  Previously when you click 'Remove' the item disappears, and only
>> reappears if you reload it without saving first. This places the items
>> at the end of the list, uneditable and in a strikeout font.
>>
>> I would like to add a new enhancement as well, namely to generate
>> javascript to prompt you if you try to leave the page with unsaved
>> items.
>> Thoughts?
>>
>> 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 at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
Additionally ItemsListEditor will catch SQLExceptions in
ItemsList.save and display them.

On Tue, Feb 2, 2010 at 8:26 PM, Naftoli Gugenheim  wrote:
> I have a patch on Review Board. I haven't asked on the list for the
> committers to review it because I've needed to perfect it still. It
> occurred to me that some of the tickets might not have been discussed
> on the list, so I want to do so now in case I didn't yet, although the
> enhancements included are trivial and pretty basic.
> As you may know, the net.liftweb.mapper.view package contains some
> useful Mapper-related components. One is TableEditor, which provides a
> very simple snippet to edit a Mapper table--useful for very basic
> lists. It's based on ItemsListEditor, which allows for similar
> functionality in a much more configurable way. It in turn uses
> ItemsList, which is a convenient way to hold a list of Mapper entities
> and keep track of new items pending being saved, and items pending
> removal. This way a user can cancel their edits, as long as they have
> not clicked Save.
> They tickets are:
> 299 - ItemsList should be have refresh method to clear added/removed
> without requerying database
>  Until now it only had a reload method, which reset the state to that
> of the database, clearing pending additions and deletions. This adds a
> refresh method, which only reloads items but remembers pending
> additions and deletions.
> 300 - ItemsList.save unremoves removed unsaved items
>  This is a defect. After a number of attempts, I made a more
> substantial change to fix it.
> 301 - ItemsListEditor should allow custom columns
>  Provide a hook so user code can add additional columns, e.g., calculated 
> data.
> 302 - ItemsListEditor should display items pending removal, albeit in
> strikeout font
>  Previously when you click 'Remove' the item disappears, and only
> reappears if you reload it without saving first. This places the items
> at the end of the list, uneditable and in a strikeout font.
>
> I would like to add a new enhancement as well, namely to generate
> javascript to prompt you if you try to leave the page with unsaved
> items.
> Thoughts?
>
> 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 at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
If you scan the whole page wouldn't it affect performance? Or will you
put a safeguard in the input field / processing query parameters?

2010/2/2 Naftoli Gugenheim :
> Is that not a defect of the browsers?
>
> On Tue, Feb 2, 2010 at 7:57 PM, David Pollak  
> wrote:
>> Folks,
>>
>> Turns out there's a security vulnerability in Lift.  It's possible to insert
>> control characters into input fields.  When the control characters are sent
>> back to the browser, the browser will choke.  An example can be seen at
>> http://demo.liftweb.net  Go to that page, enter your name in the chat input
>> box and then reload the page.  In Firefox, the page will not be rendered at
>> all.  In Chrome, rendering will stop at the point that the control character
>> is encountered.  This can cause a denial of service attack on any page that
>> contains user input.
>>
>> I will work on a fix for this vulnerability (filter control characters other
>> than \n and \r from Text fields when the page is being sent back to the
>> browser.)
>>
>> I'd like to get a sense of how important the community views this defect.
>> Is it a "backport the fix to every milestone and release yesterday" or is it
>> a "fix it in 2.0-M2" or someplace in between.
>>
>> 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.
>>
>
>

-- 
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] Lift security vulnerability

2010-02-02 Thread Naftoli Gugenheim
Is that not a defect of the browsers?

On Tue, Feb 2, 2010 at 7:57 PM, David Pollak
 wrote:
> Folks,
>
> Turns out there's a security vulnerability in Lift.  It's possible to insert
> control characters into input fields.  When the control characters are sent
> back to the browser, the browser will choke.  An example can be seen at
> http://demo.liftweb.net  Go to that page, enter your name in the chat input
> box and then reload the page.  In Firefox, the page will not be rendered at
> all.  In Chrome, rendering will stop at the point that the control character
> is encountered.  This can cause a denial of service attack on any page that
> contains user input.
>
> I will work on a fix for this vulnerability (filter control characters other
> than \n and \r from Text fields when the page is being sent back to the
> browser.)
>
> I'd like to get a sense of how important the community views this defect.
> Is it a "backport the fix to every milestone and release yesterday" or is it
> a "fix it in 2.0-M2" or someplace in between.
>
> 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.
>

-- 
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] TableEditor enhancements

2010-02-02 Thread Naftoli Gugenheim
I have a patch on Review Board. I haven't asked on the list for the
committers to review it because I've needed to perfect it still. It
occurred to me that some of the tickets might not have been discussed
on the list, so I want to do so now in case I didn't yet, although the
enhancements included are trivial and pretty basic.
As you may know, the net.liftweb.mapper.view package contains some
useful Mapper-related components. One is TableEditor, which provides a
very simple snippet to edit a Mapper table--useful for very basic
lists. It's based on ItemsListEditor, which allows for similar
functionality in a much more configurable way. It in turn uses
ItemsList, which is a convenient way to hold a list of Mapper entities
and keep track of new items pending being saved, and items pending
removal. This way a user can cancel their edits, as long as they have
not clicked Save.
They tickets are:
299 - ItemsList should be have refresh method to clear added/removed
without requerying database
  Until now it only had a reload method, which reset the state to that
of the database, clearing pending additions and deletions. This adds a
refresh method, which only reloads items but remembers pending
additions and deletions.
300 - ItemsList.save unremoves removed unsaved items
  This is a defect. After a number of attempts, I made a more
substantial change to fix it.
301 - ItemsListEditor should allow custom columns
  Provide a hook so user code can add additional columns, e.g., calculated data.
302 - ItemsListEditor should display items pending removal, albeit in
strikeout font
  Previously when you click 'Remove' the item disappears, and only
reappears if you reload it without saving first. This places the items
at the end of the list, uneditable and in a strikeout font.

I would like to add a new enhancement as well, namely to generate
javascript to prompt you if you try to leave the page with unsaved
items.
Thoughts?

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 at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Automatic compiilation fails with lift-archetype-basic 2.0-M1 in Eclipse

2010-02-02 Thread glenn
I just started a new Lift project in Eclipse using the latest basic
archetype and I keep getting a slew of validation errors whenever I
add or edit a Scala source file. The only way to rid the project of
these errors is to do a Project/Clean..., which is really annoying and
greatly slows development.

Is anyone else experiencing same?

By the way, I'm using Eclipse 3.5.1, Eclipse maven ide (Maven
Integration for Eclipse) and the Scala Eclipse plugin from
http://www.scala-lang.org/scala-eclipse-plugin. I tested that the
Maven integration and the scala plugin are working OK independently,
so they are not the problem.

Glenn

-- 
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] Lift security vulnerability

2010-02-02 Thread David Pollak
Folks,

Turns out there's a security vulnerability in Lift.  It's possible to insert
control characters into input fields.  When the control characters are sent
back to the browser, the browser will choke.  An example can be seen at
http://demo.liftweb.net  Go to that page, enter your name in the chat input
box and then reload the page.  In Firefox, the page will not be rendered at
all.  In Chrome, rendering will stop at the point that the control character
is encountered.  This can cause a denial of service attack on any page that
contains user input.

I will work on a fix for this vulnerability (filter control characters other
than \n and \r from Text fields when the page is being sent back to the
browser.)

I'd like to get a sense of how important the community views this defect.
Is it a "backport the fix to every milestone and release yesterday" or is it
a "fix it in 2.0-M2" or someplace in between.

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.



[Lift] Control autoIncludeAjax by request?

2010-02-02 Thread Naftoli Gugenheim
Hi. I have an app that is used both on BlackBerrys and on the desktop. I
would like to include the necessary ajax for garbage collection when the
page is loaded on a desktop but not on the BlackBerry.
However, autoIncludeAjax seems to take a LiftSession. Is such a thing
possible? 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 at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Handle OOM

2010-02-02 Thread Naftoli Gugenheim
Is there any way to have a webapp handle an out of memory exception 
semi-gracefully? E.g., release session, restart, something other than having to 
ssh into the server?

-- 
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 use API offline?

2010-02-02 Thread Strom
Thanks!

On Feb 2, 11:19 pm, Timothy Perrett  wrote:
> Afraid not - it will build a "site" directory within the "target" directory 
> of any given module... they are just html pages, so load up the index page 
> and away you go.
>
> Cheers, Tim
>
> On 2 Feb 2010, at 23:10, Naftoli Gugenheim wrote:
>
> > I think it ends up in a jar in your maven repository.
>
> > -
> > Strom wrote:
>
> > Sorry...double checked and I didn't notice that I have to be in the
> > "framework" directory (that's what I get for rushing). It seems to be
> > doing something now. As for my other question, how would I go about
> > viewing the api after the scala doc is generated?
>
> > Thanks!
> > Strom
>
> > On Feb 2, 11:02 pm, Naftoli Gugenheim  wrote:
> >> What about with -U ?
>
> >> -
>
> >> Strom wrote:
>
> >> Thanks Tim,
> >> But I get this:
>
> >> C:\ws\liftweb>mvn clean scala:doc
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   Lift Web Framework
> >> [INFO]   Lift Base Components
> >> [INFO]   Lift Common
> >> [INFO]   Lift Actor
> >> [INFO]   Lift Json
> >> [INFO]   Lift Util
> >> [INFO]   Lift WebKit
> >> [INFO]   Lift Persistence Components
> >> [INFO]   Lift Mapper
> >> [INFO]   Lift JPA
> >> [INFO]   Lift Record
> >> [INFO]   Lift Addon Modules
> >> [INFO]   Lift TestKit
> >> [INFO]   Lift OSGi
> >> [INFO]   Lift Wizard
> >> [INFO]   Lift Widgets
> >> [INFO]   Lift Machine
> >> [INFO]   Lift Textile
> >> [INFO]   Lift Facebook
> >> [INFO]   Lift AMQP
> >> [INFO]   Lift XMPP
> >> [INFO]   Lift OpenID
> >> [INFO]   Lift OAuth
> >> [INFO]   Lift OAuth Mapper
> >> [INFO]   Lift PayPal
> >> [INFO]   Lift JTA
> >> [INFO]   Lift Imaging
> >> [INFO]   Lift Core (full lift)
> >> [INFO]   Lift Archetypes
> >> [INFO]   lift-archetype-blank
> >> [INFO]   lift-archetype-basic
> >> [INFO]   lift-archetype-jpa-blank-single
> >> [INFO]   lift-archetype-jpa-blank
> >> [INFO]   lift-archetype-jpa-basic
> >> [INFO]   Lift Examples
> >> [INFO]   Lift Standard Example
> >> [INFO]   OSGi Examples for Lift
> >> [INFO]   OSGi Examples for Lift - Hello
> >> [INFO]   Skittr Example
> >> [INFO]   HelloLift example application
> >> [INFO]   HelloDarwin tutorial application
> >> [INFO]   JPA Demo Master
> >> [INFO]   JPADemo-spa
> >> [INFO]   JPADemo-web
> >> [INFO]   Lift Flot widget example
> >> [INFO]   HTTP Authentication example
> >> [INFO]   Lift Web Framework Parent Aggregator
> >> [INFO] Searching repository for plugin with prefix: 'scala'.
> >> [INFO]
> >> 
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> 
> >> [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
> >> not exist or no valid
> >>  version could be found
> >> [INFO]
> >> 
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> 
> >> [INFO] Total time: 1 second
> >> [INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
> >> [INFO] Final Memory: 4M/8M
> >> [INFO]
> >> 
>
> >> And after this, where can I view the doc? Sorry...I'm not very
> >> polished on maven.
>
> >> On Feb 2, 10:52 pm, Timothy Perrett  wrote:
>
> >>> Clone lift from git, cd into the framework directory and run:
>
> >>> mvn scala:doc
>
> >>> Cheers, Tim
>
> >>> On 2 Feb 2010, at 22:35, Strom wrote:
>
>  Hi,
>  I'm traveling, and I have about an hour to figure out how to download
>  the liftweb 1.1 API so I can continue to work offline for the next few
>  days.
>
>  I've done "mvn clean scala:doc" in my project directory, but I'm not
>  sure what to do next. Are the API classes in html format somewhere, or
>  am I missing something?
>
>  Thanks!
>  Strom
>
>  --
>  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, 

Re: [Lift] Re: How to use API offline?

2010-02-02 Thread Timothy Perrett
Afraid not - it will build a "site" directory within the "target" directory of 
any given module... they are just html pages, so load up the index page and 
away you go.

Cheers, Tim

On 2 Feb 2010, at 23:10, Naftoli Gugenheim wrote:

> I think it ends up in a jar in your maven repository.
> 
> -
> Strom wrote:
> 
> Sorry...double checked and I didn't notice that I have to be in the
> "framework" directory (that's what I get for rushing). It seems to be
> doing something now. As for my other question, how would I go about
> viewing the api after the scala doc is generated?
> 
> Thanks!
> Strom
> 
> On Feb 2, 11:02 pm, Naftoli Gugenheim  wrote:
>> What about with -U ?
>> 
>> -
>> 
>> Strom wrote:
>> 
>> Thanks Tim,
>> But I get this:
>> 
>> C:\ws\liftweb>mvn clean scala:doc
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   Lift Web Framework
>> [INFO]   Lift Base Components
>> [INFO]   Lift Common
>> [INFO]   Lift Actor
>> [INFO]   Lift Json
>> [INFO]   Lift Util
>> [INFO]   Lift WebKit
>> [INFO]   Lift Persistence Components
>> [INFO]   Lift Mapper
>> [INFO]   Lift JPA
>> [INFO]   Lift Record
>> [INFO]   Lift Addon Modules
>> [INFO]   Lift TestKit
>> [INFO]   Lift OSGi
>> [INFO]   Lift Wizard
>> [INFO]   Lift Widgets
>> [INFO]   Lift Machine
>> [INFO]   Lift Textile
>> [INFO]   Lift Facebook
>> [INFO]   Lift AMQP
>> [INFO]   Lift XMPP
>> [INFO]   Lift OpenID
>> [INFO]   Lift OAuth
>> [INFO]   Lift OAuth Mapper
>> [INFO]   Lift PayPal
>> [INFO]   Lift JTA
>> [INFO]   Lift Imaging
>> [INFO]   Lift Core (full lift)
>> [INFO]   Lift Archetypes
>> [INFO]   lift-archetype-blank
>> [INFO]   lift-archetype-basic
>> [INFO]   lift-archetype-jpa-blank-single
>> [INFO]   lift-archetype-jpa-blank
>> [INFO]   lift-archetype-jpa-basic
>> [INFO]   Lift Examples
>> [INFO]   Lift Standard Example
>> [INFO]   OSGi Examples for Lift
>> [INFO]   OSGi Examples for Lift - Hello
>> [INFO]   Skittr Example
>> [INFO]   HelloLift example application
>> [INFO]   HelloDarwin tutorial application
>> [INFO]   JPA Demo Master
>> [INFO]   JPADemo-spa
>> [INFO]   JPADemo-web
>> [INFO]   Lift Flot widget example
>> [INFO]   HTTP Authentication example
>> [INFO]   Lift Web Framework Parent Aggregator
>> [INFO] Searching repository for plugin with prefix: 'scala'.
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
>> not exist or no valid
>>  version could be found
>> [INFO]
>> 
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> 
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> 
>> 
>> And after this, where can I view the doc? Sorry...I'm not very
>> polished on maven.
>> 
>> On Feb 2, 10:52 pm, Timothy Perrett  wrote:
>> 
>> 
>> 
>>> Clone lift from git, cd into the framework directory and run:
>> 
>>> mvn scala:doc
>> 
>>> Cheers, Tim
>> 
>>> On 2 Feb 2010, at 22:35, Strom wrote:
>> 
 Hi,
 I'm traveling, and I have about an hour to figure out how to download
 the liftweb 1.1 API so I can continue to work offline for the next few
 days.
>> 
 I've done "mvn clean scala:doc" in my project directory, but I'm not
 sure what to do next. Are the API classes in html format somewhere, or
 am I missing something?
>> 
 Thanks!
 Strom
>> 
 --
 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 

Re: [Lift] Re: How to use API offline?

2010-02-02 Thread Timothy Perrett
That would be because you didnt "cd framework" as per my previous instruction. 
Try the command from the framework directory and it will work...

Cheers, Tim

On 2 Feb 2010, at 22:58, Strom wrote:

> Thanks Tim,
> But I get this:
> 
> C:\ws\liftweb>mvn clean scala:doc
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Lift Web Framework
> [INFO]   Lift Base Components
> [INFO]   Lift Common
> [INFO]   Lift Actor
> [INFO]   Lift Json
> [INFO]   Lift Util
> [INFO]   Lift WebKit
> [INFO]   Lift Persistence Components
> [INFO]   Lift Mapper
> [INFO]   Lift JPA
> [INFO]   Lift Record
> [INFO]   Lift Addon Modules
> [INFO]   Lift TestKit
> [INFO]   Lift OSGi
> [INFO]   Lift Wizard
> [INFO]   Lift Widgets
> [INFO]   Lift Machine
> [INFO]   Lift Textile
> [INFO]   Lift Facebook
> [INFO]   Lift AMQP
> [INFO]   Lift XMPP
> [INFO]   Lift OpenID
> [INFO]   Lift OAuth
> [INFO]   Lift OAuth Mapper
> [INFO]   Lift PayPal
> [INFO]   Lift JTA
> [INFO]   Lift Imaging
> [INFO]   Lift Core (full lift)
> [INFO]   Lift Archetypes
> [INFO]   lift-archetype-blank
> [INFO]   lift-archetype-basic
> [INFO]   lift-archetype-jpa-blank-single
> [INFO]   lift-archetype-jpa-blank
> [INFO]   lift-archetype-jpa-basic
> [INFO]   Lift Examples
> [INFO]   Lift Standard Example
> [INFO]   OSGi Examples for Lift
> [INFO]   OSGi Examples for Lift - Hello
> [INFO]   Skittr Example
> [INFO]   HelloLift example application
> [INFO]   HelloDarwin tutorial application
> [INFO]   JPA Demo Master
> [INFO]   JPADemo-spa
> [INFO]   JPADemo-web
> [INFO]   Lift Flot widget example
> [INFO]   HTTP Authentication example
> [INFO]   Lift Web Framework Parent Aggregator
> [INFO] Searching repository for plugin with prefix: 'scala'.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
> not exist or no valid
> version could be found
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
> [INFO] Final Memory: 4M/8M
> [INFO]
> 
> 
> And after this, where can I view the doc? Sorry...I'm not very
> polished on maven.
> 
> On Feb 2, 10:52 pm, Timothy Perrett  wrote:
>> Clone lift from git, cd into the framework directory and run:
>> 
>> mvn scala:doc
>> 
>> Cheers, Tim
>> 
>> On 2 Feb 2010, at 22:35, Strom wrote:
>> 
>>> Hi,
>>> I'm traveling, and I have about an hour to figure out how to download
>>> the liftweb 1.1 API so I can continue to work offline for the next few
>>> days.
>> 
>>> I've done "mvn clean scala:doc" in my project directory, but I'm not
>>> sure what to do next. Are the API classes in html format somewhere, or
>>> am I missing something?
>> 
>>> Thanks!
>>> Strom
>> 
>>> --
>>> 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: How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
I think it ends up in a jar in your maven repository.

-
Strom wrote:

Sorry...double checked and I didn't notice that I have to be in the
"framework" directory (that's what I get for rushing). It seems to be
doing something now. As for my other question, how would I go about
viewing the api after the scala doc is generated?

Thanks!
Strom

On Feb 2, 11:02 pm, Naftoli Gugenheim  wrote:
> What about with -U ?
>
> -
>
> Strom wrote:
>
> Thanks Tim,
> But I get this:
>
> C:\ws\liftweb>mvn clean scala:doc
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Lift Web Framework
> [INFO]   Lift Base Components
> [INFO]   Lift Common
> [INFO]   Lift Actor
> [INFO]   Lift Json
> [INFO]   Lift Util
> [INFO]   Lift WebKit
> [INFO]   Lift Persistence Components
> [INFO]   Lift Mapper
> [INFO]   Lift JPA
> [INFO]   Lift Record
> [INFO]   Lift Addon Modules
> [INFO]   Lift TestKit
> [INFO]   Lift OSGi
> [INFO]   Lift Wizard
> [INFO]   Lift Widgets
> [INFO]   Lift Machine
> [INFO]   Lift Textile
> [INFO]   Lift Facebook
> [INFO]   Lift AMQP
> [INFO]   Lift XMPP
> [INFO]   Lift OpenID
> [INFO]   Lift OAuth
> [INFO]   Lift OAuth Mapper
> [INFO]   Lift PayPal
> [INFO]   Lift JTA
> [INFO]   Lift Imaging
> [INFO]   Lift Core (full lift)
> [INFO]   Lift Archetypes
> [INFO]   lift-archetype-blank
> [INFO]   lift-archetype-basic
> [INFO]   lift-archetype-jpa-blank-single
> [INFO]   lift-archetype-jpa-blank
> [INFO]   lift-archetype-jpa-basic
> [INFO]   Lift Examples
> [INFO]   Lift Standard Example
> [INFO]   OSGi Examples for Lift
> [INFO]   OSGi Examples for Lift - Hello
> [INFO]   Skittr Example
> [INFO]   HelloLift example application
> [INFO]   HelloDarwin tutorial application
> [INFO]   JPA Demo Master
> [INFO]   JPADemo-spa
> [INFO]   JPADemo-web
> [INFO]   Lift Flot widget example
> [INFO]   HTTP Authentication example
> [INFO]   Lift Web Framework Parent Aggregator
> [INFO] Searching repository for plugin with prefix: 'scala'.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
> not exist or no valid
>  version could be found
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
> [INFO] Final Memory: 4M/8M
> [INFO]
> 
>
> And after this, where can I view the doc? Sorry...I'm not very
> polished on maven.
>
> On Feb 2, 10:52 pm, Timothy Perrett  wrote:
>
>
>
> > Clone lift from git, cd into the framework directory and run:
>
> > mvn scala:doc
>
> > Cheers, Tim
>
> > On 2 Feb 2010, at 22:35, Strom wrote:
>
> > > Hi,
> > > I'm traveling, and I have about an hour to figure out how to download
> > > the liftweb 1.1 API so I can continue to work offline for the next few
> > > days.
>
> > > I've done "mvn clean scala:doc" in my project directory, but I'm not
> > > sure what to do next. Are the API classes in html format somewhere, or
> > > am I missing something?
>
> > > Thanks!
> > > Strom
>
> > > --
> > > 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] Re: How to use API offline?

2010-02-02 Thread Strom
Sorry...double checked and I didn't notice that I have to be in the
"framework" directory (that's what I get for rushing). It seems to be
doing something now. As for my other question, how would I go about
viewing the api after the scala doc is generated?

Thanks!
Strom

On Feb 2, 11:02 pm, Naftoli Gugenheim  wrote:
> What about with -U ?
>
> -
>
> Strom wrote:
>
> Thanks Tim,
> But I get this:
>
> C:\ws\liftweb>mvn clean scala:doc
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Lift Web Framework
> [INFO]   Lift Base Components
> [INFO]   Lift Common
> [INFO]   Lift Actor
> [INFO]   Lift Json
> [INFO]   Lift Util
> [INFO]   Lift WebKit
> [INFO]   Lift Persistence Components
> [INFO]   Lift Mapper
> [INFO]   Lift JPA
> [INFO]   Lift Record
> [INFO]   Lift Addon Modules
> [INFO]   Lift TestKit
> [INFO]   Lift OSGi
> [INFO]   Lift Wizard
> [INFO]   Lift Widgets
> [INFO]   Lift Machine
> [INFO]   Lift Textile
> [INFO]   Lift Facebook
> [INFO]   Lift AMQP
> [INFO]   Lift XMPP
> [INFO]   Lift OpenID
> [INFO]   Lift OAuth
> [INFO]   Lift OAuth Mapper
> [INFO]   Lift PayPal
> [INFO]   Lift JTA
> [INFO]   Lift Imaging
> [INFO]   Lift Core (full lift)
> [INFO]   Lift Archetypes
> [INFO]   lift-archetype-blank
> [INFO]   lift-archetype-basic
> [INFO]   lift-archetype-jpa-blank-single
> [INFO]   lift-archetype-jpa-blank
> [INFO]   lift-archetype-jpa-basic
> [INFO]   Lift Examples
> [INFO]   Lift Standard Example
> [INFO]   OSGi Examples for Lift
> [INFO]   OSGi Examples for Lift - Hello
> [INFO]   Skittr Example
> [INFO]   HelloLift example application
> [INFO]   HelloDarwin tutorial application
> [INFO]   JPA Demo Master
> [INFO]   JPADemo-spa
> [INFO]   JPADemo-web
> [INFO]   Lift Flot widget example
> [INFO]   HTTP Authentication example
> [INFO]   Lift Web Framework Parent Aggregator
> [INFO] Searching repository for plugin with prefix: 'scala'.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
> not exist or no valid
>  version could be found
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
> [INFO] Final Memory: 4M/8M
> [INFO]
> 
>
> And after this, where can I view the doc? Sorry...I'm not very
> polished on maven.
>
> On Feb 2, 10:52 pm, Timothy Perrett  wrote:
>
>
>
> > Clone lift from git, cd into the framework directory and run:
>
> > mvn scala:doc
>
> > Cheers, Tim
>
> > On 2 Feb 2010, at 22:35, Strom wrote:
>
> > > Hi,
> > > I'm traveling, and I have about an hour to figure out how to download
> > > the liftweb 1.1 API so I can continue to work offline for the next few
> > > days.
>
> > > I've done "mvn clean scala:doc" in my project directory, but I'm not
> > > sure what to do next. Are the API classes in html format somewhere, or
> > > am I missing something?
>
> > > Thanks!
> > > Strom
>
> > > --
> > > 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 use API offline?

2010-02-02 Thread Naftoli Gugenheim
What about with -U ?

-
Strom wrote:

Thanks Tim,
But I get this:

C:\ws\liftweb>mvn clean scala:doc
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Lift Web Framework
[INFO]   Lift Base Components
[INFO]   Lift Common
[INFO]   Lift Actor
[INFO]   Lift Json
[INFO]   Lift Util
[INFO]   Lift WebKit
[INFO]   Lift Persistence Components
[INFO]   Lift Mapper
[INFO]   Lift JPA
[INFO]   Lift Record
[INFO]   Lift Addon Modules
[INFO]   Lift TestKit
[INFO]   Lift OSGi
[INFO]   Lift Wizard
[INFO]   Lift Widgets
[INFO]   Lift Machine
[INFO]   Lift Textile
[INFO]   Lift Facebook
[INFO]   Lift AMQP
[INFO]   Lift XMPP
[INFO]   Lift OpenID
[INFO]   Lift OAuth
[INFO]   Lift OAuth Mapper
[INFO]   Lift PayPal
[INFO]   Lift JTA
[INFO]   Lift Imaging
[INFO]   Lift Core (full lift)
[INFO]   Lift Archetypes
[INFO]   lift-archetype-blank
[INFO]   lift-archetype-basic
[INFO]   lift-archetype-jpa-blank-single
[INFO]   lift-archetype-jpa-blank
[INFO]   lift-archetype-jpa-basic
[INFO]   Lift Examples
[INFO]   Lift Standard Example
[INFO]   OSGi Examples for Lift
[INFO]   OSGi Examples for Lift - Hello
[INFO]   Skittr Example
[INFO]   HelloLift example application
[INFO]   HelloDarwin tutorial application
[INFO]   JPA Demo Master
[INFO]   JPADemo-spa
[INFO]   JPADemo-web
[INFO]   Lift Flot widget example
[INFO]   HTTP Authentication example
[INFO]   Lift Web Framework Parent Aggregator
[INFO] Searching repository for plugin with prefix: 'scala'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
not exist or no valid
 version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
[INFO] Final Memory: 4M/8M
[INFO]


And after this, where can I view the doc? Sorry...I'm not very
polished on maven.

On Feb 2, 10:52 pm, Timothy Perrett  wrote:
> Clone lift from git, cd into the framework directory and run:
>
> mvn scala:doc
>
> Cheers, Tim
>
> On 2 Feb 2010, at 22:35, Strom wrote:
>
> > Hi,
> > I'm traveling, and I have about an hour to figure out how to download
> > the liftweb 1.1 API so I can continue to work offline for the next few
> > days.
>
> > I've done "mvn clean scala:doc" in my project directory, but I'm not
> > sure what to do next. Are the API classes in html format somewhere, or
> > am I missing something?
>
> > Thanks!
> > Strom
>
> > --
> > 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: How to use API offline?

2010-02-02 Thread Strom
Thanks Tim,
But I get this:

C:\ws\liftweb>mvn clean scala:doc
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Lift Web Framework
[INFO]   Lift Base Components
[INFO]   Lift Common
[INFO]   Lift Actor
[INFO]   Lift Json
[INFO]   Lift Util
[INFO]   Lift WebKit
[INFO]   Lift Persistence Components
[INFO]   Lift Mapper
[INFO]   Lift JPA
[INFO]   Lift Record
[INFO]   Lift Addon Modules
[INFO]   Lift TestKit
[INFO]   Lift OSGi
[INFO]   Lift Wizard
[INFO]   Lift Widgets
[INFO]   Lift Machine
[INFO]   Lift Textile
[INFO]   Lift Facebook
[INFO]   Lift AMQP
[INFO]   Lift XMPP
[INFO]   Lift OpenID
[INFO]   Lift OAuth
[INFO]   Lift OAuth Mapper
[INFO]   Lift PayPal
[INFO]   Lift JTA
[INFO]   Lift Imaging
[INFO]   Lift Core (full lift)
[INFO]   Lift Archetypes
[INFO]   lift-archetype-blank
[INFO]   lift-archetype-basic
[INFO]   lift-archetype-jpa-blank-single
[INFO]   lift-archetype-jpa-blank
[INFO]   lift-archetype-jpa-basic
[INFO]   Lift Examples
[INFO]   Lift Standard Example
[INFO]   OSGi Examples for Lift
[INFO]   OSGi Examples for Lift - Hello
[INFO]   Skittr Example
[INFO]   HelloLift example application
[INFO]   HelloDarwin tutorial application
[INFO]   JPA Demo Master
[INFO]   JPADemo-spa
[INFO]   JPADemo-web
[INFO]   Lift Flot widget example
[INFO]   HTTP Authentication example
[INFO]   Lift Web Framework Parent Aggregator
[INFO] Searching repository for plugin with prefix: 'scala'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
not exist or no valid
 version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 02 22:57:31 GMT 2010
[INFO] Final Memory: 4M/8M
[INFO]


And after this, where can I view the doc? Sorry...I'm not very
polished on maven.

On Feb 2, 10:52 pm, Timothy Perrett  wrote:
> Clone lift from git, cd into the framework directory and run:
>
> mvn scala:doc
>
> Cheers, Tim
>
> On 2 Feb 2010, at 22:35, Strom wrote:
>
> > Hi,
> > I'm traveling, and I have about an hour to figure out how to download
> > the liftweb 1.1 API so I can continue to work offline for the next few
> > days.
>
> > I've done "mvn clean scala:doc" in my project directory, but I'm not
> > sure what to do next. Are the API classes in html format somewhere, or
> > am I missing something?
>
> > Thanks!
> > Strom
>
> > --
> > 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] How to use API offline?

2010-02-02 Thread Timothy Perrett
Clone lift from git, cd into the framework directory and run:

mvn scala:doc

Cheers, Tim

On 2 Feb 2010, at 22:35, Strom wrote:

> Hi,
> I'm traveling, and I have about an hour to figure out how to download
> the liftweb 1.1 API so I can continue to work offline for the next few
> days.
> 
> I've done "mvn clean scala:doc" in my project directory, but I'm not
> sure what to do next. Are the API classes in html format somewhere, or
> am I missing something?
> 
> Thanks!
> Strom
> 
> -- 
> 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: How to use API offline?

2010-02-02 Thread Strom
Ok, I will check. In the meantime, I am cloning from 
git://github.com/dpp/liftweb.git,
so would you be so kind as to show me how I would go about generating
the doc and viewing it?

Thanks!
Strom

On Feb 2, 10:44 pm, Naftoli Gugenheim  wrote:
> Maybe check if it's on the scala-tools site.
>
> -
>
> Strom wrote:
>
> no
>
> On Feb 2, 10:38 pm, Naftoli Gugenheim  wrote:
>
>
>
> > Do you have a clone of the git repository?
>
> > -
>
> > Strom wrote:
>
> > Hi,
> > I'm traveling, and I have about an hour to figure out how to download
> > the liftweb 1.1 API so I can continue to work offline for the next few
> > days.
>
> > I've done "mvn clean scala:doc" in my project directory, but I'm not
> > sure what to do next. Are the API classes in html format somewhere, or
> > am I missing something?
>
> > Thanks!
> > Strom
>
> > --
> > 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 use API offline?

2010-02-02 Thread Naftoli Gugenheim
Maybe check if it's on the scala-tools site.

-
Strom wrote:

no

On Feb 2, 10:38 pm, Naftoli Gugenheim  wrote:
> Do you have a clone of the git repository?
>
> -
>
> Strom wrote:
>
> Hi,
> I'm traveling, and I have about an hour to figure out how to download
> the liftweb 1.1 API so I can continue to work offline for the next few
> days.
>
> I've done "mvn clean scala:doc" in my project directory, but I'm not
> sure what to do next. Are the API classes in html format somewhere, or
> am I missing something?
>
> Thanks!
> Strom
>
> --
> 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: How to use API offline?

2010-02-02 Thread Strom
no

On Feb 2, 10:38 pm, Naftoli Gugenheim  wrote:
> Do you have a clone of the git repository?
>
> -
>
> Strom wrote:
>
> Hi,
> I'm traveling, and I have about an hour to figure out how to download
> the liftweb 1.1 API so I can continue to work offline for the next few
> days.
>
> I've done "mvn clean scala:doc" in my project directory, but I'm not
> sure what to do next. Are the API classes in html format somewhere, or
> am I missing something?
>
> Thanks!
> Strom
>
> --
> 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] How to use API offline?

2010-02-02 Thread Naftoli Gugenheim
Do you have a clone of the git repository?

-
Strom wrote:

Hi,
I'm traveling, and I have about an hour to figure out how to download
the liftweb 1.1 API so I can continue to work offline for the next few
days.

I've done "mvn clean scala:doc" in my project directory, but I'm not
sure what to do next. Are the API classes in html format somewhere, or
am I missing something?

Thanks!
Strom

-- 
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 use API offline?

2010-02-02 Thread Strom
Hi,
I'm traveling, and I have about an hour to figure out how to download
the liftweb 1.1 API so I can continue to work offline for the next few
days.

I've done "mvn clean scala:doc" in my project directory, but I'm not
sure what to do next. Are the API classes in html format somewhere, or
am I missing something?

Thanks!
Strom

-- 
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: Make Doing Good Easy with your Scala/Lift skills

2010-02-02 Thread Dave Angulo
Much like any other open source project, with perhaps significantly
more direction. Our team includes not only coders and testers, but pr/
marketing, bizdev, and pm's. So, we develop product roadmaps with
specific feature sets and delivery dates, then carve up the work to be
done and get to it.

I see the majority of people contributing remotely, as most folks do
on an open source project. The main benefit I see is a clear direction
on what is being built and the knowledge that when its time for
release, it will go into production on a real live site performing a
critical role in enabling volunteering.

Part of what I want to figure out with the community is how best to
enable you to identify an interesting chunk of work that needs to get
done, and do it. SnapImpact projects, right now, host our code on
github and use http://community.rallydev.com (its a local Boulder
company and they have been great supporters) for developing product
roadmaps, tracking feature development, bugs, and status. The v1.X AfG
code uses Google code and that tool set.

We're pretty much an agile shop, in town volunteers meet almost every
Tuesday evening and we run a 4 hour or so "sprint". As an incentive,
we provide beer and pizza and its usually a fun time, so maybe we can
coax you to Boulder once a week. For remote volunteers, we'll figure
out some cool ways to celebrate deliveries and milestones to make it
so you have fun as well.

Basically if you have any desire to help, with or without skills, we
can usually figure out something where you learn new things and it
moves us closer to our goal line. There are some challenges to working
with a geographically disperse team (I spent 8 years as a full-time
telecommuter), but I'm sure we can find creative solutions so everyone
can have a rewarding experience and "Make Doing Good Easy".

Bottom line, SnapCamp is just the beginning. We have a massive
opportunity to do good, but its going to require a lot of work.

Dave

On Feb 2, 1:32 pm, cody koeninger  wrote:
> On Feb 2, 1:19 pm, Dave Angulo  wrote:
>
> > There is lots of work to get done and we're planning a kickoff event
> > in Boulder, Feb 19-21, to get some 
> > momentumhttp://www.snapimpact.org/blog/?p=468.
> > Outside of that, we'd love to figure out how to best leverage any
> > interest from this community to make the project successful.
>
> For people who are not local to Boulder, can you clarify how you see
> ongoing contribution working?
>
> I might be able to make it up for that weekend, but would hate for
> that to be the limit of my involvement.

-- 
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] ProtoUser i18n

2010-02-02 Thread Jeppe Nejsum Madsen
Indrajit Raychaudhuri  writes:

> Yep, I did ;)

Awesome ;-)

/Jeppe

>
> Cheers, Indrajit
>
> On 03/02/10 1:21 AM, Timothy Perrett wrote:
>> Indrajit, I think you just volunteered to take this on good chap ;-)
>>
>> Cheers, Tim

-- 
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] Prevent leaving page if unsaved

2010-02-02 Thread Ross Mellgren
That's what the "intentionallyLeavingPage" variable was in my code snippet. 
Submit buttons set this JS variable, so the check is bypassed in that case.

-Ross

On Feb 2, 2010, at 3:32 PM, Naftoli Gugenheim wrote:

> One problem -- this script should not be triggered by submit buttons or 
> stateful links!
> 
> -
> Timothy Perrett wrote:
> 
> Try:
> 
>  window.onbeforeunload = function(evt){
>var reply= "You have unsaved changes!";
>if(typeof evt == 'undefined'){
>  evt = window.event;
>}
>if(evt){
>  evt.returnValue = reply;
>}
>return reply;
>  }
> 
> Cheers, Tim
> 
> 
> On 2 Feb 2010, at 18:31, Naftoli Gugenheim wrote:
> 
>> Hi, in Lift how would one implement functionality similar to in Gmail, that 
>> when you try to navigate away from an unsaved email you get a dialog box 
>> asking to confirm?
>> 
>> -- 
>> 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.
> 

-- 
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] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
One problem -- this script should not be triggered by submit buttons or 
stateful links!

-
Timothy Perrett wrote:

Try:

  window.onbeforeunload = function(evt){
var reply= "You have unsaved changes!";
if(typeof evt == 'undefined'){
  evt = window.event;
}
if(evt){
  evt.returnValue = reply;
}
return reply;
  }

Cheers, Tim


On 2 Feb 2010, at 18:31, Naftoli Gugenheim wrote:

> Hi, in Lift how would one implement functionality similar to in Gmail, that 
> when you try to navigate away from an unsaved email you get a dialog box 
> asking to confirm?
> 
> -- 
> 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.



[Lift] Re: Make Doing Good Easy with your Scala/Lift skills

2010-02-02 Thread cody koeninger


On Feb 2, 1:19 pm, Dave Angulo  wrote:
> There is lots of work to get done and we're planning a kickoff event
> in Boulder, Feb 19-21, to get some 
> momentumhttp://www.snapimpact.org/blog/?p=468.
> Outside of that, we'd love to figure out how to best leverage any
> interest from this community to make the project successful.


For people who are not local to Boulder, can you clarify how you see
ongoing contribution working?

I might be able to make it up for that weekend, but would hate for
that to be the limit of my involvement.

-- 
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] asHtml inconsistency

2010-02-02 Thread Naftoli Gugenheim
I see.
Does Lift actually do so?
Should the others also be a Node?
Doesn't -%> require an Elem?
The question came up because I wanted to do in a LongMappedMapper something like
override def asHtml = obj.dmap("(unknown)")(_.asHtml)
In the end I overrode toString and used _.name (a field -- this change was 
necessary anyway).

-
David Pollak wrote:

On Tue, Feb 2, 2010 at 11:53 AM, Naftoli Gugenheim wrote:

> Is there a reason why in Mapper, BaseMappedField, and MixableMappedField,
> asHtml is typed to be a NodeSeq, but MappedField overrides it to be a Node?
>

So it can be used with -%>


>
> --
> 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.

-- 
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] ProtoUser i18n

2010-02-02 Thread Indrajit Raychaudhuri

Makes sense. Yes, would do.

On 03/02/10 1:29 AM, Naftoli Gugenheim wrote:

Can you add that to the conventions in the naming wiki (property names should 
not have spaces) unless someone disagrees?
Thanks!

-
Indrajit Raychaudhuri  wrote:

Adam, can you please (a) open a ticket and (b) create a gist
(http://gist.github.com/) of the patch and refer to it from the ticket?
We'll take it up from there.

Tim, +1 on not having spaces in properties.

Cheers, Indrajit

On 02/02/10 10:41 PM, Timothy Perrett wrote:

Sure - one of us will take this up... its minor.

I propose we agree a policy, and use that going forward... should keys have spaces? 
"no" would be my default response... (i tend to separate with full stops) if 
thats so, lets just clear that out now, and do a breaking changes ann.

Cheers, Tim

On 2 Feb 2010, at 17:06, David Pollak wrote:


I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle this 
issue going forward (making sure the patch is good, putting it on a branch, 
opening a ticket, putting it on review board, and sending out any breaking 
changes email)?






--
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] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
I would like to have such code in ItemsListEditor (used by 
net.leftweb.mapper.view.TableEditor).
What's the best way to add the script?
Should I return from the snippet
boundXhtml ++ 

Re: [Lift] ProtoUser i18n

2010-02-02 Thread Naftoli Gugenheim
Can you add that to the conventions in the naming wiki (property names should 
not have spaces) unless someone disagrees?
Thanks!

-
Indrajit Raychaudhuri wrote:

Adam, can you please (a) open a ticket and (b) create a gist 
(http://gist.github.com/) of the patch and refer to it from the ticket? 
We'll take it up from there.

Tim, +1 on not having spaces in properties.

Cheers, Indrajit

On 02/02/10 10:41 PM, Timothy Perrett wrote:
> Sure - one of us will take this up... its minor.
>
> I propose we agree a policy, and use that going forward... should keys have 
> spaces? "no" would be my default response... (i tend to separate with full 
> stops) if thats so, lets just clear that out now, and do a breaking changes 
> ann.
>
> Cheers, Tim
>
> On 2 Feb 2010, at 17:06, David Pollak wrote:
>
>> I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle 
>> this issue going forward (making sure the patch is good, putting it on a 
>> branch, opening a ticket, putting it on review board, and sending out any 
>> breaking changes email)?
>

-- 
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] asHtml inconsistency

2010-02-02 Thread David Pollak
On Tue, Feb 2, 2010 at 11:53 AM, Naftoli Gugenheim wrote:

> Is there a reason why in Mapper, BaseMappedField, and MixableMappedField,
> asHtml is typed to be a NodeSeq, but MappedField overrides it to be a Node?
>

So it can be used with -%>


>
> --
> 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] ProtoUser i18n

2010-02-02 Thread Indrajit Raychaudhuri

Yep, I did ;)

Cheers, Indrajit

On 03/02/10 1:21 AM, Timothy Perrett wrote:

Indrajit, I think you just volunteered to take this on good chap ;-)

Cheers, Tim

On 2 Feb 2010, at 19:10, Indrajit Raychaudhuri wrote:


Adam, can you please (a) open a ticket and (b) create a gist 
(http://gist.github.com/) of the patch and refer to it from the ticket? We'll 
take it up from there.

Tim, +1 on not having spaces in properties.

Cheers, Indrajit

On 02/02/10 10:41 PM, Timothy Perrett wrote:

Sure - one of us will take this up... its minor.

I propose we agree a policy, and use that going forward... should keys have spaces? 
"no" would be my default response... (i tend to separate with full stops) if 
thats so, lets just clear that out now, and do a breaking changes ann.

Cheers, Tim

On 2 Feb 2010, at 17:06, David Pollak wrote:


I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle this 
issue going forward (making sure the patch is good, putting it on a branch, 
opening a ticket, putting it on review board, and sending out any breaking 
changes email)?




--
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] asHtml inconsistency

2010-02-02 Thread Naftoli Gugenheim
Is there a reason why in Mapper, BaseMappedField, and MixableMappedField, 
asHtml is typed to be a NodeSeq, but MappedField overrides it to be a Node?

-- 
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] Make Doing Good Easy with your Scala/Lift skills

2010-02-02 Thread David Pollak
Folks,

I heartily encourage anyone who can contribute to this project to
participate.  I'm working with Dave and his team to figure out what pieces
need to be built and I'll be rolling up my sleeves and helping out (although
I won't be able to travel to SnapCamp this month.)

So, please join me in helping build tools to help people help each other.

Thanks,

David

On Tue, Feb 2, 2010 at 11:19 AM, Dave Angulo  wrote:

> Hi All,
>
> I have a proposition for the Lift community.
>
> I am co-founder of http://SnapImpact.org, a group of volunteers in
> Boulder, CO. We're a 100% not for profit with no paid staff or
> offices, our mission is "Make Doing Good Easy". We shipped an iPhone
> app (SnapImpact) in August and part of the team is working on newer
> and better versions. In the process of building and shipping the
> iPhone app, we were introduced to All For Good (http://
> allforgood.org). Its the data backend which powers http://serve.gov
> and a number of other volunteering sites. They collect data on
> volunteering opportunities all over the US, consolidate them, and make
> them available for use in websites and other applications. Over the
> months we've developed a close relationship with them, committing some
> code and working with them on some technical strategies. Our team is
> made up of veterans in development and business and we can draw upon
> the talent pool in Boulder for a number of specific tasks, so we try
> to help out other projects without the talent they require (usually
> dev) to be successful.
>
> Anyways, the allforgood.org system was hammered together very quickly
> and pretty much put straight into production. They are almost a year
> down the road and are having a bunch of issues. We have been empowered
> to rewrite the thing from the ground up. Several of us are using
> liftweb and scala on other projects, I am building my startup
> SpotInfluence using it, and are really impressed with the Lift
> community and all of the smart people involved. We plan on using it
> for the rewrite and train a bunch of folks here in Boulder on the
> technology.
>
> So here's the pitch. The AfG code is all open source. We can build a
> bunch of one off components that will get the job done, or we can
> build a bunch of re-useable components ( like a CMS for instance ) and
> contribute them back not only to AfG, but also the liftweb community.
> The wins for us are hopefully leveraging your community to help make
> the AfG project more successful, the wins as I see it for the liftweb
> community are a bunch of native components to make building webapps
> even easier and having those modules running in large production
> situation.
>
> There is lots of work to get done and we're planning a kickoff event
> in Boulder, Feb 19-21, to get some momentum
> http://www.snapimpact.org/blog/?p=468.
> Outside of that, we'd love to figure out how to best leverage any
> interest from this community to make the project successful.
>
> Thanks for your time,
> Dave
>
> Dave Angulo
> Co-founder SnapImpact
> daveang...@snapimpact.org
> @daveangulo
> @snapimpact
>
> --
> 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] ProtoUser i18n

2010-02-02 Thread Timothy Perrett
Indrajit, I think you just volunteered to take this on good chap ;-)

Cheers, Tim

On 2 Feb 2010, at 19:10, Indrajit Raychaudhuri wrote:

> Adam, can you please (a) open a ticket and (b) create a gist 
> (http://gist.github.com/) of the patch and refer to it from the ticket? We'll 
> take it up from there.
> 
> Tim, +1 on not having spaces in properties.
> 
> Cheers, Indrajit
> 
> On 02/02/10 10:41 PM, Timothy Perrett wrote:
>> Sure - one of us will take this up... its minor.
>> 
>> I propose we agree a policy, and use that going forward... should keys have 
>> spaces? "no" would be my default response... (i tend to separate with full 
>> stops) if thats so, lets just clear that out now, and do a breaking changes 
>> ann.
>> 
>> Cheers, Tim
>> 
>> On 2 Feb 2010, at 17:06, David Pollak wrote:
>> 
>>> I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle 
>>> this issue going forward (making sure the patch is good, putting it on a 
>>> branch, opening a ticket, putting it on review board, and sending out any 
>>> breaking changes email)?
>> 
> 
> -- 
> 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] Make Doing Good Easy with your Scala/Lift skills

2010-02-02 Thread Dave Angulo
Hi All,

I have a proposition for the Lift community.

I am co-founder of http://SnapImpact.org, a group of volunteers in
Boulder, CO. We're a 100% not for profit with no paid staff or
offices, our mission is "Make Doing Good Easy". We shipped an iPhone
app (SnapImpact) in August and part of the team is working on newer
and better versions. In the process of building and shipping the
iPhone app, we were introduced to All For Good (http://
allforgood.org). Its the data backend which powers http://serve.gov
and a number of other volunteering sites. They collect data on
volunteering opportunities all over the US, consolidate them, and make
them available for use in websites and other applications. Over the
months we've developed a close relationship with them, committing some
code and working with them on some technical strategies. Our team is
made up of veterans in development and business and we can draw upon
the talent pool in Boulder for a number of specific tasks, so we try
to help out other projects without the talent they require (usually
dev) to be successful.

Anyways, the allforgood.org system was hammered together very quickly
and pretty much put straight into production. They are almost a year
down the road and are having a bunch of issues. We have been empowered
to rewrite the thing from the ground up. Several of us are using
liftweb and scala on other projects, I am building my startup
SpotInfluence using it, and are really impressed with the Lift
community and all of the smart people involved. We plan on using it
for the rewrite and train a bunch of folks here in Boulder on the
technology.

So here's the pitch. The AfG code is all open source. We can build a
bunch of one off components that will get the job done, or we can
build a bunch of re-useable components ( like a CMS for instance ) and
contribute them back not only to AfG, but also the liftweb community.
The wins for us are hopefully leveraging your community to help make
the AfG project more successful, the wins as I see it for the liftweb
community are a bunch of native components to make building webapps
even easier and having those modules running in large production
situation.

There is lots of work to get done and we're planning a kickoff event
in Boulder, Feb 19-21, to get some momentum 
http://www.snapimpact.org/blog/?p=468.
Outside of that, we'd love to figure out how to best leverage any
interest from this community to make the project successful.

Thanks for your time,
Dave

Dave Angulo
Co-founder SnapImpact
daveang...@snapimpact.org
@daveangulo
@snapimpact

-- 
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] ProtoUser i18n

2010-02-02 Thread Indrajit Raychaudhuri
Adam, can you please (a) open a ticket and (b) create a gist 
(http://gist.github.com/) of the patch and refer to it from the ticket? 
We'll take it up from there.


Tim, +1 on not having spaces in properties.

Cheers, Indrajit

On 02/02/10 10:41 PM, Timothy Perrett wrote:

Sure - one of us will take this up... its minor.

I propose we agree a policy, and use that going forward... should keys have spaces? 
"no" would be my default response... (i tend to separate with full stops) if 
thats so, lets just clear that out now, and do a breaking changes ann.

Cheers, Tim

On 2 Feb 2010, at 17:06, David Pollak wrote:


I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle this 
issue going forward (making sure the patch is good, putting it on a branch, 
opening a ticket, putting it on review board, and sending out any breaking 
changes email)?




--
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] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
Thanks everyone!
Since I'm not using ajax the javascript doesn't have to do any checks; the page 
can simply include it conditionally.
Tim, what's the purpose of if(evt)?

-
Timothy Perrett wrote:

Try:

  window.onbeforeunload = function(evt){
var reply= "You have unsaved changes!";
if(typeof evt == 'undefined'){
  evt = window.event;
}
if(evt){
  evt.returnValue = reply;
}
return reply;
  }

Cheers, Tim


On 2 Feb 2010, at 18:31, Naftoli Gugenheim wrote:

> Hi, in Lift how would one implement functionality similar to in Gmail, that 
> when you try to navigate away from an unsaved email you get a dialog box 
> asking to confirm?
> 
> -- 
> 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] Prevent leaving page if unsaved

2010-02-02 Thread Timothy Perrett
Try:

  window.onbeforeunload = function(evt){
var reply= "You have unsaved changes!";
if(typeof evt == 'undefined'){
  evt = window.event;
}
if(evt){
  evt.returnValue = reply;
}
return reply;
  }

Cheers, Tim


On 2 Feb 2010, at 18:31, Naftoli Gugenheim wrote:

> Hi, in Lift how would one implement functionality similar to in Gmail, that 
> when you try to navigate away from an unsaved email you get a dialog box 
> asking to confirm?
> 
> -- 
> 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] Prevent leaving page if unsaved

2010-02-02 Thread Indrajit Raychaudhuri
How about setting some global variable on a field change 
(http://jqapi.com/#p=change) and then checking for the variable when you 
navigate out (probably onunload or something)?


Cheers, Indrajit

On 03/02/10 12:01 AM, Naftoli Gugenheim wrote:

Hi, in Lift how would one implement functionality similar to in Gmail, that 
when you try to navigate away from an unsaved email you get a dialog box asking 
to confirm?



--
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] Prevent leaving page if unsaved

2010-02-02 Thread Ross Mellgren
window.onbeforeunload = function() {
if ((emailWizard.htmlTemplateUI.isDirty || emailWizard.textEditorUI.isDirty 
|| emailWizard.server.needsSaving) && !intentionallyLeavingPage) {
return 'There are unsaved changes.';
}
}


On Feb 2, 2010, at 1:31 PM, Naftoli Gugenheim wrote:

> Hi, in Lift how would one implement functionality similar to in Gmail, that 
> when you try to navigate away from an unsaved email you get a dialog box 
> asking to confirm?
> 
> -- 
> 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] Prevent leaving page if unsaved

2010-02-02 Thread Naftoli Gugenheim
Hi, in Lift how would one implement functionality similar to in Gmail, that 
when you try to navigate away from an unsaved email you get a dialog box asking 
to confirm?

-- 
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] Since when did Record depend on Derby and H2??

2010-02-02 Thread Indrajit Raychaudhuri
Thanks for spotting this. Yes, DB drivers should be either in runtime 
scope with optional=true or in test scope.


I missed out the optional=true declaration during recent DB dependency 
refactoring (#307). But test scope is more appropriate in this case 
(instead of runtime scope with optional=true). Would fix it in master.


Cheers, Indrajit


On 02/02/10 9:24 PM, David Pollak wrote:

Record should only depend on H2 and Derby in test mode.

On Tue, Feb 2, 2010 at 7:50 AM, Timothy Perrett mailto:timo...@getintheloop.eu>> wrote:

Guys,

Just found this in my deps tree:

[INFO] |  |  \- net.liftweb:lift-record:jar:2.0-SNAPSHOT:compile
[INFO] |  | +- net.liftweb:lift-mapper:jar:2.0-SNAPSHOT:compile
[INFO] |  | +- com.h2database:h2:jar:1.2.127:runtime
[INFO] |  | \- org.apache.derby:derby:jar:10.5.3.0_1:runtime

Certainly, this should not be the case. Thoughts?

Cheers, Tim

--
You received this message because you are subscribed to the Google
Groups "Lift" group.
To post to this group, send email to liftweb@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.


--
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] ProtoUser i18n

2010-02-02 Thread Timothy Perrett
Sure - one of us will take this up... its minor. 

I propose we agree a policy, and use that going forward... should keys have 
spaces? "no" would be my default response... (i tend to separate with full 
stops) if thats so, lets just clear that out now, and do a breaking changes ann.

Cheers, Tim

On 2 Feb 2010, at 17:06, David Pollak wrote:

> I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle 
> this issue going forward (making sure the patch is good, putting it on a 
> branch, opening a ticket, putting it on review board, and sending out any 
> breaking changes email)?

-- 
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] ProtoUser i18n

2010-02-02 Thread David Pollak
On Tue, Feb 2, 2010 at 6:53 AM, Adam Warski  wrote:

>
> >> Hmm right, although e.g. "password" already exists as a key and it
> wouldn't be good to duplicate it as "Password".
> >> Same about "Email".
> >
> > Good point. Also, the spaces in keys seem to confuse people, so maybe
> > this is breakage that is worth it
>
>
> I guess I'll leave the decision up to David ;)
>
>
I'm okay with breakage here.  Jeppe, Indrajit, or Tim, can you guys handle
this issue going forward (making sure the patch is good, putting it on a
branch, opening a ticket, putting it on review board, and sending out any
breaking changes email)?


> --
> Adam Warski
> http://www.warski.org
> http://www.softwaremill.eu
>
>
>
>
> --
> 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] Since when did Record depend on Derby and H2??

2010-02-02 Thread David Pollak
Record should only depend on H2 and Derby in test mode.

On Tue, Feb 2, 2010 at 7:50 AM, Timothy Perrett wrote:

> Guys,
>
> Just found this in my deps tree:
>
> [INFO] |  |  \- net.liftweb:lift-record:jar:2.0-SNAPSHOT:compile
> [INFO] |  | +- net.liftweb:lift-mapper:jar:2.0-SNAPSHOT:compile
> [INFO] |  | +- com.h2database:h2:jar:1.2.127:runtime
> [INFO] |  | \- org.apache.derby:derby:jar:10.5.3.0_1:runtime
>
> Certainly, this should not be the case. Thoughts?
>
> Cheers, Tim
>
> --
> 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] Since when did Record depend on Derby and H2??

2010-02-02 Thread Timothy Perrett
Guys,

Just found this in my deps tree:

[INFO] |  |  \- net.liftweb:lift-record:jar:2.0-SNAPSHOT:compile
[INFO] |  | +- net.liftweb:lift-mapper:jar:2.0-SNAPSHOT:compile
[INFO] |  | +- com.h2database:h2:jar:1.2.127:runtime
[INFO] |  | \- org.apache.derby:derby:jar:10.5.3.0_1:runtime

Certainly, this should not be the case. Thoughts?

Cheers, Tim

-- 
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] ProtoUser i18n

2010-02-02 Thread Adam Warski

>> Hmm right, although e.g. "password" already exists as a key and it wouldn't 
>> be good to duplicate it as "Password".
>> Same about "Email".
> 
> Good point. Also, the spaces in keys seem to confuse people, so maybe
> this is breakage that is worth it


I guess I'll leave the decision up to David ;)

-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu




-- 
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] ProtoUser i18n

2010-02-02 Thread Jeppe Nejsum Madsen
Adam Warski  writes:

> Hmm right, although e.g. "password" already exists as a key and it wouldn't 
> be good to duplicate it as "Password".
> Same about "Email".

Good point. Also, the spaces in keys seem to confuse people, so maybe
this is breakage that is worth it

/Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] ProtoUser i18n

2010-02-02 Thread Adam Warski
Hmm right, although e.g. "password" already exists as a key and it wouldn't be 
good to duplicate it as "Password".
Same about "Email".

On Feb 2, 2010, at 1:08 PM, Jeppe Nejsum Madsen wrote:

> Adam Warski  writes:
> 
>>> We'll accept a patch for this issue.  
>> 
>> Here's the patch.
> 
> Note that this will break all existing translations. While having a
> complete list of keys that can be translated is great, I don't really
> think there's a reason to change the keys. E.g.
> 
> "First\ Name" is, while maybe not common, a valid key.
> 
> /Jeppe
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 

-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu




-- 
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] ProtoUser i18n

2010-02-02 Thread Jeppe Nejsum Madsen
Adam Warski  writes:

>> We'll accept a patch for this issue.  
>
> Here's the patch.

Note that this will break all existing translations. While having a
complete list of keys that can be translated is great, I don't really
think there's a reason to change the keys. E.g.

"First\ Name" is, while maybe not common, a valid key.

/Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Re: Question on Javascript calls

2010-02-02 Thread pere.vill...@gmail.com
Thanks for the confirmation Marius :)




On Feb 1, 7:47 am, Marius  wrote:
> Yes Lift's JavaScript stuff is mostly used when returning Ajax
> response. You can also use it to serve fictive *.js files and instead
> of returning a js file content you can serve the request (using
> LiftRules.dispatch) and the actual JS returns is produced by
> composition of JsCmd-s. We actually do that when serving the
> "primordial" lift-ajax/comet script.
>
> You can also use them for js events just to do some client stuff
> without invoking ajax. This is pretty handy as where you compute your
> button content from a snippet you can easily attach JS behavior as
> well.
>
> Br's,
> Marius
>
> On Feb 1, 2:27 am, "pere.vill...@gmail.com" 
> wrote:
>
>
>
> > HI all,
>
> > first of all, I should present myself, as it's my first post in the
> > group: I'm Pere Villega, a Java developer living in Dublin and
> > learning Scala and Lift in my spare time.
>
> > As a good newbie, I'll start with an obvious question: I've been
> > reading the Lift book, and I got confused on the javascript section.
> > It seems Lift allows you to create javascript code on the server side,
> > but as far as I understand this code is only to be used when reacting
> > to events that go to the server? Or I'm mistaken?
>
> > So, to say it in another way, if I have a page that has javascript,
> > the lift way is to keep in the template all the javascript that
> > modifies the UI (like a button that hides a div but doesn't send any
> > data to the server) and keep on the snippets the code that will
> > eventually relate to calls to the server (like an onclick validation
> > on submit or an ajax call). Is that correct?
>
> > I know it might seem obvious, but I would hate to start doing it that
> > way and then discover I could have saved effort using the lift
> > calls... :)
>
> > Best regards,
> > Pere Villega

-- 
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] ProtoUser i18n

2010-02-02 Thread Adam Warski

> We'll accept a patch for this issue.  

Here's the patch.


-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu






0001-Localizing-display-names-of-fields-in-ProtoUser.patch
Description: Binary data
-- 
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] MYSQL TEXT field

2010-02-02 Thread Indrajit Raychaudhuri
Look for MappedText. That maps to DriverType.clobColumnType (LONGTEXT 
for MySQL).


Cheers, Indrajit

On 02/02/10 11:27 AM, XiaomingZheng wrote:

hi guys:
my app needs to use one field of mysql text type, but in Lift mapper
package, and i don't find any MappedField is suitable. any ideas?
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 at 
http://groups.google.com/group/liftweb?hl=en.