Solved:

class MyObject {

  def url_image = new UnprefixedAttribute("src", "http://localhost/
imgs/" + this.product.id+".jpg", null)
}

In the view (as marius said):


<img lift:snippet="MyObject:url_image"/>

Cheers.




On Jul 21, 9:11 am, José María <[email protected]> wrote:
> Hi,
>
> I suppose that this is something simple, how can I put a value inside
> a property in a template?
>
> Something like:
>
> <a href="/mypath/<myobject:id></myobject:id>">hi</a>
>
> Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to