On Fri, 13 Nov 2015 11:00:11 -0200, Bob Harner <bobhar...@gmail.com> wrote:

Maybe something like this would work:

<img src="${getExternalImageLink(${propertyImage.imgId})}" />

The inner ${} isn't needed (and I'm not even sure it would work). getExternalImageLink(propertyImage.imgId) should work.

But the right answer is: don't. Instead, create a getter in your component
class that returns the desired value:

<img src="${imageLink)}" />

There's type there: an extra closing parenthesis. <img src="${imageLink}" />
...
public String getImageLink() {
    return getExternalImageLink(propertyImage.getImgId());
}

Keep all complexity in Java, not your template.

Agreed. I cannot recommend this enough.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to