Using the latest and greatest (master branch), I can't reproduce the
MatchError but I can reproduce the issue with the attribute being generated
if the value is null.

I'll fix it tomorrow morning.

alex


On Sun, Dec 6, 2009 at 5:59 AM, Alex Black <[email protected]> wrote:

> > If you output null for theattributevalue, theattributeis not
> > rendered:
>
> I've just upgraded from 1.0 to 1.1-M6, and this doesn't seem to work
> any more - could this be a bug in M6?
>
> Message: scala.MatchError: null
>        scala.runtime.ScalaRunTime$.boxArray(ScalaRunTime.scala:136)
>        net.liftweb.util.BindHelpers$class.mix$1(BindHelpers.scala:612)
>        net.liftweb.util.BindHelpers$class.net$liftweb$util$BindHelpers$
> $bindByNameMixIn(BindHelpers.scala:618)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$
> $anonfun$apply$27.apply(BindHelpers.scala:440)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$
> $anonfun$apply$27.apply(BindHelpers.scala:436)
>        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:436)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:424)
>        scala.Seq$class.flatMap(Seq.scala:294)
>        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
> (BindHelpers.scala:424)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:444)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:424)
>        scala.Seq$class.flatMap(Seq.scala:294)
>        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
> (BindHelpers.scala:424)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:444)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:424)
>        scala.Seq$class.flatMap(Seq.scala:294)
>        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
> (BindHelpers.scala:424)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:444)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:424)
>        scala.Seq$class.flatMap(Seq.scala:294)
>        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
> (BindHelpers.scala:424)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:444)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
> $1$1.apply(BindHelpers.scala:424)
>        scala.Seq$class.flatMap(Seq.scala:294)
>        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>        net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
> (BindHelpers.scala:424)
>
>  net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:
> 449)
>
>  net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:
> 409)
>        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>        net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:409)
>        net.liftweb.util.Helpers$.bind(Helpers.scala:29)
>        net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:380)
>        net.liftweb.util.Helpers$.bind(Helpers.scala:29)
>
>
> >
> > scala> bind("stuff", <input type="checkbox" stuff:s=""/>,
> AttrBindParam("s",Text("checked"),"checked"))
> > res11: scala.xml.NodeSeq = <input type="checkbox"
> checked="checked"></input>
> >
> > scala> bind("stuff", <input type="checkbox" stuff:s=""/>,
> AttrBindParam("s",null,"selected"))
> > res12: scala.xml.NodeSeq = <input type="checkbox" ></input>
> >
> > /Jeppe
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to