I think your right - see
http://www.scala-lang.org/docu/files/api/scala/reflect/BeanProperty.html
and http://scala.sygneca.com/code/defining-bean-properties
for how to add the annotations to the classes for Velocity to be able
to see the properties...
Marc
On 10/07/2009, at 3:04 AM, Ewan wrote:
>
> Bit of googling and came across some wicket/scala folks having a
> similar problem who got around the problem with the following:
>
> implicit def listToJavaList[T](l: Seq[T]) = l.foldLeft(new
> java.util.ArrayList[T](l.size)){(al, e) => al.add(e); al}
>
> and magically I can pull out the value now. What I can't do now are
> pull out an object's properties for example:
>
>
> #foreach($user in $headers.users)
> hello $user.firstname $user.lastname
> #end
>
> I reckon the problem is that Velocity must use bean introspection and
> without getters I can't get the values.
>
> --Ewan
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---