Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1377

AbstractCalendar use the wrong resources path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2
    • Component/s: wicket-datetime
    • Labels:
      None
    • Environment:
      JDK1.6 on windows xp

      Description

      I extends the AbstractCalendar, and want to show the calendar directly.
      But I got an "YAHOO is not defined" javascript error, because the javascripts' url it
      generated are not correct.

      I find that the contributeDependencies methods in AbstractCalendar don't add the
      resources correctly. For example, the add(HeaderContributor.forJavaScript(YuiLib.class, "yahoo.js"));
      should be add(HeaderContributor.forJavaScript(YuiLib.class, "yahoo/yahoo.js"));
      and add(HeaderContributor.forJavaScript(YuiLib.class, "event.js")); should be
      add(HeaderContributor.forJavaScript(YuiLib.class, "event/event.js"));
      and other resources.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simonlei SimonLei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: