if(valueForBinding("href", component) != null) {
href = (String)valueForBinding("href", component);
} else if(attachment != null) {
href = ERAttachmentProcessor.processorForType(attachment).attachmentUrl(attachment, context.request(), context);
} else {
WOResourceManager rm = WOApplication.application().resourceManager();
String fileName = (String)valueForBinding("filename", component);
String frameWork = (String)valueForBinding("framework", component);
href = rm.urlForResourceNamed(fileName, frameWork, null, context.request()).toString();
}
appendTagAttributeToResponse(response, "href", href);
appendTagAttributeToResponse(response, "rel", valueForBinding("rel", component));
appendTagAttributeToResponse(response, "title", valueForBinding("title", component));