Re: [Lift] Re: Js normalizations

2010-03-08 Thread Jim Wise
''? -- Jim Wise jw...@draga.com pgp5RWWR8EaxM.pgp Description: PGP signature

[Lift] TableSorter with CRUDify

2010-01-11 Thread Jim Wise
turn sortable. Am I missing something? Should this work? Thanks as always, -- Jim Wise jw...@draga.com pgpS1i3qSdvBr.pgp Description: PGP signature

Re: [Lift] TableSorter with CRUDify

2010-01-11 Thread Jim Wise
Jim Wise jw...@draga.com writes: b.) added the following to my CRUDify'ed object: override def showAllClass = tablesorter override def pageWrapper(body: NodeSeq): NodeSeq = lift:surround with=default at=content { TableSorter(show_all) } { body

Aha! (Re: [Lift] Validation -- I'm doing it wrong?)

2010-01-08 Thread Jim Wise
Jim Wise jw...@draga.com writes: However, although the new defaultValue is honored, the new validations don't seem to get run -- I can create duplicate, empty, or illegal category names without triggering a FieldError. What am I missing? This turns out to have been a maven/dependency issue

Re: Aha! (Re: [Lift] Validation -- I'm doing it wrong?)

2010-01-08 Thread Jim Wise
Jim Wise jw...@draga.com writes: Validation is now working fine -- I'll push it to github after a little cleanup. Done. -- Jim Wise jw...@draga.com pgp4LsteWgMBn.pgp Description: PGP signature

Re: [Lift] what is the meaning of _! and _?

2010-01-08 Thread Jim Wise
David Pollak feeder.of.the.be...@gmail.com writes: The _ is required by the Scala parser. open! is not a valid method name, but open_! is valid. Aha! -- Jim Wise jw...@draga.com pgpCgWKVQwRyO.pgp Description: PGP signature

Re: [Lift] Re: what is the meaning of _! and _?

2010-01-08 Thread Jim Wise
Gang wangga...@gmail.com writes: Why is Box.open_! nasty? is it just returning the value held in Box? Thanks_! Or throwing an exception if the box is not Full()... -- Jim Wise jw...@draga.com pgptg5cEOK2TD.pgp Description

[Lift] Validation -- I'm doing it wrong?

2010-01-07 Thread Jim Wise
? As always, thanks for all help with this -- the quick and helpful answers I've gotten on this list are certainly one of my favorite parts of the Lift framework! -- Jim Wise jw...@draga.com pgpSCOcrrxaBT.pgp Description: PGP

Re: [Lift] Validation -- I'm doing it wrong?

2010-01-07 Thread Jim Wise
Jim Wise jw...@draga.com writes: object name extends MappedPoliteString(this, 128) { override def defaultValue = private def noSlashes(s: String) : List[FieldError] = if (s.contains(/)) { List(FieldError(this, Text(Category name \ + s + \ may not contain

[Lift] Example project -- Image gallery

2010-01-06 Thread Jim Wise
thoughts on what I could be doing differently here, and hope this helps anyone else who is, like me, just starting out with lift. -- Jim Wise jw...@draga.com pgpOv3lbCKD7M.pgp Description: PGP signature

Re: [Lift] Safe handling of long params

2010-01-05 Thread Jim Wise
the differences between the two, but am not sure why flatMap is preferred when there aren't Lists involved. Any reason? Aren't the two interchangeable in this case? Thanks, -- Jim Wise jw...@draga.com pgpAa00XxSc5y.pgp Description: PGP

Re: [Lift] Safe handling of long params

2010-01-05 Thread Jim Wise
: Full(1234).flatMap(asLong) // result is Full(1234) Hope that helps, It does, thanks! -- Jim Wise jw...@draga.com pgpob1HvlWv3g.pgp Description: PGP signature

[Lift] Safe handling of long params

2010-01-04 Thread Jim Wise
if a String (or better, a Box[String]) is convertable toLong without a try/catch? Thanks again, -- Jim Wise jw...@draga.com pgpMvTKeojjrI.pgp Description: PGP signature

Re: [Lift] Safe handling of long params

2010-01-04 Thread Jim Wise
Aha! Thanks, Sent from my iPhone On Jan 4, 2010, at 16:45, Ross Mellgren dri...@gmail.com wrote: I can answer b) -- S.param(image).flatMap(asLong) asLong comes from BasicTypesHelpers. -Ross On Jan 4, 2010, at 4:42 PM, Jim Wise wrote: So, in my endless retweaking of this code

[Lift] Recursive bind within the same snippet

2009-12-23 Thread Jim Wise
were visible when the xhtml was first parsed. Thoughts? This is with 1.1-M8, though I don't think it makes a difference... -- Jim Wise jw...@draga.com pgp94whYwN2xg.pgp Description: PGP signature

Re: [Lift] Recursive bind within the same snippet

2009-12-23 Thread Jim Wise
) ) ImageInfo.findAll( By(ImageInfo.category, category), OrderBy(ImageInfo.name, Ascending) ).flatMap({i = doBinding(in, i)}) } which does exactly what I need! Thanks much, -- Jim Wise jw

Re: [Lift] Recursive bind within the same snippet

2009-12-23 Thread Jim Wise
is your friend. -Ross On Dec 23, 2009, at 4:45 PM, Jim Wise wrote: Jim Wise jw...@draga.com writes: category - i.category.obj.open_!.name, // XXX safe unless key rel is corrupt ? AttrBindParam(imgUrl, i.url, src) And, since I'm looking at this code, what's the safe

[Lift] XSLT?

2009-12-04 Thread Jim Wise
for this (no surprise, as Lift has a full templating system of its own). Before I set about doing this by calling into Xerces and Xalan from Scala (should be easy enough), is there any sample code or Scala API for XSLT transformations already out there? Thanks, -- Jim