Anyone want to fix the book? :) Anyway, once you're using -%> you want it to be id, not ledger:id.
------------------------------------- Marius<[email protected]> wrote: I'm eating letters "as after the was out" should be "as after the the book was out" :D On Feb 1, 6:03 pm, Marius <[email protected]> wrote: > Replace your bind with: > > bind ("ledger", content, "time" -%> <span>{(new > java.util.Date).toString}</span>) > > ledger:id is not anymore preserved as after the was out this was > considered a not intended feature and got moved. -%> should do what > you want. > > Br's, > Marius > > On Feb 1, 5:57 pm, ced <[email protected]> wrote: > > > > > I want to set a node attribute in the template markup exactly like it > > is done in example 7.13 from the Lift Book. I'll paste it here: > > > // the markup > > <lift:Ledger.balance> <ledger:time ledger:id="myId"/> > > </lift:Ledger.balance> > > > // The snippet class > > class Ledger { def balance (content : NodeSeq ) : NodeSeq = { > > bind ("ledger", content, "time" -> <span>{(new > > java.util.Date).toString}</span>) > > > } > > } > > > Unfortunately I can't get it to work. Is there something I have to set/ > > enable to get this feature working? I'm using Lift 1.1-M8 > > > Thanks, > > Chris -- 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. -- 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.
