PDA

View Full Version : Where to put dashboard images?



wismed
03-14-2007, 01:16 PM
Hi,

I'm setting up a custom dashboard as was looking at the Steel Wheels example. In SWDashboard.jsp there are images referenced like this:


<a><td align="right" style="font-family:Arial;font-weight:bold" background="/sw-style/active/banner.png" valign="top" width="25%"></a><%= title %></td>
It shows a broken image in the example and I don't see the image banner.png anywhere but in samples/steel-wheels/reports.

Any clues?

Gary

gmoran
03-16-2007, 04:10 PM
These images are stored in a sibling .war (in the app server) to the pentaho.war, called sw-styles.war. The idea behind having these images in a .war of their own is a separation of implementation of the platform (pentaho.war) from the styles used to give the samples (or any dashboard solution) a pretty face. In theory, this is supposed to protect you from upgrades causing you pain should you choose to re-style the current PCI, but sadly we don't yet make use of this nice architecture (coming, coming!).

So the best practice is to store your images in a sibling .war and use relative URLs to access them, but nothing stops you from dumping them in the pentaho.war - it just terrifically more difficult to upgrade your platform that way.

Hope this helps!