jQuery UI Plugin
  1. jQuery UI Plugin
  2. GPJQUERYUI-5

jQuery-UI plugin does not pick up themes from app's web-app path

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      According to the docs the plugin should look in web-app/jquery-ui for themes but it always attempts to generate a URL in the plugin. See attached example.

      1. jquery-themes.tar.gz
        278 kB
        Robert Fletcher
      2. JqueryUiTagLib.groovy
        5 kB
        Saioa

        Activity

        Hide
        Saioa added a comment -

        I've found a solution, but don't know if it's the best one.

        To make it work just change this piece of code

        out << resourceLink(plugin: plug, type:'css', dir: themedir,
        file:'jquery-ui-'+jqver+'.custom.css', media:'screen, projection',
        id:'jquery-ui-theme')

        for this one

        out << resourceLink(type:'css', dir: themedir,
        file:'jquery-ui-'+jqver+'.custom.css', media:'screen, projection',
        id:'jquery-ui-theme')

        I've attached the tagLib fixed.

        Show
        Saioa added a comment - I've found a solution, but don't know if it's the best one. To make it work just change this piece of code out << resourceLink(plugin: plug, type:'css', dir: themedir, file:'jquery-ui-'+jqver+'.custom.css ', media:'screen, projection', id:'jquery-ui-theme') for this one out << resourceLink(type:'css', dir: themedir, file:'jquery-ui-'+jqver+'.custom.css ', media:'screen, projection', id:'jquery-ui-theme') I've attached the tagLib fixed.
        Hide
        Saioa added a comment -

        The tagLib with the theme attribute issue fixed

        Show
        Saioa added a comment - The tagLib with the theme attribute issue fixed
        Hide
        Ingo Busse added a comment -

        Easy workaround: Put a plugin name that does not exist.

        <jqui:resources plugin="dummy" theme="redmond"/>

        The resource tag, which is called inside this tag, hides this fact and simply leaves out the plugin part from the path.

        Show
        Ingo Busse added a comment - Easy workaround: Put a plugin name that does not exist. <jqui:resources plugin="dummy" theme="redmond"/> The resource tag, which is called inside this tag, hides this fact and simply leaves out the plugin part from the path.

          People

          • Assignee:
            Marc Palmer
            Reporter:
            Robert Fletcher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: