You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "cleverpig (JIRA)" <ji...@apache.org> on 2010/07/23 11:49:52 UTC
[jira] Commented: (TAP5-1215) T5.2-Snapshot Can't handle components
and mixins' script or css files with includeJavascript and includeStyle
method.
[ https://issues.apache.org/jira/browse/TAP5-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891542#action_12891542 ]
cleverpig commented on TAP5-1215:
---------------------------------
cool,solved!
my Tapestry5.2.0-snapshot(20100208 version) lost a important thing in AppModule:
public static void contributeRegexAuthorizer(Configuration<String> conf){
conf.add("^.*png$");
conf.add("^.*jpg$");
conf.add("^.*jpeg$");
conf.add("^.*js$");
conf.add("^.*css$");
conf.add("org/chenillekit/.*\\.((css)|(js)|(jpg)|(jpeg)|(png)|(gif)|(html)|(ico)|(swf)|(xml))$");
}
I found answer here:
https://issues.apache.org/jira/browse/TAP5-963
http://tapestry-users.832.n2.nabble.com/Tapestry-5-1-0-5-FCKEDITOR-PROBLEM-td4141853.html#a4141853
> 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.