[Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-16 Thread James Yong
Johan Compagner jcompagner at gmail.com writes: jip that is what i meant But ofcourse eelco's method is also fine to use. On 11/15/05, Scott Sauyet lists at sauyet.com wrote: = James Yong i_yongbl at yahoo.com.sg = Johan Compagner jcompagner at gmail.com If you can do that then i

[Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread James Yong
Johan Compagner jcompagner at gmail.com writes: ok you do write in the webapplication directory.. You do have always complete control over it where youre webapp will be installed on? And what kind of application server is used? Because you do know that writeable access isn't guarenteed?

[Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread James Yong
Eelco Hillenius eelco.hillenius at gmail.com writes: Or use public class SimpleImage extends WebComponent { public SimpleImage(String id, String imgSrc) { super(id, new Model(imgSrc)); } public SimpleImage(String id, IModel imgSrcModel) {

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread Scott Sauyet
= James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread Johan Compagner
jip that is what i meant But ofcourse eelco's method is also fine to use.On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: = James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread Eelco Hillenius
Although that shouldn't be a label as there is no body to replace. Just a WebMarkupContainer, or in this case even better a WebComponent suffices. Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: = James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you

[Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread James Yong
Johan Compagner jcompagner at gmail.com writes: Of course you save youre files to a server you have to know the folder where you have write access. Then you can load them from that location just as fine as reading them from a database. Hi, I used a label to generate the img tag. It

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread Juergen Donnerstag
Another option could be to use Image and override onComponentTag Juergen On 11/14/05, James Yong [EMAIL PROTECTED] wrote: Johan Compagner jcompagner at gmail.com writes: Of course you save youre files to a server you have to know the folder where you have write access. Then you can

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread Eelco Hillenius
Or use public class SimpleImage extends WebComponent { public SimpleImage(String id, String imgSrc) { super(id, new Model(imgSrc)); } public SimpleImage(String id, IModel imgSrcModel) { super(id, imgSrcModel); } protected