Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-558

addJavaScriptAtPosition, addStyleSheet, ... doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.3
    • 1.1.3
    • ExtensionsFilter
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            zdila Martin Zdila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: