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 order to display it as an image.
> 
> I'm trying to use a Label, like:
> 
> HTML:
> 
>             <div wicket:id="imgDisplay">img tag goes here</div>
> 
> Java:
> 
>             // prefix and sufix hold the start and end of the img tag
>             String imgTag = prefix + getImgURL() + sufix;
>             add(new Label("imgDisplay", imgTag));
> 
> Problem is, < > and " are not interpreted as markup delimiters, but as
> normal characters, so all I've got is the URL displayed as a literal where
> the image should be displayed.
> 
> Is there a simple way to do something like this?
> 
> Thanks so much,
> 
> Cristina
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190506.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to