Or use a WebMarkupContainer and an AttributeModifier. Wrap this in your own class so you're not writing HTML in your Java code. Then your links are actually in your HTML (except the SRC which gets generated in code) and your designers can stylize the links etc. Much better IMHO. Something
Thanks Jeremy, Jonathan and Jan. Jan, I've tried your suggestion and it works as expected... :-) Still, Jeremy is right when he defends a cleaner solution. I'll try his suggestion as well. The Wicket API for Google Charts seems very interesting, Jonathan. I'm already using charts4j to encode
Hi Cristina, Java: // prefix and sufix hold the start and end of the img tag String imgTag = prefix + getImgURL() + sufix; add(new Label(imgDisplay, imgTag)); try: add(new Label(imgDisplay, imgTag).setEscapeModelStrings(false)); Best regards, --- Jan.
you might also look at this: http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts Cristina wrote: Hi, I'm trying to generate an img tag pointing to a Google chart at http://chart.apis.google.com/. I'm getting the chart URL as a string and I need to generate the img tag in