Pioneers/teammates...

Can someone direct me as to proper code here.

All I want to do is instrument/override the src attribute of the @Image component.

INPUTS - psuedo
   @Override
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
   {
       map.put("application/msword",           "asset/icdoc.gif");
       String contentType = "application/msword";

           String resource = (String) map.get(contentType);
IAsset externalAsset = new ExternalAsset(resource, getLocation());
           IAsset contextAsset = new ContextAsset(
cycle.getRequestContext().getRequest().getContextPath(), new ContextResource(cycle.getRequestContext().getSession().getServletContext(), resource),
                       getLocation(),
                       cycle);

           writer.attribute("src", contextAsset.buildURL()); // this fails
writer.attribute("src", externalAsset .buildURL()); // this fails too

Any ideas?

Best regards
Ken in nashua

_________________________________________________________________
Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to