You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Zdila (JIRA)" <de...@myfaces.apache.org> on 2006/07/19 23:04:13 UTC
[jira] Created: (TOMAHAWK-558) addJavaScriptAtPosition,
addStyleSheet, ... doesn't work
addJavaScriptAtPosition, addStyleSheet, ... doesn't work
--------------------------------------------------------
Key: TOMAHAWK-558
URL: http://issues.apache.org/jira/browse/TOMAHAWK-558
Project: MyFaces Tomahawk
Issue Type: Bug
Components: ExtensionsFilter
Affects Versions: 1.1.3
Reporter: Martin Zdila
Fix For: 1.1.3
hi
in my custom component
1. this generates no link tag (no change in generated html):
AddResource ar = AddResourceFactory.getInstance(context);
ar.addStyleSheet(context, AddResource.HEADER_BEGIN, "/css/myComponent.css");
2. this generates script tag in the place of first use of component but not in the header as expected
ar.addJavaScriptAtPosition(context, AddResource.HEADER_BEGIN, "/js/myComponent.js");
I have configured ExtensionFilter of course.
I was also trying with:
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
</context-param>
and using t:document, t:documentHeader, t:documentBody ...
allways the same result
thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira