Re: call a function in html with parameter

2015-11-13 Thread Thiago H de Paula Figueiredo
On Fri, 13 Nov 2015 11:00:11 -0200, Bob Harner wrote: Maybe something like this would work: 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 compone

Re: call a function in html with parameter

2015-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 12 Nov 2015 22:29:45 -0200, Damon wrote: Hello, Hi! Im trying to call a function from my html file. class="medium-7 medium-centered columns"> Prop Descr: ${propertyImage.description} it calls:: public Link getExternalImageLink(String imgId) { return resources.

Re: call a function in html with parameter

2015-11-13 Thread Bob Harner
Maybe something like this would work: But the right answer is: don't. Instead, create a getter in your component class that returns the desired value: ... public String getImageLink() { return getExternalImageLink(propertyImage.getImgId()); } Keep all complexity in Java, not your template

RE: Updated Hotel Booking demo app

2015-11-13 Thread Svein-Erik Løken
Superb! The best way to learn ☺

Re: Updated Hotel Booking demo app

2015-11-13 Thread Massimo Lusetti
Thanks Bob! ... Really appreciated! On Wed, Nov 11, 2015 at 10:43 PM, Bob Harner wrote: > Everybody, > > There's a greatly revised and polished version of the Tapestry Hotel > Booking app now running at: > > http://tapestry-vm.apache.org:8080/hotels/ > > Notable changes: > > 1) This version u