This content has been marked as final.
Show 1 reply
-
1. Re: Where to put images ?
apemberton Mar 23, 2009 9:13 AM (in response to hemus7)When it comes to packaging images, css, and other static resources for portal development, you basically have two choices: a) package the resources inside your portlet WAR or b) package the resources inside your theme.
It looks like you want to use option a above and the problem you're having is that you're not referencing the context path of your portlet to retrieve the resources you've placed there. Using your example, you'd want to reference:<img src="${renderRequest.contextPath}/images/iconCalendar.gif" />
Option b, placing resources in your theme, may make better sense in your scenario; it should be used when the resources you need to access may be used across portlets. I typically place all CSS inside my theme, to promote reuse of styles.
Good luck!