''?
--
Jim Wise
jw...@draga.com
pgp5RWWR8EaxM.pgp
Description: PGP signature
turn sortable.
Am I missing something? Should this work?
Thanks as always,
--
Jim Wise
jw...@draga.com
pgpS1i3qSdvBr.pgp
Description: PGP signature
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
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
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
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
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
?
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
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
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
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
:
Full(1234).flatMap(asLong) // result is Full(1234)
Hope that helps,
It does, thanks!
--
Jim Wise
jw...@draga.com
pgpob1HvlWv3g.pgp
Description: PGP signature
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
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
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
)
)
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
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
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
18 matches
Mail list logo