[Lift] Re: [request] update lift-openid 's dependency of openid4java to a newer version

2009-10-18 Thread Indrajit Raychaudhuri
Could you please file a ticket? http://github.com/dpp/liftweb/issues Cheers, Indrajit On 18/10/09 11:19 AM, night_stalker wrote: Currently lift-openid is using openid4java 0.9.3, which is a little old and is difficult to find a maven repository to download. I think changing lift-openid's

[Lift] The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Neil.Lv
Hi all, The scala-2.7.5.final.zip can't downlaod, if anyone knows another link that can download ? scala-2.7.5.final.zip http://www.scala-lang.org/downloads/distrib/files/scala-2.7.5.final.zip So I want to know that the scala-2.7.6 whether works with lift1.1 well ? Thanks very

[Lift] Having trouble understanding SessionVar[Box[MyClass]] and how to use it.

2009-10-18 Thread Jim Barrows
Here's a snippet: object parentOrganization extends SessionVar[Box[Organization]](Empty) def create(xhtml: NodeSeq): NodeSeq = { var name: String = def processAdd() = { if (name.isEmpty) S.error(Please provide a name) else { val organization = new

[Lift] Re: Scala and Eclipse

2009-10-18 Thread johncch
We have a large multi-module project that includes scala in a few key artifacts and things are going somewhat smoothly.  However, I think most of the devs are bailing out of eclipse for intellij. I just downloaded IntelliJ IDEA CE with the scala plugin and it's really very nice. I think the

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Timothy Perrett
Neil, You do not need to download the scala distro ahead of time - maven will automatically download the right jars for you if they don't exist in your local repo. Lift does not and will not work with 2.7.6 - that was a broken scala release. Cheers, Tim Sent from my iPhone On 18 Oct

[Lift] Friendly url parameter for PaginateSnippet?

2009-10-18 Thread night_stalker
Hi all, I've just tried the PaginatedSnippet and is willing to make some query pages with it, but the url parameter looks not very good (I got a /post?F1054255562605UD5=_ ). So —— how to make paginated page's url more friendly? I'd prefer something like /posts?page=2.

[Lift] Re: [request] update lift-openid 's dependency of openid4java to a newer version

2009-10-18 Thread night_stalker
done. thanks for you concern. http://github.com/dpp/liftweb/issues#issue/109 On Oct 18, 2:27 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: Could you please file a ticket?http://github.com/dpp/liftweb/issues Cheers, Indrajit On 18/10/09 11:19 AM, night_stalker wrote: Currently

[Lift] Re: Having trouble understanding SessionVar[Box[MyClass]] and how to use it.

2009-10-18 Thread Marius
Well you declare the session-var as holding a Box[Organization] but you're setting it as: parentOrganization(organization) wher organization is not a Box. so it should be: parentOrganization(Full(organization)) // this unless you have some implicits to transform an Oraganization to a

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-18 Thread Marius
F1054255562605UD5 means that a function on server side will be invoked when this is sent. I believe these is a function that the Paginator is binding automatically. Is there a more specific reason why you want this ? Br's, Marius On Oct 18, 11:12 am, night_stalker usur...@gmail.com wrote: Hi

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Neil.Lv
That means i can't use scala-2.7.6 with lift1.1 ? Now my scala version is 2.7.4 whether it work with lift1.1 ? Thank you very much. Cheers, Neil On Oct 18, 4:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Neil, You do not need to download the scala distro ahead of time - maven  

[Lift] Re: Newbee question Datamapper

2009-10-18 Thread hyperion
Then I would have two tables I suggest. But thank you nevertheless, it is not so important, I can live with fields mapping single columns ;). I only wanted to reduce some redundancy and was interested if it is possible to build such types. On Oct 18, 12:23 am, David Pollak

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread Indrajit Raychaudhuri
On 18/10/09 3:58 PM, Neil.Lv wrote: That means i can't use scala-2.7.6 with lift1.1 ? No you can't and shouldn't. Now my scala version is 2.7.4 whether it work with lift1.1 ? Move to scala version 2.7.5, that's what is recommended at the moment. But then again, you don't need to

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-18 Thread night_stalker
Thank you for your explanation. The reason is users don't get the same page with the same url, and, they can't read the url. Just wondering if I can use existing classes or should write my own. It seems I shouldn't use stateful snippet for this, stateless requirement. Best regards. On Oct 18,

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-18 Thread Marius
There are very few things truly stateless in lift such as LiftRules.statelessDispatchTable. Once you bind functions Lift creates a name for these functions. These names are quite opaque (I think Dave wanted to add a mechanism to allow users to specify their own naming ...). For each page

[Lift] Re: functionality similar to Rails ActiveRecordHelper

2009-10-18 Thread opyate
On Oct 17, 7:44 pm, TylerWeir tyler.w...@gmail.com wrote: Like CRUDify? http://www.scala-tools.org/mvnsites-snapshots/liftweb/lift-mapper/sca... Perfect, thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-18 Thread Derek Chen-Becker
OK, I've run into an issue that makes me really uncomfortable. java.util.Calender is generally 1-based for fields, except for month of year, which is zero-based. This inconsistency has bled through to the TimeHelpers API. I can't just change this, because that would break a lot of code, possibly

[Lift] Re: The scala-2.7.5.final.zip can't downlaod, the lift1.1 can work with scala-2.7.6 well ?

2009-10-18 Thread David Pollak
On Sun, Oct 18, 2009 at 3:28 AM, Neil.Lv anim...@gmail.com wrote: That means i can't use scala-2.7.6 with lift1.1 ? Now my scala version is 2.7.4 whether it work with lift1.1 ? To reinforce what Tim and Indrajit have said, whatever version of Scala you have installed on your machine for

[Lift] Re: Newbee question Datamapper

2009-10-18 Thread Naftoli Gugenheim
Another approach would be to use a lookup table of durations using LongMappedMapper etc. On Sun, Oct 18, 2009 at 6:49 AM, hyperion hyperion1...@googlemail.comwrote: Then I would have two tables I suggest. But thank you nevertheless, it is not so important, I can live with fields mapping

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { span id=scoretable { for {blog - blogs} yield trtda href={blog.url}{blog.url}/ a/tdtd {blog.displayScore}/td/tr } /table/span } def render = { bind(joop - createDisplay(blogs)) }

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { span id=scoretable { for {blog - blogs} yield trtda href={blog.url}{blog.url}/ a/tdtd {blog.title}/td/tr } /table/span } def render = { bind(joop - createDisplay(blogs)) }

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-18 Thread Naftoli Gugenheim
Two points. 1. Could you explain in more detail the advantage of a friendly URL? 2. Keep in mind that it's safer for MVC frameworks to implement such a scheme, because you only use pagination on a page which is designed with pagination in mind. In Lift, with View First, pagination

[Lift] Re: does this look ok?

2009-10-18 Thread Naftoli Gugenheim
I think so... Does it compile? On Sun, Oct 18, 2009 at 7:13 PM, jack jack.wid...@gmail.com wrote: Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { span id=scoretable { for {blog - blogs} yield trtda href={blog.url}{blog.url}/ a/tdtd {blog.title}/td/tr

[Lift] Re: does this look ok?

2009-10-18 Thread Jack Widman
yes. I think I found the problem elsewhere in the logic. thanks. On Sun, Oct 18, 2009 at 11:07 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I think so... Does it compile? On Sun, Oct 18, 2009 at 7:13 PM, jack jack.wid...@gmail.com wrote: Does this code look ok? def

[Lift] How to set uniqueFieldId

2009-10-18 Thread sunanda
Hi, How to set the uniqueFieldId for a mapper. Following is the sample code how I set the uniqueFieldId. object colpos extends MappedInt(this){ override def validations = checkForColPos _ :: super.validations override def uniqueFieldId=Full(abc) def checkForColPos(pos:Int) = {

[Lift] Re: How to set uniqueFieldId

2009-10-18 Thread Naftoli Gugenheim
Try fld.uniqueFieldId openOr n/a On Sun, Oct 18, 2009 at 11:19 PM, sunanda sunanda.pa...@gmail.com wrote: Hi, How to set the uniqueFieldId for a mapper. Following is the sample code how I set the uniqueFieldId. object colpos extends MappedInt(this){ override def validations =

[Lift] Re: How to set uniqueFieldId

2009-10-18 Thread sunanda
Hi Naftoli, Thank you so much. It works now. Sunanda On Oct 19, 2:28 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Try fld.uniqueFieldId openOr n/a On Sun, Oct 18, 2009 at 11:19 PM, sunanda sunanda.pa...@gmail.com wrote: Hi, How to set the uniqueFieldId for a mapper. Following

[Lift] Re: Scala and Eclipse

2009-10-18 Thread Naftoli Gugenheim
I use Lift in Eclipse with m2eclipse. I create the projects from within Eclipse. On Sun, Oct 18, 2009 at 12:01 AM, johncch john...@gmail.com wrote: We have a large multi-module project that includes scala in a few key artifacts and things are going somewhat smoothly. However, I think most