You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2008/10/07 04:41:44 UTC
[jira] Resolved: (TOMAHAWK-1344) Using StreamingAddResource and
setting org.apache.myfaces.RESOURCE_VIRTUAL_PATH to something else other
than /faces/myFacesExtensionResource doesn't have any effect on how the
resource uris are generated
[ https://issues.apache.org/jira/browse/TOMAHAWK-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved TOMAHAWK-1344.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.8-SNAPSHOT
Assignee: Leonardo Uribe
It seems that StreamingAddResource and DojoAddResource(in sandbox) does not take into account org.apache.myfaces.RESOURCE_VIRTUAL_PATH param for retrive the url and serve resources.
The solution is take into account this param.
> Using StreamingAddResource and setting org.apache.myfaces.RESOURCE_VIRTUAL_PATH to something else other than /faces/myFacesExtensionResource doesn't have any effect on how the resource uris are generated
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-1344
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1344
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Affects Versions: 1.1.6
> Environment: Windows XP, Weblogic 9.0
> Reporter: Costa Basil
> Assignee: Leonardo Uribe
> Fix For: 1.1.8-SNAPSHOT
>
>
> I tried to use a different resource path than /faces/myFacesExtensionResource. Example:
> <context-param>
> <description>A class implementing the
> org.apache.myfaces.shared.renderkit.html.util.AddResource
> interface. It is responsible to
> place scripts and css on the right position in your HTML document.
> Default: "org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"
> Follow the description on the MyFaces-Wiki-Performance page to enable
> org.apache.myfaces.component.html.util.StreamingAddResourc
> instead of DefaultAddResource if you want to
> gain performance.</description>
> <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
> <param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
> </context-param>
> <context-param>
> <description>Change the url-pattern from the ExtensionsFilter
> Default is "/faces/myFacesExtensionResource"
> Note: The filter-mapping for ExtensionsFilter, the url-pattern is
> this value + "/*", else there comes a exception</description>
> <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
> <param-value>/p/resource</param-value>
> </context-param>
> ....
> <filter-mapping>
> <filter-name>MyFacesExtensionsFilter</filter-name>
> <url-pattern>/p/resource/*</url-pattern>
> </filter-mapping>
> The links to other resources are still generated using the default /faces/myFacesExtensionResource path. Examples:
> <link rel="stylesheet" href="/cps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.StreamingResourceLoader/11704501/4/header.css" type="text/css" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.