javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-550

Should we be using the 'media' attribute for outputStylesheet or not?

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2 Sprint 13
    • Component/s: Components/Renderers
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      550
    • Status Whiteboard:
      Hide

      cat2 renderkitdoc size_small importance_small

      Show
      cat2 renderkitdoc size_small importance_small

      Description

      In the PDL documentation for outputStylesheet it states the following.

      "...and the literal string "screen" as the value of the
      "media" attribute."
      Are we intending this to happen, do we want to limit the stylesheet to
      screen by default?

      Right now Mojarra is not rendering any media attribute at all.

      I would think that we would either leave media out all together so that the
      stylesheet is applied to all forms of media, or add an attribute to the
      outputStylesheet tag itself that would enable a developer to have the ability to
      do something like what we have below.

      (taken from W3C website)

      In the following example, we define a cascade where the "corporate" style sheet
      is provided in several versions: one suited to printing, one for screen use and
      one for speech-based browsers (useful, say, when reading email in the car). The
      "techreport" stylesheet applies to all media. The color rule defined by the
      STYLE element is used for print and screen but not for aural rendering.

      <LINK rel="stylesheet" media="aural" href="corporate-aural.css" type="text/css">
      <LINK rel="stylesheet" media="screen" href="corporate-screen.css" type="text/css">
      <LINK rel="stylesheet" media="print" href="corporate-print.css" type="text/css">
      <LINK rel="stylesheet" href="techreport.css" type="text/css">
      <STYLE media="screen, print" type="text/css">
      p.special

      { color: rgb(230, 100, 180) }

      </STYLE>

        Activity

        Hide
        Ed Burns added a comment -

        triaeg

        Show
        Ed Burns added a comment - triaeg
        Hide
        Ed Burns added a comment -

        rogerk

        Show
        Ed Burns added a comment - rogerk
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Ed Burns added a comment -

        SECTION: Modified Files
        ----------------------------
        M jsf-api/doc/standard-html-renderkit-base.xml
        M jsf-api/doc/standard-html-renderkit.xml

        • Make the change. If this tag has a "media" attribute, use its value
          as the value of the "media" attribute. Otherwise, do not render a
          media attribute.

        M jsf-tools/src/main/resources/com/sun/faces/generate/facesdoc/stylesheet.css
        M jsf-ri/conf/share/tlddoc-resources/stylesheet.css

        • Attribute the change to 2.2

        Authentication realm: <https://svn.java.net:443> Subversion Repository
        Username: edburns
        Password for 'edburns':
        Sending jsf-api/doc/standard-html-renderkit-base.xml
        Sending jsf-api/doc/standard-html-renderkit.xml
        Sending jsf-ri/conf/share/tlddoc-resources/stylesheet.css
        Sending jsf-tools/src/main/resources/com/sun/faces/generate/facesdoc/stylesheet.css
        Transmitting file data ....
        Committed revision 10327.

        Show
        Ed Burns added a comment - SECTION: Modified Files ---------------------------- M jsf-api/doc/standard-html-renderkit-base.xml M jsf-api/doc/standard-html-renderkit.xml Make the change. If this tag has a "media" attribute, use its value as the value of the "media" attribute. Otherwise, do not render a media attribute. M jsf-tools/src/main/resources/com/sun/faces/generate/facesdoc/stylesheet.css M jsf-ri/conf/share/tlddoc-resources/stylesheet.css Attribute the change to 2.2 Authentication realm: < https://svn.java.net:443 > Subversion Repository Username: edburns Password for 'edburns': Sending jsf-api/doc/standard-html-renderkit-base.xml Sending jsf-api/doc/standard-html-renderkit.xml Sending jsf-ri/conf/share/tlddoc-resources/stylesheet.css Sending jsf-tools/src/main/resources/com/sun/faces/generate/facesdoc/stylesheet.css Transmitting file data .... Committed revision 10327.

          People

          • Assignee:
            Ed Burns
            Reporter:
            dougd
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: