Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Igor Vaynberg
you have to version properties if you want back button support public void setExternalSrc(boolean externalSrc) { if (externalSrc!=this.externalSrc) { final boolean old=this.externalSrc; addStatChange(new Change() { void undo() { this.externalSrc=old; }});

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag: > That is added by default So, the links are already transformed automagically without the need to do anything more? I have to check that. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ -

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
That is added by default Juergen On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > * Juergen Donnerstag: > > > ApplicationSettings.getContextPath() and PrependContextPathHandler > > Thanks Juergen, > > PrependContextPathHandler seems to be what we are looking for > indeed. But

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Francisco Treacy
Hi all, I know I'm not addressing the exact issue, but just my two cents: I needed to dynamically specify the src attribute of the img tag, and I couldn't find great examples for doing this. And I adopted the following: WebMarkupContainer flag = new WebMarkupContainer("flag-image-path"); flag.a

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag: > ApplicationSettings.getContextPath() and PrependContextPathHandler Thanks Juergen, PrependContextPathHandler seems to be what we are looking for indeed. But what does it mean « This is a markup inline filter which by default is added to the list of markup fil

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Johan Compagner
yes, just set the context path in the settings when you are behind a proxy/virtual host. then it should work. Please let us know what situation doesn't work for you that you expect to work. johan On 11/19/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: ApplicationSettings.getContextPath()

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
ApplicationSettings.getContextPath() and PrependContextPathHandler Juergen On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > * Juergen Donnerstag: > > > Please take a look at the examples. They are usually a good > > source for informaton. As far as I can tell, in Wicket you don

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Juergen Donnerstag: > Please take a look at the examples. They are usually a good > source for informaton. As far as I can tell, in Wicket you don't > need it, at least I didn't. It works in the general case if you use relative paths, for example: But if you use WebApplication.mount(), t

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
Please take a look at the examples. They are usually a good source for informaton. As far as I can tell, in Wicket you don't need it, at least I didn't. Juergen On 11/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > * Carfield Yim: > > > Astheuserwill deploytheapplic

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Jean-Baptiste Quenot
* Carfield Yim: > Astheuserwill deploytheapplicationwith > difference web application name, like http://host1/app1 or > http://host2/app2. The URL will be /app1/images/icon.jpg or > /app2/images/icon.jpg . How can I set the image path to > something l

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-17 Thread Jean-Baptiste Quenot
* Erik van Oosten: > > I think you are looking for this information: > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html I don't think this is the right answer as the URL is not generated by Wicket in this usecase. -- Jean-Baptiste Quenot aka John Banana Qwerty http://ca

Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-16 Thread Erik van Oosten
Hi Carfield, I think you are looking for this information: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html Regards, Erik. Carfield Yim schreef: > As the user will deploy the application with difference web > application name, like http://host1/app1 or http://host2/app2

[Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-16 Thread Carfield Yim
As the user will deploy the application with difference web application name, like http://host1/app1 or http://host2/app2. The URL will be /app1/images/icon.jpg or /app2/images/icon.jpg . How can I set the image path to something like $baseurl/images/icon.jpg ? I've try to setup at but the render