ICEfaces
  1. ICEfaces
  2. ICE-2482

Opera Mobile not Recognizing Multiple Stylesheets

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7DR#3, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows XP Professional
      jboss 4.0.5.GA

      Description

      The ice:outputStyle component will do some browser sniffing and add a browser specific stylesheet. Although this is working, I noticed that with an updated version of the Opera Mobile browser it was no longer recognizing the browser specific stylesheet.

        Activity

        Hide
        Brad Kroeger added a comment -

        From the W3C spec:

        Specify that the style sheet is persistent, preferred, or alternate:

        • To make a style sheet persistent, set the rel attribute to "stylesheet" and don't set the title attribute.
        • To make a style sheet preferred, set the rel attribute to "stylesheet" and name the style sheet with the title attribute.
        • To specify an alternate style sheet, set the rel attribute to "alternate stylesheet" and name the style sheet with the title attribute.

        As the browser specific stylesheet is preferred, I modified the component to set the title attribute in the link tag and the browser now recognizes the browser specific stylesheet.

        Show
        Brad Kroeger added a comment - From the W3C spec: Specify that the style sheet is persistent, preferred, or alternate: To make a style sheet persistent, set the rel attribute to "stylesheet" and don't set the title attribute. To make a style sheet preferred, set the rel attribute to "stylesheet" and name the style sheet with the title attribute. To specify an alternate style sheet, set the rel attribute to "alternate stylesheet" and name the style sheet with the title attribute. As the browser specific stylesheet is preferred, I modified the component to set the title attribute in the link tag and the browser now recognizes the browser specific stylesheet.
        Hide
        Brad Kroeger added a comment -

        Revision #15316

        Show
        Brad Kroeger added a comment - Revision #15316

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: