hi:
today i create a custom component and load it to the visual bulider's Palette. then, i create a page.
the page is simple, only contains one custom component. i want load this page, but failed.
who can help me ?
this is the custom component:
and this is the page's xml:
this is the server log:
the attach picture is the error picture from chrome browser.
today i create a custom component and load it to the visual bulider's Palette. then, i create a page.
the page is simple, only contains one custom component. i want load this page, but failed.
who can help me ?
this is the custom component:
Code:
ClassFactory.defineClass("SimpleHeader", isc.HLayout); isc.SimpleHeader.addProperties({ width:"100%", // full width height:20, imageSrc:"[SKIN]Window/headerIcon.png", backgroundColor:"white", imageWidth:18, imageHeight:null, // will use overall widget height if not specified titleText:"Simple Header", titleStyle:"tabTitle", // --- Instance Methods --- initWidget : function () { // call superclass implementation this.Super("initWidget", arguments); // on init, create the parts of this header this.addMembers([ // img for logo image isc.Img.create({ ID:this.getID()+"_image", src:this.imageSrc, width:this.imageWidth, height:this.imageHeight || this.getHeight(), layoutAlign:"center" }), // spacer to stretch isc.LayoutSpacer.create({ ID:this.getID()+"_spacer" }), // label for text title this.label = isc.Label.create({ ID:this.getID()+"_title", valign:"center", styleName:this.titleStyle, contents:this.titleText, wrap:false }) ]); }, // --- Dynamic Setters --- setTitleText : function (newTitleText) { this.titleText = newTitleText; this.label.setContents(newTitleText); }, setTitleStyle : function (newTitleStyle) { this.titleStyle = newTitleStyle; this.label.setStyleName(newTitleStyle); } });
Code:
<isomorphicXML> <SimpleHeader ID="SimpleHeader0" autoDraw="false"/> <VLayout ID="mainContainer" width="300" height="300" autoDraw="false"> <members> <Canvas ref="SimpleHeader0"/> </members> </VLayout> </isomorphicXML>
Code:
ISC: Configuring log4j from: file:/E:/workspace/builtinds/war/WEB-INF/classes/log4j.isc.config.xml === 2013-07-11 19:16:30,417 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing === 2013-07-11 19:16:30,425 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2013-07-11 19:16:30,464 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/E:/workspace/builtinds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties === 2013-07-11 19:16:30,464 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2013-07-11 19:16:30,464 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2013-07-11 19:16:30,466 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/E:/workspace/builtinds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties === 2013-07-11 19:16:30,466 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2013-07-11 19:16:30,467 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/E:/workspace/builtinds/war/WEB-INF/classes/server.properties === 2013-07-11 19:16:30,471 [main] INFO Logger - Logging system started. === 2013-07-11 19:16:30,473 [main] INFO ISCInit - Auto-detected webRoot - using: E:\workspace\builtinds\war === 2013-07-11 19:16:30,474 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v9.0p_2013-07-09/EVAL Deployment 2013-07-09) - Initialization Complete === 2013-07-11 19:16:47,896 [l0-2] INFO RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22': Safari with Accept-Encoding header === 2013-07-11 19:16:47,900 [l0-0] INFO RequestContext - URL: '/builtinds/sc/screenLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22': Safari with Accept-Encoding header === 2013-07-11 19:16:47,997 [l0-5] INFO Compression - /builtinds/sc/modules/ISC_Core.js: 825464 -> 216000 bytes === 2013-07-11 19:16:48,012 [l0-5] DEBUG ServletTools - setting cookie 'isc_cState' to: 'ready' === 2013-07-11 19:16:48,471 [l0-6] INFO Download - Returning 304: Not modified on conditional get of: E:\workspace\builtinds\war\builtinds\sc\skins\Enterprise\load_skin.js === 2013-07-11 19:16:48,472 [l0-0] DEBUG ScreenLoaderServlet - screenLoader - Requested screens:TestCustomCompent === 2013-07-11 19:16:48,472 [l0-0] DEBUG ScreenLoaderServlet - screenLoader - Processing screen "TestCustomCompent". === 2013-07-11 19:16:48,500 [l0-0] DEBUG XML - Parsed XML from (in memory stream): 4ms === 2013-07-11 19:16:48,508 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\builtinTypes.xml: 4ms === 2013-07-11 19:16:48,522 [l0-2] INFO PoolManager - SmartClient pooling started for 'simpleTypes' objects === 2013-07-11 19:16:48,554 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\ds\supplyItem.ds.xml: 2ms === 2013-07-11 19:16:48,558 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\DataSource.ds.xml: 4ms === 2013-07-11 19:16:48,600 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\DataSourceField.ds.xml: 3ms === 2013-07-11 19:16:48,618 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\ValueMap.ds.xml: 1ms === 2013-07-11 19:16:48,622 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\Validator.ds.xml: 2ms === 2013-07-11 19:16:48,655 [l0-2] DEBUG DataSourceLoader - For DataSource 'supplyItem', got instanceId 10 === 2013-07-11 19:16:48,659 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\isomorphicXML.ds.xml: 1ms === 2013-07-11 19:16:48,665 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\ds\SimpleHeader.ds.xml: 1ms === 2013-07-11 19:16:48,670 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\HLayout.ds.xml: 1ms === 2013-07-11 19:16:48,673 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\Layout.ds.xml: 2ms === 2013-07-11 19:16:48,691 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\Canvas.ds.xml: 5ms === 2013-07-11 19:16:48,724 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\MethodDeclaration.ds.xml: 2ms === 2013-07-11 19:16:48,731 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\ds\animals.ds.xml: 2ms === 2013-07-11 19:16:48,733 [l0-2] DEBUG DataSourceLoader - For DataSource 'animals', got instanceId 30 === 2013-07-11 19:16:48,735 [l0-0] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\VLayout.ds.xml: 2ms === 2013-07-11 19:16:48,742 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\ds\employees.ds.xml: 2ms === 2013-07-11 19:16:48,746 [l0-2] DEBUG XML - Parsed XML from E:\workspace\builtinds\war\builtinds\sc\system\schema\OperationBinding.ds.xml: 1ms === 2013-07-11 19:16:48,755 [l0-2] DEBUG DataSourceLoader - For DataSource 'employees', got instanceId 37 === 2013-07-11 19:16:48,760 [l0-0] DEBUG ScreenLoaderServlet - screenLoader - Generated response: { ID:"SimpleHeader0", autoDraw:false } isc.VLayout.create({ ID:"mainContainer", autoDraw:false, height:300, width:300, members:[ SimpleHeader0 ] }) === 2013-07-11 19:16:48,877 [l0-2] INFO RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22': Safari with Accept-Encoding header === 2013-07-11 19:17:10,260 [l0-0] INFO RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22': Safari with Accept-Encoding header
the attach picture is the error picture from chrome browser.
Comment