Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1

Add @agent support for skin properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.8-core, 1.2.8-core
    • Skinning
    • None

    Description

      We have @agent support for skin selectors where style entries that appear in the client-side generated CSS file, but not for skin properties (which are only present in the server-side skin).

      It would be useful to have different property values for ie than for gecko.

      af|someComponent {
      -tr-my-property: my-default-value;
      }
      @agent ie {
      af|someComponent

      { -tr-my-property: my-ie-value; }

      }

      What we have to do now is introduce properties with agent-specific names and reference them by agent name:

      af|someComponent {
      -tr-my-property: my-default-value;
      -tr-my-property-for-ie: my-ie-value;
      }

      and then in the Renderer look up the value by name accordion to what agent is currently in use.

      Attachments

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            mattcooper Matt Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: