[Lift] Re: Two years loving Scala

2008-11-13 Thread Oscar Picasso
For me: + very nice language: it's really a pleasure to code with scala + very nice community: high quality discussions, very helpful, very smart people, very clever answers without being condescending, very responsive + good documentation (Programming with Scala) + a very good web framework (lift

[Lift] Re: does this code make any sense?

2008-11-13 Thread David Pollak
Very interesting defect you found. There's a map of functions associated with the session. That map was not being updated for functions created during a partial update. I've committed a fix and tested it with the enclosed code. Thanks for finding the defect. As a matter of style, I don't think

[Lift] Olio

2008-11-13 Thread Jorge Ortiz
There's a new Apache Incubator project called Olio: Olio is a is a web2.0 toolkit to help evaluate the suitability, functionality and performance of web technologies. Olio defines an example web2.0 application ( an events site somewhat like yahoo.com/upcoming) and provides three initial implementa

[Lift] Two years loving Scala

2008-11-13 Thread David Pollak
Folks, I just did a blog post about my two years in the Scala community. http://blog.lostlake.org/index.php?/archives/83-Two-years-loving-Scala.html Thanks, David -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://tw

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread David Pollak
On Thu, Nov 13, 2008 at 12:46 PM, Sebastien Bocq <[EMAIL PROTECTED]>wrote: > > Sorry for the double posts... There is like a big delay between the > time I post and the time it appears on the mailing list and it is not > easy to write twice exactly the same text, hum hum... New members of the gr

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread Sebastien Bocq
Sorry for the double posts... There is like a big delay between the time I post and the time it appears on the mailing list and it is not easy to write twice exactly the same text, hum hum... Sebastien --~--~-~--~~~---~--~~ You received this message because you ar

[Lift] Re: Output for trees

2008-11-13 Thread Charles F. Munat
That's kind of what I figured. Thanks for the code. I'll look through it. Chas. David Pollak wrote: > I think you're going to have to do this one manually. Attached, please > find some less than efficient code. > > On Thu, Nov 13, 2008 at 10:30 AM, Charles F. Munat <[EMAIL PROTECTED] >

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Matt Harrington
On Thu, Nov 13, 2008 at 10:32 AM, Matt Harrington <[EMAIL PROTECTED]> wrote: > Take a look at List.mkString(). It inherits from Iterable. > > ---Matt Erm, I'll retract this. :) ---Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: Output for trees

2008-11-13 Thread David Pollak
I think you're going to have to do this one manually. Attached, please find some less than efficient code. On Thu, Nov 13, 2008 at 10:30 AM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > > If I have an entity thus: > > @Entity > class Category { > var name : String = "" > } > > and another: >

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Charles F. Munat
Thanks, but that's what I was trying, and it outputs a String, not the nodes. Chas. Matt Harrington wrote: > On Thu, Nov 13, 2008 at 10:14 AM, Charles F. Munat <[EMAIL PROTECTED]> wrote: >> If I have a list thus: >> >> List(A,B,C) >> >> >> How can a get a NodeSeq thus from this: >> >> ABC >> >>

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Charles F. Munat
Sigh... I knew it had to be drop-dead simple. Not sure how I kept getting List(...) output instead of ... out. Works now. Thanks. Chas. Jorge Ortiz wrote: > A NodeSeq is really just a Seq[Node]. And a List[Node] is also a > Seq[Node]. Hence a List[Node] is a NodeSeq. > > scala> import scala.

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Matt Harrington
On Thu, Nov 13, 2008 at 10:14 AM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > > If I have a list thus: > > List(A,B,C) > > > How can a get a NodeSeq thus from this: > > ABC > > > I'm sure this is drop-dead simple, but it's still not obvious to me... > > Thanks, > > Chas. Take a look at List.mk

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Jorge Ortiz
A NodeSeq is really just a Seq[Node]. And a List[Node] is also a Seq[Node]. Hence a List[Node] is a NodeSeq. scala> import scala.xml.NodeSeq import scala.xml.NodeSeq scala> val n: NodeSeq = List(A, B, C) n: scala.xml.NodeSeq = ABC --j On Thu, Nov 13, 2008 at 10:14 AM, Charles F. Munat <[EMAIL PRO

[Lift] Output for trees

2008-11-13 Thread Charles F. Munat
If I have an entity thus: @Entity class Category { var name : String = "" } and another: @Entity class Example { var name : String = "" var exampleType : String = "" @ManyToOne var parent : Category = new Category() } And this data: Category A B C Example black

[Lift] Concatenating lists of nodes

2008-11-13 Thread Charles F. Munat
If I have a list thus: List(A,B,C) How can a get a NodeSeq thus from this: ABC I'm sure this is drop-dead simple, but it's still not obvious to me... Thanks, Chas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[Lift] Re: JQuery BlockUI

2008-11-13 Thread Erick Fleming
Got it. Thanks David On Thu, Nov 13, 2008 at 11:01 AM, David Pollak < [EMAIL PROTECTED]> wrote: > > > On Wed, Nov 12, 2008 at 8:55 PM, Erick Fleming <[EMAIL PROTECTED]>wrote: > >> I'm playing with some of the JQuery features, specifically ModalDialog, >> but I don't see the blockUI Plugin includ

[Lift] Re: JQuery BlockUI

2008-11-13 Thread David Pollak
On Wed, Nov 12, 2008 at 8:55 PM, Erick Fleming <[EMAIL PROTECTED]>wrote: > I'm playing with some of the JQuery features, specifically ModalDialog, but > I don't see the blockUI Plugin included. In fact I'm getting a JavaScript > error. Lift does a fair amount of magical includes of JavaScript f

[Lift] Re: Ajax error/notice/warning works but no class attribute is specified

2008-11-13 Thread Ramzi BEN YAHIA
Very helpful, Thanks! Ramzi On Thu, Nov 13, 2008 at 1:36 PM, Marius <[EMAIL PROTECTED]> wrote: > > Hi, > > Please see > http://liftweb.net/index.php/HowTo_style_the_error/warning/notice_messages > > " > 3. You can use construct like S.error("msg_id", "Error message") for > both Ajax and non Aj

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread sbocq
Yes but did you tried with "hé!"? :-) I'm using Eclipse IDE or Notepad++. The last issue "Error in processing html page" was because Eclipse defaults to cp1252 encoding on Windows for saving files. I went Window->Preferences->General- >Workspace menu to change the default to UTF-8, saved the file

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread sbocq
I'm using Eclipse IDE or Notepad++. The last issue "Error in processing html page" was because Eclipse defaults to cp1252 encoding on Windows for saving files. I went Window->Preferences->General- >Workspace menu and changed the default to UTF-8 to save the html files in the correct format and the

[Lift] Re: Ajax error/notice/warning works but no class attribute is specified

2008-11-13 Thread Marius
Hi, Please see http://liftweb.net/index.php/HowTo_style_the_error/warning/notice_messages " 3. You can use construct like S.error("msg_id", "Error message") for both Ajax and non Ajax request however styling the messages differs a bit: 3.1 For Non-Ajax the styling is given by as in the abov

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread Tim Perrett
Out of interest, what text editor are you using? There are other guys using windows on this list and I'm pretty sure they have no problems. I've seen some problems with VS on windows, but there are plenty of x- platform editors which will work just fine - I rently did a small lift app in swe

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread Sebastien Bocq
Yes, it works. I didn't found any way to change the default encoding to UTF-8 on Windows, all I found is that it is possible to set the encoding Java uses via the command line by specifying -Dfile.encoding=UTF8. I'll set it manually in the code like you showed, it is the most practical approach.