Re: [Wicket-user] Image is not displayed

2005-10-11 Thread Johan Compagner
please upgrade to the latest RC version of 1.1 You can only preview the page when you have the image in the org/foo/presentation/images dir yes? Because if you don't have it there it is not previeable .. can you use the constructor Image(String , ResourceReference)? And then first make a

Re: [Wicket-user] Image is not displayed

2005-10-11 Thread Martijn Dashorst
Use a wicket:remove around an image tag that does link to the resource in either the original directory using a relative path (../../../../../../etc) or the package. I use that all the time :-) MartijnOn 10/11/05, Johan Compagner [EMAIL PROTECTED] wrote: please upgrade to the latest RC version of

Re: [Wicket-user] Image is not displayed

2005-10-11 Thread Francis Amanfo
Thanks Martijn, I'll try that. FrancisOn 10/11/05, Martijn Dashorst [EMAIL PROTECTED] wrote: Use a wicket:remove around an image tag that does link to the resource in either the original directory using a relative path (../../../../../../etc) or the package. I use that all the time :-) MartijnOn

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved: img src=images/delete.gif type=image width=12 height=12 alt=[Delete] border=0 valign=middle / On 10/10/05, Francis Amanfo

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Francis Amanfo
I'm adding the image dynamically based on a condition. I can't see why this shouldn't work. The images directory are located in the application root. Tried also to put it in the presentation package but didn't work. Whats the solution then? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Do you

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
Images in Wicket are bit tricky. If you didn't want to use ResourceReferences, you could do something like this: AttributeModifier src = new AttributeModifier(src, true, new Model() { @Override public Object getObject(Component component) { // Do some logic and return a string... }

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Juergen Donnerstag
But I agree with Francis. This should work. May be Johan can help on this. Juergen On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Images in Wicket are bit tricky. If you didn't want to use ResourceReferences, you could do something like this: AttributeModifier src = new

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Johan Compagner
first which version of wicket are you using? And where is the image images/delete.gif exactly? is in in the webapp root? so yes then you don't need a wicket tag for that and it should work out of the box Looking at youre tag:

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Francis Amanfo
Right, I'm having the image in the webapps/portal/images directory where portal is my application's context. And also having it in org/foo/presentation/images but both don't work. The strange part is that previewing the panel in my development environment displays the image fine but only after