[Lift] Re: Acceding object fields in template

2009-07-22 Thread Timothy Perrett
José, im afraid it doesn't do that, you have to use explicit binds as far as im aware. Perhaps you'll find this article on lifts binding mechanism useful: http://is.gd/sfyT Cheers, Tim On Jul 22, 11:02 am, José María josemariar...@gmail.com wrote: Hi, Is it possible to access to the field of

[Lift] Re: Acceding object fields in template

2009-07-22 Thread David Pollak
Jose, At this point, Lift doesn't support this kind of functionality... but I think it's an interesting feature. Can you open a ticket for it at http://github.com/dpp/liftweb/issues Thanks, David On Wed, Jul 22, 2009 at 3:02 AM, José María josemariar...@gmail.com wrote: Hi, Is it

[Lift] Re: Acceding object fields in template

2009-07-22 Thread marius d.
Not sure how much it worths but I'm having second thoughts about this because it feels to me like it drifts away from the Lift's templating idiom. Accessing arbitrary objects properties/methods seems to bring lift closer to JSF kinds of things and I don't really see what problem this actually

[Lift] Re: Acceding object fields in template

2009-07-22 Thread Naftoli Gugenheim
What you can do is use the overload of bind that takes a nodeFailureXform argument, and for that argument pass a Full function that transforms your nodes. Basically it will get nodes with the prefix you want, and then parse the label, e.g., using (Rich)String.split('.'). Use Mapper's methods