TextTemplateSharedResourceFactory should use template's content type
--------------------------------------------------------------------
Key: WICKET-2892
URL: https://issues.apache.org/jira/browse/WICKET-2892
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2,
1.4.1, 1.4.0, 1.4-RC7, 1.4-RC6, 1.4-RC5, 1.4-RC4, 1.4-RC3, 1.4-RC2, 1.4-RC1,
1.4-M3, 1.4-M2, 1.4-M1, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1,
1.3.0-final, 1.3.0-rc2, 1.3.0-rc1, 1.3.0-beta4, 1.3.0-beta3, 1.3.0-beta2,
1.3.0-beta1, 1.2.7, 1.2.6
Environment: safari,chrome
Reporter: atul singh
Priority: Minor
Fix For: 1.2.6
If the content-type is not specified, resource like css is not applied on
safari and chrome.
The content-type should be specified when creating AbstractStringResourceStream
like below:
--------
public IResourceStream getResourceStream()
{
return new
AbstractStringResourceStream(template.getContentType()==null?"text":template.getContentType())
{
private static final long
serialVersionUID = 1L;
@Override
protected String getString()
{
return templateValue;
}
};
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.