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  like $baseurl/images/icon.jpg  ?  I've  try to  setup
 base  href=/baseurl at  head but  the rendered  HTML don't
 contain that elements.

I  have the  same  problem and  Wicket does  not  seem to  address
that.   Seems   like  we  have   to  use  a  template   for  that,
like   wicket.extensions.util.resource.TextTemplate   to   replace
$contextPath

You don't  need to specify  the full  URL with host  name however,
using an absolute path is sufficient.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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   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  like $baseurl/images/icon.jpg  ?  I've  try to  setup
  base  href=/baseurl at  head but  the rendered  HTML don't
  contain that elements.

 I  have the  same  problem and  Wicket does  not  seem to  address
 that.   Seems   like  we  have   to  use  a  template   for  that,
 like   wicket.extensions.util.resource.TextTemplate   to   replace
 $contextPath

 You don't  need to specify  the full  URL with host  name however,
 using an absolute path is sufficient.
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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: img src=images/empty.gif

But if you use WebApplication.mount(), those links cease to
reference the proper resource as in this case we need an absolute
path, and thus referencing the context path.
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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't
  need it, at least I didn't.

 It works in the general case if you use relative paths, for
 example: img src=images/empty.gif

 But if you use WebApplication.mount(), those links cease to
 reference the proper resource as in this case we need an absolute
 path, and thus referencing the context path.
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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() 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't
  need it, at least I didn't.

 It works in the general case if you use relative paths, for
 example: img src=images/empty.gif

 But if you use WebApplication.mount(), those links cease to
 reference the proper resource as in this case we need an absolute
 path, and thus referencing the context path.
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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  filters. »  It
suggests that I don't have to do  anything to use it, but the next
sentence indicates how to use it...
-- 
 Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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  what does it mean  «This is a markup  inline filter
 which by  default is added  to the  list of markup  filters.»  It
 suggests that I don't have to do  anything to use it, but the next
 sentence indicates how to use it...
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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;
}});
   }


this.externalSrc = externalSrc;
}
}




-igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 base href=/baseurl at head but the rendered HTML don't
contain that elements.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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. 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 base href=/baseurl at head but the rendered HTML don't
 contain that elements.
   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user