Re: Dynamically generating an img tag

2008-12-28 Thread Jeremy Thomerson
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

Re: Dynamically generating an img tag

2008-12-28 Thread Cristina
are actually in your HTML (except the SRC which gets generated in code) and your designers can stylize the links etc. Much better IMHO. [...] -- View this message in context: http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21199079.html Sent from the Wicket - User

Dynamically generating an img tag

2008-12-27 Thread Cristina
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-tp21190259p21190259.html Sent from the Wicket - User mailing

Re: Dynamically generating an img tag

2008-12-27 Thread Jan Kriesten
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.

Re: Dynamically generating an img tag

2008-12-27 Thread Jonathan Locke
-- 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