Say for a second that in one of my Snippets I have the following binding: def view(xhtml: NodeSeq): NodeSeq = { val entries: NodeSeq = Customer.findAll() match { case Nil => Text("No customers currently defined") case customers => customers.flatMap(customer => bind("cust", chooseTemplate ("customer", "entry", xhtml), "name" -> Text(emptyIfNull(customer.name.is)), "address" -> Text (customer.workAddress.obj.open_!.singleTextLine), "phone" -> Text(emptyIfNull(customer.workPhone.is)), "other" -> Text(emptyIfNull(customer.other.is)), "fax" -> Text(emptyIfNull(customer.workFax.is)), "email" -> Text(emptyIfNull(customer.email.is)), "url" -> Text(emptyIfNull(customer.email.is)))) } bind("customer", xhtml, "entry" -> entries) }
Is there a way that I could apply a style to a complete customer:entry with the goal of highlighting even/odd rows? Let me know and best regards to all, Steve -- -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.