View Full Version : ExtJS in Sun xVM Server UI?? Cool!
nassaja-rus
13 Sep 2008, 12:18 PM
Look at screenshots!
http://xvmserver.org/xvmsui.html
Frank
13 Sep 2008, 3:27 PM
I think it's true.
Frank
13 Sep 2008, 3:33 PM
oh~Not at all! Just a piece of codes, it combos dojo & Ext, ..and skin...
dojo.provide("xvm.wizard.ExtDialog");
dojo.require("xvm.wizard.BasicWizard");
dojo.require("dojox.string.Builder");
dojo.declare("xvm.wizard.ExtDialog", xvm.wizard.BasicWizard, {
wizardPanes: [],
wizardTitle: "UNDEFINED",
wizardSubmit: function() { },
scope: this,
finishButtonText: "Finish",
pageIndex: 0,
postCreate: function() {
var sidebarHTML = new dojox.string.Builder("<ul>");
dojo.forEach(this.wizardPanes, function(pane) {
sidebarHTML.append("<li>").append(pane.items[0].title).append("</li>");
});
sidebarHTML.append("</ul>");
var isMultiPage = this.wizardPanes.length > 1;
this.wizard = new Ext.Window({
layout: "border",
width: isMultiPage ? 600 : 400,
height: 320,
closeAction: 'hide',
plain: true,
modal: true,
border: false,
..........
Frank
13 Sep 2008, 3:41 PM
Seems that it's using our Ext heavily and can not be without dojo's OO:
dojo.declare("xvm.node.NodeLibrary", xvm.CompositeTab, {
.....
createNodeLibraries: function() {
Ext.QuickTips.init();
var vpoolId = scn.nodeDetail.objectName;
/** An Ext.data.JsonReader object that uses Ext.data.Record
@variable {private Ext.JsonReader} reader1 */
var reader1 = new Ext.data.JsonReader({}, Ext.data.Record.create([
{name: 'userFriendlyName'},
{name: 'endpointURL'},
{name: 'size'},
{name: 'objectName'}
]));
itlogo
24 Sep 2008, 12:53 PM
Yup, it's true, we're using Dojo and ExtJS (among others). Dojo provides the modularity to let all of the developers work on independent pieces of the application and packages everything into a bundled file for download during production builds (hence the dojo.require statements) without much work on our part. It also allows some declarative programming via dijit templates to create some Ext components via custom adapters, though it's not widely used.
For the most part, we're using Ext to render the visible screen components such as the widgets and containers. The rendering lifecycle is also tied into Dojo's so that Ext has a valid HTML component to which to draw.
Finally, we'll be releasing the Ops Center version of the product towards the end of this year and it's built completely on the existing code that you see out on xvmserver.org.
jay@moduscreate.com
2 Oct 2008, 9:50 AM
That's awesome dude!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.