could you just use a component tag modifier to do this?
Juergen Donnerstag wrote:
I have the need to change the src attribute of an image tag. E.g. <img src="subdir/mypic.gif" />. But the src is not relative to a page. It is http://.../$servletContext/$myApp/images/new.gif (I need to swap the src depending on a condition). As far as I can tell there no Image component able to handle it. Class Image does not allow for "/" in the path and always resolves the src relative to the current Page.
Am I right? If yes, does have someone such a component ready and would contribute it? What would be the best name for such a component: ExternalImage (because it would allow for http://... etc. as well)?
Juergen
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
