Tapestry
  1. Tapestry
  2. TAPESTRY-274

@Shell infrastructure that can do to CSS what @Body can do with @Script contributions

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.1
    • Component/s: Framework
    • Labels:
      None

      Description

      To create DHTML features using CSS, it is sometimes necessary to dynamically render the CSS available to the page. In particular you need to do this when assigning a unique id to a CSS property.
      As such, a Tapestry component that renders DHTML functionality and needs to set unique IDs, should be able to write css style information to the HEAD element.
      Most browsers (AFAIK) will work with putting <style> elements within the body, but valid html4 should have these elements in HEAD.

      This issue, is similar to that in TAPESTRY-199 but goes further.
      See also: news://news.gmane.org:119/a037b5420581e29e53dfddf0976636b7@ehatchersolutions.com

        Activity

        Hide
        Andreas Andreou added a comment -

        Use the new @Style component or the includeAdditionalContent method of the Shell class.

        Show
        Andreas Andreou added a comment - Use the new @Style component or the includeAdditionalContent method of the Shell class.
        Hide
        Evan E added a comment -

        A temporary hack that adds public addInlineStyle(String style) method to Shell.
        The passed in style strings are added complete and raw to head.

        Show
        Evan E added a comment - A temporary hack that adds public addInlineStyle(String style) method to Shell. The passed in style strings are added complete and raw to head.

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Evan E
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development