You need to close your <a> tag. On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: > > ----Sorry, Posting again with image tag, and anchor hack--- > > Thanks Eelco, This is working now with ContextImage, as you suggested, Now > how do I use this image to create one external link, I tried: > > <td width="20%"><-a- wicket:id="merchantLink"> <i-m-g > wicket:id="merchantLogo"/> </td> > > but it fails miserably after complaining about hierarchy, i can't really > find any method like: > > ExternalLink(java.lang.String id, java.lang.String href, > java.lang.ContextImage image), > > any idea how can i achieve this, > > Thanks!! > > > > Eelco Hillenius wrote: > > > >> Image url woring fine in the browser: > >> https://lilo:8443/whisky/images/mlogo/Merchant.gif > >> > >> Then in my class this is what i have: > >> item.add( new Image("merchantLogo", > >> "https://lilo:8443/whisky/images/mlogo/Merchant.gif") ); > >> > >> And my html looks like: > >> <td width="20%"><i-m-g wicket:id="merchantLogo"/></td> > >> Note: i-m-g actually is img, i added dashes so that the browser does not > >> interpret it when u see the email. > >> > >> And this is the error I am getting: > >> WARN - PackageResource - Unable to find package resource > >> [path = > >> com/ezfizz/whisky/https:/lilo:8443/whisky/images/mlogo/Merchant.gif, > >> style = > >> null, locale = en_US] > >> > >> I am trying to figure out what is wrong here, please take a look and let > >> me > >> know what is missing, I tried relative paths as well, but same problem. > >> It > >> looks like Wicket expects the Image to be in the same package where the > >> class is located. > > > > Yes, the image component is meant for dynamic images and packaged > > images. You typically don't need a Wicket component to display images > > from the web app dir or outside the app. But if you do (e.g. because > > you determine this image dynamically) you can use ContextImage. Take a > > look at the source too, a component like that is very easy to do > > yourself. > > > > Eelco > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Images-Example-Question%21-tf4484804.html#a12790443 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]