[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
On Apr 6, 10:05 pm, wapgui torsten.schm...@wapgui.com wrote: Did you mean something like that ? color - hidden(() = fp.color) % (id - color) Yes But how can I get the value of the color and how to set the value via js if the form has no name and the name of the input is generated. form

[Lift] Newbie doing some quick testing needs help

2009-04-07 Thread bilbo0s
Hello All, I just set up a quick Lift testing environment using Mongo as my data layer, and everything works really well! So first of all I wanted to congratulate everyone who worked on this software. I think you guys are on to something big. What I am writing about today, is to find out

[Lift] Re: Scala-tools.org is back online

2009-04-07 Thread Timothy Perrett
Thanks for all your hard work on this David - its much appreciated by the community. Thanks Tim On Apr 7, 4:06 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Apr 6, 2009 at 8:03 PM, etorreborre etorrebo...@gmail.com wrote: Thanks a lot David for putting the machine back

[Lift] http://liftweb.net/ broken ?

2009-04-07 Thread Francois Armand
Hello, I notice that since yesterday, http://liftweb.net/ responds 403 Forbidden - nginx/0.6.32 and I was wondering if it was a known state, and is so, perhaps to write just a little message saying that (in fact, I pointed an IRC user to the site and he was surpirsed by the framework

[Lift] Re: Newbie doing some quick testing needs help

2009-04-07 Thread Derek Chen-Becker
Do you mean a drop-down select (only one item shown), or a true combo box where you can either type your own text or drop-down to select from a list? The former is done by setting the size attribute to 1 on the select: select size=1 optiontest/option optiontwo/option optionthree/option

[Lift] Re: http://liftweb.net/ broken ?

2009-04-07 Thread Timothy Perrett
Francois, See the other thread about that server being DoS attached yesterday. Thanks Tim On 07/04/2009 14:01, Francois Armand fan...@gmail.com wrote: Hello, I notice that since yesterday, http://liftweb.net/ responds 403 Forbidden - nginx/0.6.32 and I was wondering if it was a known

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
Note the SHtml.hidden function is defined as: def hidden(func: () = Any, attrs: (String, String)*): Elem = makeFormElement(hidden, NFuncHolder(func), attrs :_*) % (value - true) see that it automatically puts value = true. It used to accept a function like (String) = Any but I'm not sure why

[Lift] Newbie doing some quick testing needs help

2009-04-07 Thread bilbo0s
Hello, I'm somewhat new to Lift and have some questions about how stuff works. I am using Lift with MongoDB on the backend. This works, but I would really like to do things the Lift way. To that end, is there any more documentation on how to use the 'record' stuff instead of the 'mapper'

[Lift] Re: http://liftweb.net/ broken ?

2009-04-07 Thread lmorroni
I'm curious as to why someone would target liftweb.net and scala- tools.org specifically? It seems like specifically targeted ill intentions. On Apr 7, 9:08 am, Timothy Perrett timo...@getintheloop.eu wrote: Francois, See the other thread about that server being DoS attached yesterday.

[Lift] Re: Newbie doing some quick testing needs help

2009-04-07 Thread Cleophus Tibbs
Thanx a lot. Any tips on using record instead of mapper? On Tue, Apr 7, 2009 at 8:05 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Do you mean a drop-down select (only one item shown), or a true combo box where you can either type your own text or drop-down to select from a list? The

[Lift] Re: http://liftweb.net/ broken ?

2009-04-07 Thread David Pollak
On Tue, Apr 7, 2009 at 6:37 AM, lmorroni la...@morroni.com wrote: I'm curious as to why someone would target liftweb.net and scala- tools.org specifically? It seems like specifically targeted ill intentions. The Lift site was *not* targeted... nor was the scala-tools.org site. It was not

[Lift] Re: Hidden field in form

2009-04-07 Thread wapgui
Perfect, works as expected. Thanks again. Cheers Torsten On Apr 7, 3:37 pm, marius d. marius.dan...@gmail.com wrote: Note the SHtml.hidden function is defined as: def hidden(func: () = Any, attrs: (String, String)*): Elem = makeFormElement(hidden, NFuncHolder(func), attrs :_*) % (value -

[Lift] Re: Hidden field in form

2009-04-07 Thread David Pollak
Marius -- Thanks for giving the answer. The reason that SHtml.hidden() takes () = Unit is that I could not think of a use case for passing data back and I was tired of ignore = {...} in my code. As a broader issue, there's nothing magic in Lift. You can see how Marius grabbed the existing code

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
I actually encountered situations where I had to pass actual data as hidden field. For instance we had a SAML service that also provided a login widget as a convenient way to login the user directly into the user's realm service and that service after auth redirected the user to the originator

[Lift] Re: PhET Website

2009-04-07 Thread samreid
David, Thanks for your feedback on the performance, scalability and localization capabilities of Lift, and for your generous offer to help with our project (I'm sure you are very busy). I'll be in touch with you if/when we start down the Lift path. Thanks again, Sam Reid On Apr 5, 7:09 am,

[Lift] Re: PhET Website

2009-04-07 Thread samreid
Tim, Thanks for your feedback on Lift localization; we do intend to support LTR and RTL languages, so it's good to hear about your positive experience. We are hoping to make it very easy for customers to translate our web pages (we already have a nice way to translate our educational

[Lift] Re: Hidden field in form

2009-04-07 Thread marius d.
Ok ... I took the liberty to overload it. Here is the signature: def hidden(func: (String) = Any, defaultlValue: String, attrs: (String, String)*): Elem Br's, Marius On Apr 7, 7:08 pm, marius d. marius.dan...@gmail.com wrote: I actually encountered situations where I had to pass actual data

[Lift] Re: Hidden field in form

2009-04-07 Thread bradford
Thanks, Marius. I will need this functionality as well. On Apr 7, 12:32 pm, marius d. marius.dan...@gmail.com wrote: Ok ... I took the liberty to overload it. Here is the signature: def hidden(func: (String) = Any, defaultlValue: String, attrs: (String, String)*): Elem Br's, Marius On

[Lift] Re: Where to start

2009-04-07 Thread Derek Chen-Becker
A (mostly current) PDF version of the book is available on the google group page: http://groups.google.com/group/the-lift-book A commercial version of the book will be out from APress in the near future. Derek 2009/4/7 João Pereira joaomiguel.pere...@gmail.com I'm using this sample app:

[Lift] Re: DB Localization Standards?

2009-04-07 Thread bradford
Hi Derek, I'm still very new to JPA, so I apologize for my slowness. I don't understand what's going on in this example with MapKey. What exactly is it doing? import javax.persistence._ @Entity class Products { @Id @GeneratedValue(){val strategy = GenerationType.AUTO} var id:

[Lift] Suitability of writing servlets in scala/lift

2009-04-07 Thread Gavin Bong
Hi, My usecase is that I have a set of servlets which uses HttpSession. So in my case, I don't need any of the view components of Lift. Should I be considering lift or should I stick with writing my servlets in plain scala instead ? Thanks Gavin

[Lift] Calling all gardeners...

2009-04-07 Thread Debby Meredith
...have we got an opportunity for you! Thus far, work on the Lift wiki has been in spurts, but a critical part of continuing to move Lift forward is to keep our wiki current, useful, and engaging. So, in talking with David and the other Lift committers, we'd really like to get a few motivated

[Lift] Re: Suitability of writing servlets in scala/lift

2009-04-07 Thread Derek Chen-Becker
You could use the custom dispatch functionality in Lift to achieve most of what Servlets do with less hassle and with some of the niceties of the LiftResponse classes. It also lets you do pattern matching on the request, which can simplify things and make it more flexible. You can even decide if

[Lift] Re: DB Localization Standards?

2009-04-07 Thread Derek Chen-Becker
Sorry, it was freakin' busy at work today. As a general rule, you need to use Java collections for your JPA entities because the providers don't know anything about Scala. Fortunately, the scala.collection.jcl.Conversions object has some nice conversions from Java collections to Scala collections.