[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2619) Appended conversation id in UILoadStyle prevents caching of dynamically included CSS

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Jul 29 18:04:53 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed JBSEAM-2619.
-----------------------------

    Resolution: Out of Date


Component was removed from Seam

> Appended conversation id in UILoadStyle prevents caching of dynamically included CSS
> ------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-2619
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-2619
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Controls
>    Affects Versions: 2.1.0.A1
>            Reporter: Christian Bauer
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 2.1.0.GA
>
>
> The UILoadStyle component adds <link>s to custom CSS files to a page header, served by the resource servlet:
> <link rel='stylesheet'  type='text/css' href='/wiki/seam/resource/style/themes/inrelationto/css/faqBrowser.css?cid=20' />
> The appended conversation id prevents caching in browsers of this resource, it is set here:
> public abstract class UILoadStyle extends HtmlLoadStyle
> {
>    @Override
>    public Object getSrc()
>    {
>       UIConversationId uiConversationId = UIConversationId.newInstance();
>       uiConversationId.setViewId(Pages.getViewId(getFacesContext()));
>       try
>       {
>          UrlBuilder urlBuilder = new UrlBuilder(StyleResource.WEB_RESOURCE_PATH + super.getSrc(), null, FacesContext.getCurrentInstance().getResponseWriter().getCharacterEncoding());
>          urlBuilder.addParameter(uiConversationId);
> I can see that we might want to stay inside the conversation sometimes, especially because the whole point of serving CSS through the resources infrastructure is to parse EL in these CSS files. So the best action would probably be an option on the UILoadStyle component that disables conversation propagation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list