extjs version requirement

Asked by Steve Brunton

Which version of extjs should be used with Graphite? With both 2.3.0 and 3.0.0 there is no 'adapter/prototype/prototype.js' or 'adapter/prototype/scriptaculous.js' in the release. The composer.html template looks there for these javascript libraries. If I change the template to look for prototype in '/content/js/window/prototype.js' and scriptaculous in '/content/js/scriptaculous/scriptaculous.js' the 404 errors go away when attempting to load /composer/? but now I see JavaScript errors of "Ext.menu.ColorItem is not a constructor" for "var colorPicker = new Ext.menu.ColorItem({hideOnClick: false});" so the composer frame never renders.

The CLI browser interface loads and works fine.

This is in both Safari 4.0.2 and Firefox 3.5.1 on a PPC Mac running OSX 10.5.7.

-steve

Question information

Language:
Thai Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
chrismd
Solved:
Last query:
Last reply:
Revision history for this message
Best chrismd (chrismd) said :
#1

For the current release of Graphite, 0.9.4, you should use Ext 2.2. However I am making some changes for the next release. In particular I am removing the prototype and scriptaculous dependencies in favor of using pure Ext 3.0. The next Graphite release will also come with Ext 3 bundled as I recently found out that they have an open source license exemption that would apply to Graphite (otherwise I could not because Ext is licensed under the GPL and Graphite uses the Apache license).

Revision history for this message
Animal (the-bagbournes) said :
#2

That's just because prototype/scriptaculous is not bundled with 3.0

Download it and add the files.

Revision history for this message
Steve Brunton (brunton) said :
#3

@Animal .. Thanks I tried that both with ext-3.0 and ext-2.3.0 already .. copied the prototype and scriptaculous from the content/js/ directories in 0.9.4 into the adapter directory of ExtJS and ext-3.0 gave the JavaScript error mentioned above and while ext-2.3.0 would render the composer frame with the left hand nav tree, but nothing else would show up.

@chrismd .. Thanks. I worked the download url on the ExtJS site a little and got 2.2.1 .. The composer frame now renders with the tree on the left, and a graphite composer window although the tree doesn't work. I see the AJAX request go out and JSON return with unordered lists getting inserted into the DOM it just doesn't render properly. I'll play with it some more.

Revision history for this message
Steve Brunton (brunton) said :
#4

Thanks chrismd, that solved my question.