Maybe something like this would work: <img src="${getExternalImageLink(${propertyImage.imgId})}" />
But the right answer is: don't. Instead, create a getter in your component class that returns the desired value: <img src="${imageLink)}" /> ... public String getImageLink() { return getExternalImageLink(propertyImage.getImgId()); } Keep all complexity in Java, not your template. On Nov 12, 2015 9:46 PM, "Ido Dovrat" <ido.dov...@gmail.com> wrote: > Try to remove the "t:" prefix from your source and value attributes (leave > it in only for the type attribute). > > On Fri, Nov 13, 2015 at 2:29 AM, Damon <milim...@gmail.com> wrote: > > > Hello, > > > > Im trying to call a function from my html file. > > > > <div t:type="Loop" t:source="propertyImages" t:value="propertyImage" > > class="medium-7 medium-centered columns"> > > <img src="${getExternalImageLink(propertyImage.imgId)}" /> > > <br/>Prop Descr: ${propertyImage.description} <br/> > > </div> > > > > it calls:: > > > > public Link getExternalImageLink(String imgId) { > > > > return resources.createEventLink("externalImage", imgId); > > } > > > > public ImageStreamResponse onExternalImage(final String imgid) > > { > > > > } > > > > when the function is called all i get is a null value passed into it. > How > > do i pass the variable to the function? I have searched net / list and > I’m > > unable to find a solution. > > > > > > Thanks! > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > >