Chart Integration

Hi.
I’m not getting the Chart Integration to work.
to test i copied this code from view-source:Raphael Just Gage
i added justgage.js to the same location as the home page. i also tried it by adding the js to codebase.

this is my code

	<script type="text/javascript" src="./justgage.js"></script>
</head>
<body>
	<div id="sample_div" style='width:600px; height:300px; margin:50px;'></div>
	<script type="text/javascript" charset="utf-8">
		webix.codebase = "./";

			webix.ready(function(){
			webix.ui({
				container:"sample_div",
				width:400, rows:[{
					view:"justgage-chart",
					value:25,
					id:"gage1",
					title:"Positive",
					height:300
				},{
					view:"resizer"
				},{
					view:"justgage-chart",
					value:75,
					id:"gage2",
					title:"Negative"
				}]
			});

				setInterval(function(){
					var value = Math.floor(Math.random()*100)+1;
					$$('gage1').setValue(value);
					$$('gage2').setValue(100-value);
				}, 2000);
			});
	</script>
</body>

Hi,

justgage component loads justgage.js and raphael,js via ajax. And you can include them manually to avoid 2s timeout (webix.require.disabled = true)

Please check the demo:

http://webix.com/snippet/6bac0c53

Thank you, that helped. It’s working. your a Super Star.
Now i just need to figure out how to use the java data connectors. Trying for 2 days now. i can see it gets called.
Warning: StandardWrapperValve[msgview]: Allocate exception for servlet msgview
java.lang.ClassNotFoundException: model.msgview
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1533)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1399)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1211)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:237)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)

got this far now.
java.lang.ArrayIndexOutOfBoundsException: 1 when doing this.
package model;

import java.sql.Connection;
import java.sql.DriverManager;
import com.dhtmlx.connector.*;
import static java.lang.System.out;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**

  • The Class BasicConnector.
    */
    public class rewardmsg extends ThreadSafeConnectorServlet {
    @Override
    protected void configure(HttpServletRequest req, HttpServletResponse res) {
    //obtain DB connection
    Connection conn=null;
    try {
    String connectionURL = “jdbc:sqlserver://MZAAIMANWRK\\SQLEXPRESS:7720;databaseName=msdb”; // students is my database name
    Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver”).newInstance();
    conn = DriverManager.getConnection(connectionURL, “Spago”, “Delta123”);

     } catch (Throwable e) {
          out.println("Error at con->");
         e.printStackTrace();
     }
    
    
     //Initializes connector
    
     GridConnector c = new GridConnector(conn,DBType.MSSQL);
     c.servlet(req, res);
    c.render_sql("RewardUsers", "id", "NAME, LASTNAME, [ROLE], BRANCH");
    

    }
    }