Oops, celebrated too soon. Having a strange problem with FormParam:
these three fields show up but have no class attribute:
val register = field(S ? "Save profile?", if (User.loggedIn_?)
true else false, FormParam("class" -> "savebox"))
field("Name", "", FormParam("class" -> "xx"))
if (User.loggedIn_?) field("logged","true",FormParam("class" ->
"logged")) else field("logged","false",FormParam("class" -> "logged"))
these show up with the specified class:
val pwd1 = if (User.loggedIn_?) null else password("Password",
"", FormParam("class" -> "pwd"))
val pwd2 = if (User.loggedIn_?) null else password("Password (re-
enter)", "", mustMatch _ , FormParam("class" -> "pwd"))
select("foo","bar",List("foo","bar"), FormParam("class" -
> "foo"))
Everything compiles successfully and works besides the attribute
creation. It would seem that FormParam is working with everything
except field(). I'm using lift 2.2 against Scala 2.8.1 with sbt 0.7.7
using LiftProject and Scala 2.7.7.
Any ideas would be appreciated.
Thanks again,
Adam