I recently started getting this warning my log, after I started using
more than one bind position in my default template. Looking at the
code, it looks like it will (erroneously?) warn any time there is more
than one bind point and you are in dev mode:
20:18:53,987 [http-0.0.0.0-28543-1] WARN lift - Unused binding values
for <lift:bind>: content
20:18:53,987 [http-0.0.0.0-28543-1] WARN lift - Unused binding values
for <lift:bind>: title
This is the branch of BindHelpers that looks to be causing it:
case Some(nodes) => {
if (Props.devMode && vals.size > 1) {
warnOnUnused()
}
nodes
}
There is another place where warnOnUnused is used in the same one, but
it gives an adjacent log message I'm not seeing. This is the
definition of warnOnUnused:
def warnOnUnused() =
Log.warn("Unused binding values for <lift:bind>: " +
vals.keySet.filter(key => key !=
ns.text).mkString(", "))
This seems incorrect -- any time it hits a lift:bind node, I think
it'll log this warning for every other bound value that isn't the
current one.
Should I file a ticket? Is this an actual warning and I'm misreading?
The template is working correctly.
-Ross
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---