bind(): suppress automatic attribute mixin

0 views
Skip to first unread message

jasper

unread,
Feb 25, 2010, 11:53:04 AM2/25/10
to Lift
val xml = <t:node attr="some"></t:node>

with

val processed = bind("t",xml, "node" -> <a />)

becomes

<a attr="some"></a>

How do I suppress the mixin of attr?

Thank you,

Jasper

Marius

unread,
Feb 25, 2010, 12:01:16 PM2/25/10
to Lift
1. what Lift version are you using?
2. Can you try with other attribute name or with multiple attributes?

jasper

unread,
Feb 25, 2010, 12:06:37 PM2/25/10
to Lift
I am using version 1.03. The name and amount of attributes does not
matter. All attributes are being passed on.

jasper

unread,
Feb 25, 2010, 12:13:04 PM2/25/10
to Lift
I have also just realized that I forgot to prefix for the attributes
above:

val xml = <t:node attr="some"></t:node>

should have been:

val xml = <t:node t:attr="some"></t:node>

The result stays the same (without the prefix):

<a attr="some"></a>

Sorry for the mistake and the additional mail traffic!

Ross Mellgren

unread,
Feb 25, 2010, 12:26:50 PM2/25/10
to lif...@googlegroups.com
The mixin behavior is a bug, and is fixed in 1.1 and 2.0. You should switch to 2.0-SNAPSHOT (or 2.0-M2 if you don't like SNAPSHOTs) unless you have a compelling reason to stay at 1.0

-Ross

> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>

TAKEUCHI POMU

unread,
Feb 25, 2010, 10:03:28 PM2/25/10
to liftweb
Reply all
Reply to author
Forward
0 new messages