Hi - I would like to link to a static image, and the link should be

I have tried this (using Scala):

val img = new Image("img", new ContextRelativeResource("images/img" + imgId
+ ".png"))

But the link becomes stateful.

I just found

val img = new Image("img", new UrlResourceReference(new Url(listOfStrings,

Is the last example the preferred way of achieving this?

Thanks in advance,

Reply via email to