T5.2-Snapshot Can't handle components and mixins' script or css files with
includeJavascript and includeStyle method.
---------------------------------------------------------------------------------------------------------------------
Key: TAP5-1215
URL: https://issues.apache.org/jira/browse/TAP5-1215
Project: Tapestry 5
Issue Type: Bug
Affects Versions: 5.2.0
Reporter: cleverpig
I don't why but it really happend when I changed to use 5.2.0-snapshot.
if any script or css files which put in classpath,just not web context,they
must miss at the page.
sample code-comfirm mixin:
@IncludeJavaScriptLibrary("${my.scripts}/confirm.js")
public class Confirm {
@Parameter(value = "are you sure?", defaultPrefix =
BindingConstants.LITERAL)
private String message;
@Inject
private RenderSupport renderSupport;
@InjectContainer
private ClientElement element;
@AfterRender
public void afterRender() {
renderSupport.addScript(String.format("new Confirm('%s', '%s');",
element.getClientId(), message));
}
}
It can run well at Tapestry 5.1.0.5.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.