rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Relative path for DatePicker.setButtonImage() #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The method DatePicker.setButtonImage() takes an absolute path to an image. It 
seems like bad practice to hardcode absoulte image paths into Java sourcecode - 
especially since urls can change (renaming the .war file for example would 
break absolute image paths)

Is there a way to move that image path into the markup or use some kind of 
Wicket infrastructure like Image(), ContextImage() etc. so we can use a 
relative path?

Original issue reported on code.google.com by patrick....@gmail.com on 3 Aug 2011 at 3:48

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 16 Aug 2011 at 6:37

GoogleCodeExporter commented 9 years ago
This is a jquery problem, not wiquery. You can set the url as a String, you 
can't get more flexible.

Original comment by hielke.hoeve on 16 Aug 2011 at 7:03